include/alp/menubar.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved.
00003  * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved.
00004  *****************************************************************************/
00012 #ifndef __ALP_MENU_BAR_H__
00013 #define __ALP_MENU_BAR_H__
00014 
00015 #include <gdk/gdk.h>
00016 #include <gtk/gtk.h>
00017 
00018 G_BEGIN_DECLS
00019 
00025 /* @{ */
00026 
00027 #define ALP_TYPE_MENU_BAR               (alp_menu_bar_get_type())
00028 #define ALP_MENU_BAR(obj)               (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_MENU_BAR, AlpMenuBar))
00029 #define ALP_MENU_BAR_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_MENU_BAR, AlpMenuBarClass))
00030 #define ALP_IS_MENU_BAR(obj)            (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_MENU_BAR))
00031 #define ALP_IS_MENU_BAR_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_MENU_BAR))
00032 #define ALP_MENU_BAR_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_MENU_BAR, AlpMenuBarClass))
00033                                          
00034 typedef struct _AlpMenuBar AlpMenuBar;
00035 typedef struct _AlpMenuBarClass AlpMenuBarClass;
00036 
00037 struct _AlpMenuBarClass {
00038   GtkMenuBarClass parent_class;
00039 };
00040 
00041 struct _AlpMenuBar {
00042   GtkMenuBar menu_shell;
00043   GtkWidget *toplevel;
00044   GtkWindow *base_window;
00045   GtkWidget *menu_icon;
00046   guint needs_destruction_ref_count : 1;
00047 };
00048                                          
00049 
00055 GType          alp_menu_bar_get_type        (void) G_GNUC_CONST;
00060 GtkWidget*     alp_menu_bar_new             (void);
00061 
00068 void           alp_menu_bar_adopt_items(AlpMenuBar *menu_bar,
00069                                         GtkMenuShell *menu_shell);
00070 
00079 void           alp_menu_bar_popup           (AlpMenuBar *menu_bar,
00080                                              guint button,
00081                                              guint32 activate_time,
00082                                              GtkWindow *base);
00083 
00088 void           alp_menu_bar_popdown         (AlpMenuBar *menu_bar);
00089 
00097 void               alp_menu_bar_set_toplevel_menu(GtkWindow *toplevel, AlpMenuBar *menu_bar);
00098 
00104 AlpMenuBar*        alp_menu_bar_get_toplevel_menu(GtkWindow *toplevel);
00105 
00106 
00107 /* @} */
00108 G_END_DECLS
00109 
00110 #endif /* __ALP_MENU_BAR_H__ */

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

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