FontButton - Garland-g/perl6-libui GitHub Wiki
FontButton
Libui::FontButton
A button for selecting a font.
Methods
new()
Creates a FontButton.
font() returns uiFontDescriptor
Gets the current font displayed by the button. Stores it for further use and returns it.
family() returns Str
Returns the family of the font cached by font().
size() returns Num
Returns the size of the font cached by font().
weight() returns UInt
Returns the weight of the font cached by font().
italic() returns UInt
Returns the italic property of the font cached by font().
stretch() returns UInt
Returns the stretch property of the font cached by font().
changed() returns Supply
Returns a Supply. An event is emitted whenever the font is changed.