Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstlogadjustment.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_LOG_ADJUSTMENT_H__
3 #define __BST_LOG_ADJUSTMENT_H__
4 
5 #include "bstdefs.hh"
6 
7 /* --- type macros --- */
8 #define BST_TYPE_LOG_ADJUSTMENT (bst_log_adjustment_get_type ())
9 #define BST_LOG_ADJUSTMENT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BST_TYPE_LOG_ADJUSTMENT, BstLogAdjustment))
10 #define BST_LOG_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BST_TYPE_LOG_ADJUSTMENT, BstLogAdjustmentClass))
11 #define BST_IS_LOG_ADJUSTMENT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BST_TYPE_LOG_ADJUSTMENT))
12 #define BST_IS_LOG_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BST_TYPE_LOG_ADJUSTMENT))
13 #define BST_LOG_ADJUSTMENT_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BST_TYPE_LOG_ADJUSTMENT, BstLogAdjustmentClass))
14 
15 
16 /* --- structures & typedefs --- */
17 typedef struct _BstLogAdjustment BstLogAdjustment;
18 typedef struct _BstLogAdjustmentClass BstLogAdjustmentClass;
20 {
21  GtkAdjustment parent_instance;
22 
23  /* settings */
24  gdouble center;
25  gdouble n_steps;
26  gdouble base;
27  GtkAdjustment *client;
28 
29  guint block_client;
30  gdouble base_ln;
31  gdouble llimit;
32  gdouble ulimit;
33 };
35 {
36  GtkAdjustmentClass parent_class;
37 };
38 
39 
40 /* --- prototypes --- */
41 GType bst_log_adjustment_get_type (void);
42 void bst_log_adjustment_set_client (BstLogAdjustment *ladj,
43  GtkAdjustment *client);
44 GtkAdjustment* bst_log_adjustment_from_adj (GtkAdjustment *client);
45 void bst_log_adjustment_setup (BstLogAdjustment *ladj,
46  gdouble center,
47  gdouble base,
48  gdouble n_steps);
49 
50 #endif /* __BST_LOG_ADJUSTMENT_H__ */
Definition: bstlogadjustment.hh:34
Definition: bstlogadjustment.hh:19