-
Notifications
You must be signed in to change notification settings - Fork 0
Control
The role that all widgets inherit from. Contains several utility methods common to all controls.
The methods show()
, hide()
, visible()
, enable()
, disable()
, enabled()
, and top-level()
are safe for general use. The rest expose underlying C representations, with all the danger that brings.
visible() returns Bool
Returns the value of the visible property of the Control.
show()
Makes the Control visible.
hide()
Makes the Control invisible.
enabled() returns Bool
Returns the value of the enabled property of the Control.
enable()
Enables the Control.
disable()
Disables the Control.
top-level() returns Bool
Returns the value of the top-level property of the Control. Only Windows are top-level.
Control() returns uiControl
Returns the underlying CStruct cast as a uiControl.
destroy()
Destroys the C representation of the Control
parent()
Returns the C representation of the parent of the Control.
set-parent(Libui::Control $control)
or parent(Libui::Control $control)
Sets the parent of the Control.