Checkbox style

From TargetWiki

A checkbox style is a specialization of a widget style. It controls they way a checkbox is drawn on the screen. All widget style functions can also be called on a checkbox style.

Since a checkbox style is a Lua object, calls should use the object:function() syntax. Also, all Lua object functions can also be called on a checkbox style.

Functions

checked()
Returns the <Texture> displayed when the checkbox is checked.
setchecked( <Texture> )
Sets the <Texture> to be displayed when the checkbox is checked.
unchecked()
Returns the <Texture> displayed when the checkbox is unchecked.
setunchecked( <Texture> )
Sets the <Texture> to be displayed when the checkbox is unchecked.
disabledchecked()
Returns the <Texture> displayed when the checkbox is disabled and checked.
setdisabledchecked( <Texture> )
Sets the <Texture> to be displayed when the checkbox is disabled and checked.
disabledunchecked()
Returns the <Texture> displayed when the checkbox is disabled and unchecked.
setdisabledunchecked( <Texture> )
Sets the <Texture> to be displayed when the checkbox is disabled and unchecked.
checkalign()
Returns the alignmnet of the check texture.
setcheckalign( <float> )
Sets the alignmant for the check texture.
checksize()
Returns the size of the check texture as two numbers: <width>, <height>.
setchecksize( <width>, <height> )
Sets the size of the check texture.
checkmargin()
Returns the margin between the check texture and the text.
setcheckmargin( <number> )
Sets the margin between the check texture and the text.
Views