class UIng::FontButton

Defined in:

uing/font_button.cr

Constructors

Instance Method Summary

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) : Nil
tooltip=(tooltip : Nil) : Nil
tooltip=
, toplevel? : Bool toplevel?, visible? : Bool visible?

Macros inherited from module UIng::BlockConstructor

block_constructor block_constructor

Constructor Detail

def self.new(*args, &) #

[View source]
def self.new(*args, **kwargs, &) #

[View source]
def self.new #

[View source]

Instance Method Detail

def clear_on_changed : Nil #

Clears the callback; equivalent to #on_changed(nil).


[View source]
def font(descriptor : FontDescriptor) : Nil #

DEPRECATED Use #font to return a FontDescriptor


[View source]
def font : FontDescriptor #

Returns the selected font as a Crystal-managed descriptor.


[View source]
def on_changed(&block : FontDescriptor -> Nil) : Nil #

Registers a callback that receives a retainable FontDescriptor.


[View source]
def on_changed(callback : Nil) : Nil #

[View source]
def to_unsafe #

[View source]