BEAST - Free Software Audio Synthesizer and Tracker  0.10.0
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 #ifdef __cplusplus
8 extern "C" {
9 #endif /* __cplusplus */
10 
11 
12 #define BST_TYPE_XFRAME (bst_xframe_get_type ())
13 #define BST_XFRAME(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_XFRAME, BstXFrame))
14 #define BST_XFRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_XFRAME, BstXFrameClass))
15 #define BST_IS_XFRAME(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_XFRAME))
16 #define BST_IS_XFRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_XFRAME))
17 #define BST_XFRAME_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((obj), BST_TYPE_XFRAME, BstXFrameClass))
18 
19 
20 typedef struct _BstXFrame BstXFrame;
21 typedef struct _BstXFrameClass BstXFrameClass;
22 struct _BstXFrame
23 {
24  GtkFrame parent_instance;
25  GdkWindow *iwindow;
26  GtkWidget *cover;
27  guint button_down : 4;
28  guint entered : 1;
29  guint allocation_valid : 1;
30  guint steal_button : 1;
31  GtkAllocation allocation;
32 };
34 {
35  GtkFrameClass parent_class;
36 
37  gboolean (*button_check) (BstXFrame *xframe,
38  guint button);
39 };
40 
41 
42 GType bst_xframe_get_type (void);
43 void bst_xframe_set_cover_widget (BstXFrame *xframe,
44  GtkWidget *widget,
45  gboolean steal_button);
46 
47 #ifdef __cplusplus
48 }
49 #endif /* __cplusplus */
50 
51 #endif /* __BST_XFRAME_H__ */
52 
Definition: bstxframe.hh:22
Definition: bstxframe.hh:33