class
UIng::FontButton
- UIng::FontButton
- UIng::Control
- Reference
- Object
Defined in:
uing/font_button.crConstructors
Instance Method Summary
-
#font(&block : FontDescriptor -> Nil)
Yields the selected font as a block-scoped FontDescriptor.
- #font(descriptor : FontDescriptor)
- #free_font(font_descriptor : FontDescriptor) : Nil
-
#on_changed(&block : FontDescriptor -> Nil) : Nil
Registers a callback that receives a block-scoped FontDescriptor.
- #to_unsafe
Instance methods inherited from class UIng::Control
__parent__
__parent__,
__set_parent__(parent) : Nil
__set_parent__,
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?,
handle : Pointer(Void)
handle,
hide : Nil
hide,
parent : Control | Nil
parent,
released? : Bool
released?,
show : Nil
show,
to_unsafe
to_unsafe,
toplevel? : Bool
toplevel?,
verify_set_parent(parent) : Nil
verify_set_parent,
visible? : Bool
visible?
Macros inherited from module UIng::BlockConstructor
block_constructor
block_constructor
Constructor Detail
Instance Method Detail
def font(&block : FontDescriptor -> Nil)
#
Yields the selected font as a block-scoped FontDescriptor. Use FontDescriptor#snapshot to retain its values after the block returns.
def on_changed(&block : FontDescriptor -> Nil) : Nil
#
Registers a callback that receives a block-scoped FontDescriptor. Use FontDescriptor#snapshot to retain the selected font after the callback returns.