abstract class UIng::Control

Included Modules

Direct Known Subclasses

Defined in:

uing/control.cr

Instance Method Summary

Macros inherited from module UIng::BlockConstructor

block_constructor block_constructor

Instance Method Detail

def __parent__ #

native libui function


[View source]
def __set_parent__(parent) : Nil #

native libui function should not be used directly


[View source]
def delete(child : Control) #

[View source]
def destroy : Nil #

[View source]
def detach : self #

[View source]
def disable : Nil #

[View source]
def enable : Nil #

[View source]
def enabled? : Bool #

[View source]
def enabled_to_user? : Bool #

[View source]
def handle : Pointer(Void) #

[View source]
def hide : Nil #

[View source]
def parent : Control | Nil #

Public getter for parent (for testing and debugging)


[View source]
def released? : Bool #

[View source]
def 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.


[View source]
def show : Nil #

[View source]
abstract def to_unsafe #

[View source]
def 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.


[View source]
def tooltip=(tooltip : Nil) : Nil #

Removes this control's descriptive tooltip.


[View source]
def toplevel? : Bool #

[View source]
def verify_set_parent(parent) : Nil #

[View source]
def visible? : Bool #

[View source]