class
UIng::FontButton
- UIng::FontButton
- UIng::Control
- Reference
- Object
Defined in:
uing/font_button.crConstructors
Instance Method Summary
-
#clear_on_changed : Nil
Clears the callback; equivalent to
#on_changed(nil). -
#font(descriptor : FontDescriptor) : Nil
DEPRECATED Use
#fontto return a FontDescriptor -
#font : FontDescriptor
Returns the selected font as a Crystal-managed descriptor.
-
#on_changed(&block : FontDescriptor -> Nil) : Nil
Registers a callback that receives a retainable FontDescriptor.
- #on_changed(callback : Nil) : Nil
- #to_unsafe
Instance methods inherited from class UIng::Control
delete(child : Control)
delete,
destroy : Nil
destroy,
detach : self
detach,
disable : Nil
disable,
enable : Nil
enable,
enabled? : Bool
enabled?,
enabled_to_user? : Bool
enabled_to_user?,
focus : Nil
focus,
focused? : Bool
focused?,
handle : Pointer(Void)
handle,
hide : Nil
hide,
parent : Control | Nil
parent,
released? : Bool
released?,
set_minimum_size(width : Int32, height : Int32) : Nil
set_minimum_size,
show : Nil
show,
to_unsafe
to_unsafe,
tooltip=(tooltip : String) : Niltooltip=(tooltip : Nil) : Nil tooltip=, toplevel? : Bool toplevel?, visible? : Bool visible?
Macros inherited from module UIng::BlockConstructor
block_constructor
block_constructor
Constructor Detail
Instance Method Detail
def on_changed(&block : FontDescriptor -> Nil) : Nil
#
Registers a callback that receives a retainable FontDescriptor.