class

UIng::Control

Inherits UIng::BlockConstructor < Reference < Object

Instance methods

delete(child : Control)
Source
destroy
Source
detach
Source
disable
Source
enable
Source
enabled?
Source
enabled_to_user?
Source
focus

Requests keyboard focus if this control is attached to a visible, enabled window and supports input. Native focus rules may reject it.

Source
focused?

Reports whether this control owns keyboard focus, including its internal widgets. Window#focused? separately reports window activation.

Source
handle
Source
hide
Source
parent

Public getter for parent (for testing and debugging)

Source
released?
Source
set_minimum_size(width : Int32, height : Int32) : Nil

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.

Source
show
Source
to_unsafe
Source
tooltip=(tooltip : String) : Nil

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.

Source
tooltip=(tooltip : Nil) : Nil

Removes this control's descriptive tooltip.

Source
toplevel?
Source
visible?
Source