1
0
Fork 0
fgdata/Nasal/canvas/gui/widgets/CheckBox.nas

13 lines
257 B
Text
Raw Normal View History

2014-06-17 19:02:59 +00:00
gui.widgets.CheckBox = {
new: func(parent, style, cfg)
{
cfg["type"] = "checkbox";
var m = gui.widgets.Button.new(parent, style, cfg);
m._checkable = 1;
append(m.parents, gui.widgets.CheckBox);
return m;
},
setCheckable: nil
};