class
UIng::Toolbar
- UIng::Toolbar
- Reference
- Object
Overview
A native toolbar that can be attached to one Window at a time.
Toolbar is not a Control. Free it explicitly after detaching it from its window. Images passed to toolbar items are borrowed by libui-ng and must remain alive until the toolbar is freed.
Defined in:
uing/toolbar.crConstructors
Instance Method Summary
- #append_button(text : String, icon : Image | Nil = nil) : ToolbarItem
- #append_flexible_space : Nil
- #append_separator : Nil
- #append_space : Nil
- #append_toggle_button(text : String, icon : Image | Nil = nil) : ToolbarItem
- #attached? : Bool
-
#display_mode : DisplayMode
Returns the requested display mode.
-
#display_mode=(mode : DisplayMode) : Nil
Sets the display mode before the toolbar is first attached to a window.
- #free : Nil
- #released? : Bool
- #to_unsafe
Constructor Detail
Instance Method Detail
def display_mode : DisplayMode
#
Returns the requested display mode. The default is
DisplayMode::IconAndTextVertical.
def display_mode=(mode : DisplayMode) : Nil
#
Sets the display mode before the toolbar is first attached to a window.
macOS displays DisplayMode::IconAndTextHorizontal vertically.