UIng::Toolbar
Inherits Reference < Object
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.
Constructors
new
SourceInstance methods
append_button(text : String, icon : Image | Nil = nil) : ToolbarItem
Sourceappend_separator
Sourceappend_toggle_button(text : String, icon : Image | Nil = nil) : ToolbarItem
Sourceattached?
Sourcedisplay_mode
Returns the requested display mode. The default is
DisplayMode::IconAndTextVertical.
display_mode=(mode : DisplayMode) : Nil
Sets the display mode before the toolbar is first attached to a window.
macOS displays DisplayMode::IconAndTextHorizontal vertically.
free
Sourcereleased?
Sourceto_unsafe
Source