| Top |
| CtkPackDirection | child-pack-direction | Read / Write |
| CtkPackDirection | pack-direction | Read / Write |
GObject
╰── GInitiallyUnowned
╰── CtkWidget
╰── CtkContainer
╰── CtkMenuShell
╰── CtkMenuBar
The CtkMenuBar is a subclass of CtkMenuShell which contains one or more CtkMenuItems. The result is a standard menu bar which can hold many menu items.
CtkWidget *
ctk_menu_bar_new_from_model (GMenuModel *model);
Creates a new CtkMenuBar and populates it with menu items
and submenus according to model
.
The created menu items are connected to actions found in the CtkApplicationWindow to which the menu bar belongs - typically by means of being contained within the CtkApplicationWindows widget hierarchy.
Since: 3.4
void ctk_menu_bar_set_pack_direction (CtkMenuBar *menubar,CtkPackDirection pack_dir);
Sets how items should be packed inside a menubar.
Since: 2.8
CtkPackDirection
ctk_menu_bar_get_pack_direction (CtkMenuBar *menubar);
Retrieves the current pack direction of the menubar.
See ctk_menu_bar_set_pack_direction().
Since: 2.8
void ctk_menu_bar_set_child_pack_direction (CtkMenuBar *menubar,CtkPackDirection child_pack_dir);
Sets how widgets should be packed inside the children of a menubar.
Since: 2.8
CtkPackDirection
ctk_menu_bar_get_child_pack_direction (CtkMenuBar *menubar);
Retrieves the current child pack direction of the menubar.
See ctk_menu_bar_set_child_pack_direction().
Since: 2.8
“child-pack-direction” property“child-pack-direction” CtkPackDirection
The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged.
Owner: CtkMenuBar
Flags: Read / Write
Default value: CTK_PACK_DIRECTION_LTR
Since: 2.8
“pack-direction” property“pack-direction” CtkPackDirection
The pack direction of the menubar. It determines how menuitems are arranged in the menubar.
Owner: CtkMenuBar
Flags: Read / Write
Default value: CTK_PACK_DIRECTION_LTR
Since: 2.8