Beispiel #1
0
static Janet janet_ui_multiline_entry_append(int32_t argc, Janet *argv) {
    janet_fixarity(argc, 2);
    uiMultilineEntry *me = janet_getuitype(argv, 0, &multiline_entry_td);
    const uint8_t *text = janet_getstring(argv, 1);
    uiMultilineEntryAppend(me, (const char *)text);
    return argv[0];
}
Beispiel #2
0
int sayTime(void *data)
{
	time_t t;
	char *s;

	t = time(NULL);
	s = ctime(&t);

	uiMultilineEntryAppend(e, s);
	return 1;
}
Beispiel #3
0
void saySomething(uiButton *b, void *data)
{
	uiMultilineEntryAppend(e, "Saying something\n");
}
Beispiel #4
0
static void appendClicked(uiButton *b, void *data)
{
	uiMultilineEntryAppend(uiMultilineEntry(data), "append\n");
}