Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkmenubutton.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __GXK_MENU_BUTTON_H__
3 #define __GXK_MENU_BUTTON_H__
4 
5 #include "gxkutils.hh"
6 #include "gxkassortment.hh"
7 
8 /* --- type macros --- */
9 #define GXK_TYPE_MENU_BUTTON (gxk_menu_button_get_type ())
10 #define GXK_MENU_BUTTON(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_MENU_BUTTON, GxkMenuButton))
11 #define GXK_MENU_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_MENU_BUTTON, GxkMenuButtonClass))
12 #define GXK_IS_MENU_BUTTON(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_MENU_BUTTON))
13 #define GXK_IS_MENU_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_MENU_BUTTON))
14 #define GXK_MENU_BUTTON_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_MENU_BUTTON, GxkMenuButtonClass))
15 typedef enum
16 {
17  GXK_MENU_BUTTON_TOOL_MODE = 1, /* ---image--- [label] | arrow */
18  GXK_MENU_BUTTON_COMBO_MODE, /* [image] label--- | arrow */
19  GXK_MENU_BUTTON_OPTION_MODE, /* ---(image,label)--- | arrow */
20  GXK_MENU_BUTTON_POPUP_MODE, /* right arrow */
21 } GxkMenuButtonMode;
22 typedef struct {
23  GtkEventBox parent_instance;
24  GtkWidget *islot, *cslot, *fframe, *button;
25  GtkMenu *menu;
26  GtkWidget *menu_item, *image, *child;
27  GdkWindow *bwindow;
28  gchar *assortment_name;
29  GxkAssortment *assortment_object;
30  gint icon_size, old_icon_size;
31  gint width, height;
32  GxkMenuButtonMode mode;
33  GtkReliefStyle relief;
35 typedef GtkEventBoxClass GxkMenuButtonClass;
36 GType gxk_menu_button_get_type (void);
37 void gxk_menu_button_update (GxkMenuButton *self);
38 
39 
40 #endif /* __GXK_MENU_BUTTON_H__ */
int width() const
int height() const
Definition: gxkassortment.hh:31
Definition: gxkmenubutton.hh:22