UIng::Toolbar
Inherits UIng::BlockConstructor < Reference < Object
A native toolbar that can be attached to one Window at a time.
Toolbar is not a Control. An attached toolbar is freed when its window is destroyed. Detach it first to keep using it. Item icons are copied.
Constructors
new(*args, &)
Sourcenew(*args, **kwargs, &)
Sourcenew
SourceInstance methods
append_button(text : String, icon : Image | Nil = nil) : ToolbarItem
Sourceappend_button(text : String, icon : Image | Nil = nil, &) : ToolbarItem
Configures the new item and returns it, regardless of the block result.
append_separator
Sourceappend_toggle_button(text : String, icon : Image | Nil = nil) : ToolbarItem
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, including while attached to a window.
macOS displays DisplayMode::IconAndTextHorizontal vertically.
free
Sourcereleased?
Sourceto_unsafe
Source