Pike v8.1 release 6

Class GTK2.Toolbar

Inheritance graph
Description

Toolbars are usually used to group some number of widgets in order to simplify customization of their look and layout. Typically a toolbar consists of buttons with icons, labels and tooltips, but any other widget can also be put inside a toolbar. Finally, items can be arranged horizontally or vertically and buttons can be displayed with icons, labels, or both.

Examples:  GTK2.Toolbar()->insert(GTK2.ToolItem()->add(GTK2.Button("Button 1")),-1)->insert(GTK2.ToolItem()->add(GTK2.Label("     ")),-1)->insert(GTK2.ToolItem()->add(GTK2.Button("Button 2")),-1)->insert(GTK2.ToolItem()->add(GTK2.Button("Button 3")),-1)

 GTK2.Toolbar((["orientation":GTK2.ORIENTATION_VERTICAL]))->insert(GTK2.ToolItem()->add(GTK2.Button("Button 1")),-1)->insert(GTK2.ToolItem()->add(GTK2.Label("     ")),-1)->insert(GTK2.ToolItem()->add(GTK2.Button("Button 2")),-1)->insert(GTK2.ToolItem()->add(GTK2.Button("Button 3")),-1)

Properties: int icon-size int icon-size-set int orientation int show-arrow int toolbar-style int tooltips

Child properties: int expand int homogeneous

Style properties: int button-relief int internal-padding int shadow-type int space-size int space-style

Signals: orientation_changed

popup_context_menu

style_changed


Inherit Container

inherit GTK2.Container : Container


Method create

GTK2.Toolbar GTK2.Toolbar(mapping|void props)

Description

Creates a new toolbar.