include/alp/title.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  *****************************************************************************/
00010 #ifndef __ALP_TITLE_BAR_H__
00011 #define __ALP_TITLE_BAR_H__
00012 
00013 #include <gdk/gdk.h>
00014 #include <gtk/gtk.h>
00015 #include <gtk/gtkhbox.h>
00016 
00017 G_BEGIN_DECLS
00018 
00024 /* @{ */
00025 
00026 #define ALP_TYPE_TITLE_BAR              (alp_title_bar_get_type())
00027 #define ALP_TITLE_BAR(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_TITLE_BAR, AlpTitleBar))
00028 #define ALP_TITLE_BAR_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_TITLE_BAR, AlpTitleBarClass))
00029 #define ALP_IS_TITLE_BAR(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_TITLE_BAR))
00030 #define ALP_IS_TITLE_BAR_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_TITLE_BAR))
00031 #define ALP_TITLE_BAR_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_TITLE_BAR, AlpTitleBarClass))
00032                                          
00033 typedef struct _AlpTitleBar AlpTitleBar;
00034 typedef struct _AlpTitleBarClass AlpTitleBarClass;
00035 
00036 struct _AlpTitleBarClass {
00037   GtkHBoxClass parent_class;
00038 };
00039 
00040 struct _AlpTitleBar {
00041   GtkHBox hbox;
00042 
00043   GtkMenuShell *menu; /* TODO: what kind of object? */
00044   GdkWindow *event_window;
00045 
00046   GtkWidget* hBoxWidget;
00047   GtkWidget* labelWidget;
00048   GtkWidget* menuIconWidget;
00049 };
00050                                          
00056 GType          alp_title_bar_get_type       (void) G_GNUC_CONST;
00057 
00062 GtkWidget*     alp_title_bar_new                    (void);
00063 
00069 GtkWidget*     alp_title_bar_new_with_label  (const gchar   *label);
00070 
00076 void alp_title_bar_set_label(GtkWidget *widget, const gchar *label);
00077 
00083 GtkLabel*       alp_title_bar_get_gtklabel(GtkWidget *widget);
00084 
00090 const gchar *alp_title_bar_get_label(GtkWidget *widget);
00091 
00098 void           alp_title_bar_set_menu        (GtkWidget *widget, GtkMenuShell *menu);
00099 
00105 GtkMenuShell*  alp_title_bar_get_menu       (GtkWidget *widget);
00106 
00107 /* @} */
00108 G_END_DECLS
00109 
00110 #endif /* __ALP_TITLE_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.