class

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

Instance methods

append_button(text : String, icon : Image | Nil = nil) : ToolbarItem
Source
append_separator
Source
append_toggle_button(text : String, icon : Image | Nil = nil) : ToolbarItem
Source
attached?
Source
display_mode

Returns the requested display mode. The default is DisplayMode::IconAndTextVertical.

Source
display_mode=(mode : DisplayMode) : Nil

Sets the display mode before the toolbar is first attached to a window. macOS displays DisplayMode::IconAndTextHorizontal vertically.

Source
free
Source
released?
Source
to_unsafe
Source

Nested types