/** bool QWidget::isFullScreen() * bind/QWidget.h:36 */ static int GLWidget_isFullScreen(lua_State *L) { try { GLWidget *self = *((GLWidget **)dub_checksdata(L, 1, "mimas.GLWidget")); lua_pushboolean(L, self->isFullScreen()); return 1; } catch (std::exception &e) { lua_pushfstring(L, "isFullScreen: %s", e.what()); } catch (...) { lua_pushfstring(L, "isFullScreen: Unknown exception"); } return dub_error(L); }
/** void QWidget::swapFullScreen() * bind/QWidget.h:65 */ static int GLWidget_swapFullScreen(lua_State *L) { try { GLWidget *self = *((GLWidget **)dub_checksdata(L, 1, "mimas.GLWidget")); if (!self->isFullScreen()) { self->showFullScreen(); } else { self->showNormal(); } return 0; } catch (std::exception &e) { lua_pushfstring(L, "swapFullScreen: %s", e.what()); } catch (...) { lua_pushfstring(L, "swapFullScreen: Unknown exception"); } return dub_error(L); }