Top | ![]() |
![]() |
![]() |
![]() |
GtkPackDirection | child-pack-direction | Read / Write |
GtkPackDirection | pack-direction | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkMenuShell ╰── GtkMenuBar
The GtkMenuBar is a subclass of GtkMenuShell which contains one or more GtkMenuItems. The result is a standard menu bar which can hold many menu items.
GtkWidget *
gtk_menu_bar_new_from_model (GMenuModel *model
);
Creates a new GtkMenuBar and populates it with menu items
and submenus according to model
.
The created menu items are connected to actions found in the GtkApplicationWindow to which the menu bar belongs - typically by means of being contained within the GtkApplicationWindows widget hierarchy.
void gtk_menu_bar_set_pack_direction (GtkMenuBar *menubar
,GtkPackDirection pack_dir
);
Sets how items should be packed inside a menubar.
GtkPackDirection
gtk_menu_bar_get_pack_direction (GtkMenuBar *menubar
);
Retrieves the current pack direction of the menubar.
See gtk_menu_bar_set_pack_direction()
.
void gtk_menu_bar_set_child_pack_direction (GtkMenuBar *menubar
,GtkPackDirection child_pack_dir
);
Sets how widgets should be packed inside the children of a menubar.
GtkPackDirection
gtk_menu_bar_get_child_pack_direction (GtkMenuBar *menubar
);
Retrieves the current child pack direction of the menubar.
See gtk_menu_bar_set_child_pack_direction()
.
“child-pack-direction”
property“child-pack-direction” GtkPackDirection
The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged.
Flags: Read / Write
Default value: GTK_PACK_DIRECTION_LTR
“pack-direction”
property“pack-direction” GtkPackDirection
The pack direction of the menubar. It determines how menuitems are arranged in the menubar.
Flags: Read / Write
Default value: GTK_PACK_DIRECTION_LTR