Exemplo n.º 1
0
void setFullscreen(uiCheckbox *cb, void *data)
{
	uiWindow *w = uiWindow(data);

	uiWindowSetFullscreen(w, uiCheckboxChecked(fullscreen));
	updatesize(w);
}
Exemplo n.º 2
0
static Janet janet_ui_window_fullscreen(int32_t argc, Janet *argv) {
    janet_arity(argc, 1, 2);
    uiWindow *window = janet_getuitype(argv, 0, &window_td);
    if (argc == 2) {
        int full = janet_getboolean(argv, 1);
        uiWindowSetFullscreen(window, full);
        return argv[0];
    }
    return janet_wrap_boolean(uiWindowFullscreen(window));
}