gtk.MenuBar.MenuBar Class Reference

Inheritance diagram for gtk.MenuBar.MenuBar:

gtk.MenuShell.MenuShell gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkMenuBargetMenuBarStruct ()
 this (GtkMenuBar *gtkMenuBar)
 Sets our main struct and passes it to the parent class.
Menu append (char[] label, bool rightJustify=false)
void append (Widget widget)
 this ()
 Creates the new GtkMenuBar Returns: the GtkMenuBar.
void setPackDirection (GtkPackDirection packDir)
 Sets how items should be packed inside a menubar.
GtkPackDirection getPackDirection ()
 Retrieves the current pack direction of the menubar.
void setChildPackDirection (GtkPackDirection childPackDir)
 Sets how widgets should be packed inside the children of a menubar.
GtkPackDirection getChildPackDirection ()
 Retrieves the current child pack direction of the menubar.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkMenuBargtkMenuBar
 the main Gtk struct

Constructor & Destructor Documentation

gtk.MenuBar.MenuBar.this ( GtkMenuBar gtkMenuBar  ) 

Sets our main struct and passes it to the parent class.

gtk.MenuBar.MenuBar.this (  ) 

Creates the new GtkMenuBar Returns: the GtkMenuBar.


Member Function Documentation

void gtk.MenuBar.MenuBar.append ( Widget  widget  ) 

Menu gtk.MenuBar.MenuBar.append ( char[]  label,
bool  rightJustify = false 
)

GtkPackDirection gtk.MenuBar.MenuBar.getChildPackDirection (  ) 

Retrieves the current child pack direction of the menubar.

See gtk_menu_bar_set_child_pack_direction(). menubar: a GtkMenuBar Returns: the child pack direction Since 2.8 Property Details The "child-pack-direction" property "child-pack-direction" GtkPackDirection : Read / Write The pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged. Default value: GTK_PACK_DIRECTION_LTR Since 2.8

GtkMenuBar* gtk.MenuBar.MenuBar.getMenuBarStruct (  ) 

GtkPackDirection gtk.MenuBar.MenuBar.getPackDirection (  ) 

Retrieves the current pack direction of the menubar.

See gtk_menu_bar_set_pack_direction(). menubar: a GtkMenuBar Returns: the pack direction Since 2.8

void* gtk.MenuBar.MenuBar.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.MenuShell.MenuShell.

void gtk.MenuBar.MenuBar.setChildPackDirection ( GtkPackDirection  childPackDir  ) 

Sets how widgets should be packed inside the children of a menubar.

menubar: a GtkMenuBar. child_pack_dir: a new GtkPackDirection. Since 2.8

void gtk.MenuBar.MenuBar.setPackDirection ( GtkPackDirection  packDir  ) 

Sets how items should be packed inside a menubar.

menubar: a GtkMenuBar. pack_dir: a new GtkPackDirection. Since 2.8


Member Data Documentation

GtkMenuBar* gtk.MenuBar.MenuBar.gtkMenuBar [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo