Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstgrowbar.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_GROW_BAR_H__
3 #define __BST_GROW_BAR_H__
4 
5 #include <gtk/gtkalignment.h>
6 #include <gtk/gtkrange.h>
7 
8 /* --- type macros --- */
9 #define BST_TYPE_GROW_BAR (bst_grow_bar_get_type ())
10 #define BST_GROW_BAR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_GROW_BAR, BstGrowBar))
11 #define BST_GROW_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_GROW_BAR, BstGrowBarClass))
12 #define BST_IS_GROW_BAR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_GROW_BAR))
13 #define BST_IS_GROW_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_GROW_BAR))
14 #define BST_GROW_BAR_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_GROW_BAR, BstGrowBarClass))
15 
16 /* --- type macros --- */
17 #define BST_TYPE_HGROW_BAR (bst_hgrow_bar_get_type ())
18 #define BST_HGROW_BAR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_HGROW_BAR, BstHGrowBar))
19 #define BST_HGROW_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_HGROW_BAR, BstHGrowBarClass))
20 #define BST_IS_HGROW_BAR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_HGROW_BAR))
21 #define BST_IS_HGROW_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_HGROW_BAR))
22 #define BST_HGROW_BAR_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_HGROW_BAR, BstHGrowBarClass))
23 
24 /* --- type macros --- */
25 #define BST_TYPE_VGROW_BAR (bst_vgrow_bar_get_type ())
26 #define BST_VGROW_BAR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_VGROW_BAR, BstVGrowBar))
27 #define BST_VGROW_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_VGROW_BAR, BstVGrowBarClass))
28 #define BST_IS_VGROW_BAR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_VGROW_BAR))
29 #define BST_IS_VGROW_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_VGROW_BAR))
30 #define BST_VGROW_BAR_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_VGROW_BAR, BstVGrowBarClass))
31 
32 
33 /* --- structures & typedefs --- */
34 typedef struct {
35  GtkAlignment parent_instance;
36  double max_upper;
37  GtkRange *range;
38  GtkWidget *shrinkb, *growb;
39 } BstGrowBar;
40 typedef struct {
41  GtkAlignmentClass parent_class;
42  gboolean is_horizontal;
44 typedef BstGrowBar BstHGrowBar;
45 typedef BstGrowBar BstVGrowBar;
48 
49 
50 /* --- prototypes --- */
51 GType bst_hgrow_bar_get_type (void);
52 GType bst_vgrow_bar_get_type (void);
53 GType bst_grow_bar_get_type (void);
54 void bst_grow_bar_set_max_upper (BstGrowBar *self,
55  gdouble maxupper);
56 void bst_grow_bar_set_adjustment (BstGrowBar *self,
57  GtkAdjustment *adj);
58 GtkAdjustment* bst_grow_bar_get_adjustment (BstGrowBar *self);
59 void bst_grow_bar_set_tooltips (BstGrowBar *self,
60  const gchar *shrink_tip,
61  const gchar *scroll_tip,
62  const gchar *grow_tip);
63 
64 #endif /* __BST_GROW_BAR_H__ */
Definition: bstgrowbar.hh:34
Definition: bstgrowbar.hh:40