Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstxframe.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 __BST_XFRAME_H__
3 #define __BST_XFRAME_H__
4 
5 #include <gtk/gtkframe.h>
6 
7 
8 #define BST_TYPE_XFRAME (bst_xframe_get_type ())
9 #define BST_XFRAME(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_XFRAME, BstXFrame))
10 #define BST_XFRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_XFRAME, BstXFrameClass))
11 #define BST_IS_XFRAME(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_XFRAME))
12 #define BST_IS_XFRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_XFRAME))
13 #define BST_XFRAME_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((obj), BST_TYPE_XFRAME, BstXFrameClass))
14 
15 
16 typedef struct _BstXFrame BstXFrame;
17 typedef struct _BstXFrameClass BstXFrameClass;
18 struct _BstXFrame
19 {
20  GtkFrame parent_instance;
21  GdkWindow *iwindow;
22  GtkWidget *cover;
23  guint button_down : 4;
24  guint entered : 1;
25  guint allocation_valid : 1;
26  guint steal_button : 1;
27  GtkAllocation allocation;
28 };
30 {
31  GtkFrameClass parent_class;
32 
33  gboolean (*button_check) (BstXFrame *xframe,
34  guint button);
35 };
36 
37 
38 GType bst_xframe_get_type (void);
39 void bst_xframe_set_cover_widget (BstXFrame *xframe,
40  GtkWidget *widget,
41  gboolean steal_button);
42 
43 #endif /* __BST_XFRAME_H__ */
44 
Definition: bstxframe.hh:18
Definition: bstxframe.hh:29