Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkradgetfactory.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_RADGET_FACTORY_H__
3 #define __GXK_RADGET_FACTORY_H__
4 
5 #include "gxkradget.hh"
6 #include "gxkaction.hh"
7 
8 
9 /* --- type macros --- */
10 #define GXK_TYPE_RADGET_FACTORY (gxk_radget_factory_get_type ())
11 #define GXK_RADGET_FACTORY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_RADGET_FACTORY, GxkRadgetFactory))
12 #define GXK_RADGET_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_RADGET_FACTORY, GxkRadgetFactoryClass))
13 #define GXK_IS_RADGET_FACTORY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_RADGET_FACTORY))
14 #define GXK_IS_RADGET_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_RADGET_FACTORY))
15 #define GXK_RADGET_FACTORY_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_RADGET_FACTORY, GxkRadgetFactoryClass))
16 
17 
18 /* --- structures --- */
19 typedef struct {
20  GObject parent_instance;
21  GtkWindow *window;
22  GxkRadget *radget;
23  GxkRadget *xdef_radget;
24  guint cslot;
25  gulong timer;
26  gchar *action_root;
27  gchar *per_list;
28  gchar *per_branch;
29  gchar *per_action;
30  gchar *name;
31  gchar *action_list;
32  gchar *activatable;
33  gchar *regulate;
34  GxkRadgetArgs *call_args;
35  GData *branch_widgets;
36  GSList *branches;
38 typedef GObjectClass GxkRadgetFactoryClass;
39 
40 
41 /* --- public API --- */
42 GType gxk_radget_factory_get_type (void);
43 void gxk_radget_factory_check_anchored (GxkRadgetFactory *self);
44 void gxk_radget_factory_attach (GxkRadgetFactory *self,
45  GxkRadget *radget);
46 void gxk_radget_factory_match (GxkRadgetFactory *self,
47  const gchar *prefix,
48  GxkActionList *alist);
49 
50 
51 /* --- GxkFactoryBranch --- */
52 #define GXK_TYPE_FACTORY_BRANCH (gxk_factory_branch_get_type ())
53 #define GXK_FACTORY_BRANCH(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GXK_TYPE_FACTORY_BRANCH, GxkFactoryBranch))
54 #define GXK_FACTORY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GXK_TYPE_FACTORY_BRANCH, GxkFactoryBranchClass))
55 #define GXK_IS_FACTORY_BRANCH(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GXK_TYPE_FACTORY_BRANCH))
56 #define GXK_IS_FACTORY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GXK_TYPE_FACTORY_BRANCH))
57 #define GXK_FACTORY_BRANCH_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GXK_TYPE_FACTORY_BRANCH, GxkFactoryBranchClass))
58 typedef struct {
59  GObject parent_instance;
60  gchar *uline_label;
61  gchar *key_label;
62  GxkRadgetArgs *branch_args;
64 typedef GObjectClass GxkFactoryBranchClass;
65 GType gxk_factory_branch_get_type (void);
66 
67 
68 /* --- implementation details --- */
69 extern const GxkRadgetType *gxk_radget_factory_def;
70 extern const GxkRadgetType *gxk_factory_branch_def;
71 
72 
73 #endif /* __GXK_RADGET_FACTORY_H__ */
Definition: gxkradgetfactory.hh:58
Definition: gxkradget.hh:70
Definition: gxkradgetfactory.hh:19