AlpMenuBar
[UI Widgets]


Data Structures

struct  _AlpMenuBar
struct  _AlpMenuBarClass

Defines

#define ALP_IS_MENU_BAR(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_MENU_BAR))
#define ALP_IS_MENU_BAR_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_MENU_BAR))
#define ALP_MENU_BAR(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_MENU_BAR, AlpMenuBar))
#define ALP_MENU_BAR_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_MENU_BAR, AlpMenuBarClass))
#define ALP_MENU_BAR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_MENU_BAR, AlpMenuBarClass))
#define ALP_TYPE_MENU_BAR   (alp_menu_bar_get_type())

Typedefs

typedef _AlpMenuBar AlpMenuBar
typedef _AlpMenuBarClass AlpMenuBarClass

Functions

void alp_menu_bar_adopt_items (AlpMenuBar *menu_bar, GtkMenuShell *menu_shell)
 Add menu items grafted from given menu shell.
AlpMenuBaralp_menu_bar_get_toplevel_menu (GtkWindow *toplevel)
 Get top level menu of a window.
GType alp_menu_bar_get_type (void) G_GNUC_CONST
 Get the AlpMenuBar object type.
GtkWidget * alp_menu_bar_new (void)
 Creates a new AlpMenuBar widget.
void alp_menu_bar_popdown (AlpMenuBar *menu_bar)
 Make a menubar inactive and hide it.
void alp_menu_bar_popup (AlpMenuBar *menu_bar, guint button, guint32 activate_time, GtkWindow *base)
 Displays a menubar and make it active. The position where the menubar appears depends on a given base window.
void alp_menu_bar_set_toplevel_menu (GtkWindow *toplevel, AlpMenuBar *menu_bar)
 Bind given menu as top level menu.


Define Documentation

#define ALP_IS_MENU_BAR obj   )     (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_MENU_BAR))
 

#define ALP_IS_MENU_BAR_CLASS klass   )     (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_MENU_BAR))
 

#define ALP_MENU_BAR obj   )     (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_MENU_BAR, AlpMenuBar))
 

#define ALP_MENU_BAR_CLASS klass   )     (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_MENU_BAR, AlpMenuBarClass))
 

#define ALP_MENU_BAR_GET_CLASS obj   )     (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_MENU_BAR, AlpMenuBarClass))
 

#define ALP_TYPE_MENU_BAR   (alp_menu_bar_get_type())
 


Typedef Documentation

typedef struct _AlpMenuBar AlpMenuBar
 

typedef struct _AlpMenuBarClass AlpMenuBarClass
 


Function Documentation

void alp_menu_bar_adopt_items AlpMenuBar menu_bar,
GtkMenuShell *  menu_shell
 

Add menu items grafted from given menu shell.

Parameters:
menu_bar an AlpMenuBar
menu_shell a template menu shell. Graft all menu items of the menu shell to the alp meun bar. After this, the menu shell will be empty menu shell.

AlpMenuBar* alp_menu_bar_get_toplevel_menu GtkWindow *  toplevel  ) 
 

Get top level menu of a window.

Parameters:
toplevel the toplevel window.
Returns:
the AlpMenuBar bound to the window or NULL.

GType alp_menu_bar_get_type void   ) 
 

Get the AlpMenuBar object type.

Parameters:
[in] none. 
Returns:
The AlpMenuBar type identifier

GtkWidget* alp_menu_bar_new void   ) 
 

Creates a new AlpMenuBar widget.

Returns:
a new AlpMenuBar.

void alp_menu_bar_popdown AlpMenuBar menu_bar  ) 
 

Make a menubar inactive and hide it.

Parameters:
menu_bar an AlpMenuBar

void alp_menu_bar_popup AlpMenuBar menu_bar,
guint  button,
guint32  activate_time,
GtkWindow *  base
 

Displays a menubar and make it active. The position where the menubar appears depends on a given base window.

Parameters:
menu_bar an AlpMenuBar
button the mouse button which was pressed to initiate the event. Ordinally this should be 0.
activate_time the time at which the activation event occured.
base a GtkWindow on which the AlpMenuBar pops up. Ordinally this should be the application's toplevel window .

void alp_menu_bar_set_toplevel_menu GtkWindow *  toplevel,
AlpMenuBar menu_bar
 

Bind given menu as top level menu.

Parameters:
toplevel the toplevel window.
menu_shell a menu_shell a template menu shell or NULL Bind given menu as top level menu of the specified window. After that, the toplevel menu pops up when F10 key is pushed automatically.


Generated on Wed Jul 30 07:06:41 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.