iup-stack/iup/srclua5/gl/gltoggle.lua

22 lines
510 B
Lua
Raw Permalink Normal View History

2023-02-20 16:44:45 +00:00
------------------------------------------------------------------------------
-- GLToggle class
------------------------------------------------------------------------------
local ctrl = {
nick = "gltoggle",
funcname = "GLToggle",
include = "iupglcontrols.h",
parent = iup.WIDGET,
creation = "S",
subdir = "gl",
callback = {
action = "n",
}
}
function ctrl.createElement(class, param)
return iup.GLToggle(param.title)
end
iup.RegisterWidget(ctrl)
iup.SetClass(ctrl, "iupWidget")