2012-06-26 00:13:30 +02:00
|
|
|
-- @docclass
|
2014-06-06 18:10:14 +02:00
|
|
|
UICheckBox = extends(UIWidget, "UICheckBox")
|
2012-01-05 02:28:29 +01:00
|
|
|
|
|
|
|
function UICheckBox.create()
|
|
|
|
local checkbox = UICheckBox.internalCreate()
|
|
|
|
checkbox:setFocusable(false)
|
2012-01-10 23:13:40 +01:00
|
|
|
checkbox:setTextAlign(AlignLeft)
|
2012-01-05 02:28:29 +01:00
|
|
|
return checkbox
|
|
|
|
end
|
2012-01-10 23:13:40 +01:00
|
|
|
|
2012-05-09 14:24:35 +02:00
|
|
|
function UICheckBox:onClick()
|
2012-02-08 00:06:52 +01:00
|
|
|
self:setChecked(not self:isChecked())
|
2012-01-10 23:13:40 +01:00
|
|
|
end
|