ToggleCheckListΒΆ
class ToggleCheckList
This class is a simple CheckList that only toggles items between the checked state and the default state
Widgets create with this class contain a State field that maps the item name to the true/false boolean.
For instance:
local list = ToggleCheckList.create ("flipflop", parent)
list.Items = { "One", "Two", "Three" }
-- ... later in code
if list.State.One then
print ("One is checked")
end
Hierarchy
class ToggleCheckList < class CheckList < class Window
Members
Constructors:
| create | ( ) | Create a ToggleCheckList widget |
Inherited from class CheckList
Constructors:
| create | ( ) | Create a CheckList widget |
Methods:
| createitemwindow | ( ) | Init the item window |
| fill | ( ) | Fill the widget with all lines |
| getitems | ( ) | Callback for when the widget needs the list of items |
| getitemstate | ( ) | Callback for when the widget needs the state of an item of the list. |
| itemclicked | ( ) | Callback for when the an item of the list was clicked. |
| update | ( ) | Update the list state |
| updateitemwindow | ( ) | Update the item window |
Inherited from class Window
Methods:
| destroy | ( ) | Destroy the window and all its children windows |
| setx | (
|
Set the X window placement |
| sety | (
|
Set the Y window placement |
| setw | (
|
Set the window width |
| seth | (
|
Set the window height |
| getx | ( ) | Get the window X coordinate in the parent space |
| gety | ( ) | Get the window Y coordinate in the parent space |
| getw | ( ) | Get the window width |
| geth | ( ) | Get the window height |
| hide | ( ) | Hide the window |
| show | ( ) | Show the window |
| disable | ( ) | Disable the window |
| enable | ( ) | Enable the window |
| addtracker | (
|
Add a tracker to this window. A tracker receives notification when the tracked window is invalidated or destroyed. A tracker may implement onTrackedDestroyed and onTrackedInvalidated to get notifications on such events |
| removetracker | (
|
Remove a tracker of this window. |
| setcolor | (
|
Change the window color, see also ui.color function |
| getparent | (
|
Get the first parent window of given class (immediate parent if no class is provided) |
| settopmost | ( ) | Set the window as top most in children order |
| getchild | (
|
Get a child window |
| getcontainer | ( ) | Get the main container of a window |
| settitle | (
|
Change the window title |
| setfocus | ( ) | Set the focus to the window |
| getroot | ( ) | Return the root window of this window |