Synopsis#include <gtk/gtk.h> GtkMenuBar; GtkWidget* gtk_menu_bar_new (void); #define gtk_menu_bar_append (menu,child) #define gtk_menu_bar_prepend (menu,child) #define gtk_menu_bar_insert (menu,child,pos) enum GtkPackDirection; void gtk_menu_bar_set_pack_direction (GtkMenuBar *menubar, GtkPackDirection pack_dir); GtkPackDirection gtk_menu_bar_get_pack_direction (GtkMenuBar *menubar); void gtk_menu_bar_set_child_pack_direction (GtkMenuBar *menubar, GtkPackDirection child_pack_dir); GtkPackDirection gtk_menu_bar_get_child_pack_direction (GtkMenuBar *menubar); Object HierarchyGObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkMenuShell +----GtkMenuBar Properties"child-pack-direction" GtkPackDirection : Read / Write "pack-direction" GtkPackDirection : Read / Write DescriptionThe GtkMenuBar is a subclass of GtkMenuShell which contains one to many GtkMenuItem. The result is a standard menu bar which can hold many menu items. GtkMenuBar allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the gtk_menu_bar_set_shadow_type function. DetailsGtkMenuBartypedef struct _GtkMenuBar GtkMenuBar; The GtkMenuBar struct contains the following fields. (These fields should be considered read-only. They should never be set by an application.) gtk_menu_bar_new ()GtkWidget* gtk_menu_bar_new (void); Creates the new GtkMenuBar
gtk_menu_bar_append()#define gtk_menu_bar_append(menu,child) gtk_menu_shell_append ((GtkMenuShell *)(menu),(child)) Warning
Adds a new GtkMenuItem to the end of the GtkMenuBar
gtk_menu_bar_prepend()#define gtk_menu_bar_prepend(menu,child) gtk_menu_shell_prepend ((GtkMenuShell *)(menu),(child)) Warning
Adds a new GtkMenuItem to the beginning of the GtkMenuBar
gtk_menu_bar_insert()#define gtk_menu_bar_insert(menu,child,pos) gtk_menu_shell_insert ((GtkMenuShell *)(menu),(child),(pos)) Warning
Adds a new GtkMenuItem to the GtkMenuBar at the position defined by
enum GtkPackDirectiontypedef enum { GTK_PACK_DIRECTION_LTR, GTK_PACK_DIRECTION_RTL, GTK_PACK_DIRECTION_TTB, GTK_PACK_DIRECTION_BTT } GtkPackDirection;
gtk_menu_bar_set_pack_direction ()void gtk_menu_bar_set_pack_direction (GtkMenuBar *menubar, GtkPackDirection pack_dir); Sets how items should be packed inside a menubar.
Since 2.8 gtk_menu_bar_get_pack_direction ()GtkPackDirection gtk_menu_bar_get_pack_direction (GtkMenuBar *menubar);
Retrieves the current pack direction of the menubar. See
Since 2.8 gtk_menu_bar_set_child_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.
Since 2.8 gtk_menu_bar_get_child_pack_direction ()GtkPackDirection gtk_menu_bar_get_child_pack_direction (GtkMenuBar *menubar);
Retrieves the current child pack direction of the menubar. See
Since 2.8 Property DetailsThe
|