abstract class
UIng::Control
- UIng::Control
- Reference
- Object
Included Modules
- UIng::BlockConstructor
Direct Known Subclasses
- UIng::Area
- UIng::Box
- UIng::Button
- UIng::Checkbox
- UIng::ColorButton
- UIng::Combobox
- UIng::DateTimePicker
- UIng::EditableCombobox
- UIng::Entry
- UIng::FontButton
- UIng::Form
- UIng::Grid
- UIng::Group
- UIng::ImageView
- UIng::Label
- UIng::MultilineEntry
- UIng::ProgressBar
- UIng::RadioButtons
- UIng::Separator
- UIng::Slider
- UIng::Spinbox
- UIng::Tab
- UIng::Table
- UIng::Window
Defined in:
uing/control.crInstance Method Summary
-
#__parent__
native libui function
-
#__set_parent__(parent) : Nil
native libui function should not be used directly
- #delete(child : Control)
- #destroy : Nil
- #detach : self
- #disable : Nil
- #enable : Nil
- #enabled? : Bool
- #enabled_to_user? : Bool
- #handle : Pointer(Void)
- #hide : Nil
-
#parent : Control | Nil
Public getter for parent (for testing and debugging)
- #released? : Bool
-
#set_minimum_size(width : Int32, height : Int32) : Nil
Overrides the minimum size this control requests from its parent.
- #show : Nil
- #to_unsafe
-
#tooltip=(tooltip : String) : Nil
Sets a descriptive tooltip for this control.
-
#tooltip=(tooltip : Nil) : Nil
Removes this control's descriptive tooltip.
- #toplevel? : Bool
- #verify_set_parent(parent) : Nil
- #visible? : Bool
Macros inherited from module UIng::BlockConstructor
block_constructor
block_constructor
Instance Method Detail
Overrides the minimum size this control requests from its parent.
Each axis is independent. Pass -1 to restore its normal minimum-size
calculation, 0 to remove the control's own minimum request, or a
positive value to replace it. This does not fix the control to this size;
its parent may still allocate more space. Top-level controls are not
supported.
Sets a descriptive tooltip for this control.
Container tooltips apply only to the container's own surface, not to its children. For sliders, this temporarily replaces the value tooltip.