BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bstgentypes.h
Go to the documentation of this file.
1  G_BEGIN_DECLS;
2 
3 
4 
5 
6 /* --- bstpatterncolumns.hh --- */
7 #define BST_TYPE_PATTERN_LTYPE (bst__type_id__BstPatternLType)
8 extern GType bst__type_id__BstPatternLType;
9 #define BST_TYPE_PATTERN_LFLAGS (bst__type_id__BstPatternLFlags)
10 extern GType bst__type_id__BstPatternLFlags;
11 
12 /* --- bstsegment.hh --- */
13 #define BST_TYPE_SEGMENT_TYPE (bst__type_id__BstSegmentType)
14 extern GType bst__type_id__BstSegmentType;
15 
16 /* --- bstsnifferscope.hh --- */
17 #define BST_TYPE_SOURCE_PROBE_FEATURE (bst__type_id__BstSourceProbeFeature)
18 extern GType bst__type_id__BstSourceProbeFeature;
19 
20 /* --- bstfiledialog.hh --- */
21 #define BST_TYPE_FILE_DIALOG_MODE (bst__type_id__BstFileDialogMode)
22 extern GType bst__type_id__BstFileDialogMode;
23 
24 /* --- bstmenus.hh --- */
25 #define BST_TYPE_CHOICE_FLAGS (bst__type_id__BstChoiceFlags)
26 extern GType bst__type_id__BstChoiceFlags;
27 
28 /* --- bstqsampler.hh --- */
29 #define BST_TYPE_QSAMPLER_TYPE (bst__type_id__BstQSamplerType)
30 extern GType bst__type_id__BstQSamplerType;
31 #define BST_TYPE_QSAMPLER_DRAW_MODE (bst__type_id__BstQSamplerDrawMode)
32 extern GType bst__type_id__BstQSamplerDrawMode;
33 
34 /* --- bstusermessage.hh --- */
35 #define BST_TYPE_MSG_TYPE (bst__type_id__BstMsgType)
36 extern GType bst__type_id__BstMsgType;
37 
38 /* --- bstdefs.hh --- */
39 #define BST_TYPE_QUANTIZATION_TYPE (bst__type_id__BstQuantizationType)
40 extern GType bst__type_id__BstQuantizationType;
41 
42 
43 
44 
45 /*-------- begin ../sfi/sfidl generated code --------*/
46 
47 
48 
49 
50 typedef struct _BstGConfig BstGConfig;
51 typedef struct _BstSkinConfig BstSkinConfig;
52 typedef struct _BstMsgAbsorbString BstMsgAbsorbString;
53 typedef struct _BstKeyBindingItem BstKeyBindingItem;
54 typedef struct _BstMsgAbsorbStringSeq BstMsgAbsorbStringSeq;
55 typedef struct _BstKeyBindingItemSeq BstKeyBindingItemSeq;
56 
57 typedef enum {
58  BST_UP = 1,
59  BST_LEFT = 2,
60  BST_RIGHT = 3,
61  BST_DOWN = 4,
62 } BstDirection;
63 
64 typedef enum {
65  BST_FFT_SIZE_2 = 1,
66  BST_FFT_SIZE_4 = 2,
67  BST_FFT_SIZE_8 = 3,
68  BST_FFT_SIZE_16 = 4,
69  BST_FFT_SIZE_32 = 5,
70  BST_FFT_SIZE_64 = 6,
71  BST_FFT_SIZE_128 = 7,
72  BST_FFT_SIZE_256 = 8,
73  BST_FFT_SIZE_512 = 9,
74  BST_FFT_SIZE_1024 = 10,
75  BST_FFT_SIZE_2048 = 11,
76  BST_FFT_SIZE_4096 = 12,
77  BST_FFT_SIZE_8192 = 13,
78  BST_FFT_SIZE_16384 = 14,
79  BST_FFT_SIZE_32768 = 15,
80  BST_FFT_SIZE_65536 = 16,
81 } BstFFTSize;
82 
83 typedef enum {
84  BST_NOTE_LENGTH_NONE = 0,
85  BST_NOTE_LENGTH_1 = 1,
86  BST_NOTE_LENGTH_2 = 2,
87  BST_NOTE_LENGTH_4 = 3,
88  BST_NOTE_LENGTH_8 = 4,
89  BST_NOTE_LENGTH_16 = 5,
90  BST_NOTE_LENGTH_32 = 6,
91  BST_NOTE_LENGTH_64 = 7,
92  BST_NOTE_LENGTH_128 = 8,
93  BST_NOTE_LENGTH_1_P = 9,
94  BST_NOTE_LENGTH_2_P = 10,
95  BST_NOTE_LENGTH_4_P = 11,
96  BST_NOTE_LENGTH_8_P = 12,
97  BST_NOTE_LENGTH_16_P = 13,
98  BST_NOTE_LENGTH_32_P = 14,
99  BST_NOTE_LENGTH_64_P = 15,
100  BST_NOTE_LENGTH_128_P = 16,
101  BST_NOTE_LENGTH_1_T = 17,
102  BST_NOTE_LENGTH_2_T = 18,
103  BST_NOTE_LENGTH_4_T = 19,
104  BST_NOTE_LENGTH_8_T = 20,
105  BST_NOTE_LENGTH_16_T = 21,
106  BST_NOTE_LENGTH_32_T = 22,
107  BST_NOTE_LENGTH_64_T = 23,
108  BST_NOTE_LENGTH_128_T = 24,
109 } BstNoteLength;
110 
111 typedef enum {
112  BST_ROW_SHADING_NONE = 0,
113  BST_ROW_SHADING_2 = 1,
114  BST_ROW_SHADING_4 = 2,
115  BST_ROW_SHADING_8 = 3,
116  BST_ROW_SHADING_16 = 4,
117  BST_ROW_SHADING_2_4 = 5,
118  BST_ROW_SHADING_4_8 = 6,
119  BST_ROW_SHADING_4_12 = 7,
120  BST_ROW_SHADING_4_16 = 8,
121  BST_ROW_SHADING_8_16 = 9,
122  BST_ROW_SHADING_3 = 10,
123  BST_ROW_SHADING_6 = 11,
124  BST_ROW_SHADING_12 = 12,
125  BST_ROW_SHADING_3_6 = 13,
126  BST_ROW_SHADING_3_12 = 14,
127  BST_ROW_SHADING_6_12 = 15,
128 } BstRowShading;
129 
130 struct _BstGConfig {
131  gchar* rc_version;
132  SfiInt snet_font_size;
133  SfiBool snet_anti_aliased;
134  SfiBool snet_edit_fallback;
135  SfiBool snet_swap_io_channels;
136  SfiBool gui_enable_error_bell;
137  SfiBool size_group_input_fields;
138  SfiBool slow_scopes;
139 };
141  gchar* skin_name;
142  gchar* pattern_image;
143  SfiReal pattern_shade;
144  SfiInt pattern_color;
145  SfiInt pattern_scolor1;
146  SfiInt pattern_scolor2;
147  SfiInt pattern_text0;
148  SfiInt pattern_text1;
149  SfiInt pattern_vbar1;
150  gchar* piano_image;
151  SfiReal piano_shade;
152  SfiInt piano_color;
153  SfiInt piano_hbar;
154  SfiInt piano_vbar;
155  SfiInt piano_hgrid;
156  SfiInt piano_vgrid;
157  SfiInt piano_mbar;
158  gchar* controls_image;
159  SfiReal controls_shade;
160  SfiInt controls_color;
161  SfiInt controls_hbar;
162  SfiInt controls_mbar;
163  SfiInt controls_positive;
164  SfiInt controls_zero;
165  SfiInt controls_negative;
166 };
168  gchar* version;
169  gchar* cstring;
170  SfiBool enabled;
171 };
173  gchar* key_name;
174  gchar* func_name;
175  SfiReal func_param;
176 };
177 
179  guint n_strings;
180  BstMsgAbsorbString** strings;
181 };
183  guint n_items;
184  BstKeyBindingItem** items;
185 };
186 BstGConfig* bst_gconfig_new (void);
187 BstGConfig* bst_gconfig_copy_shallow (BstGConfig* rec);
188 BstGConfig* bst_gconfig_from_rec (SfiRec *sfi_rec);
189 SfiRec *bst_gconfig_to_rec (BstGConfig* rec);
190 void bst_gconfig_free (BstGConfig* rec);
191 
192 BstSkinConfig* bst_skin_config_new (void);
193 BstSkinConfig* bst_skin_config_copy_shallow (BstSkinConfig* rec);
194 BstSkinConfig* bst_skin_config_from_rec (SfiRec *sfi_rec);
195 SfiRec *bst_skin_config_to_rec (BstSkinConfig* rec);
196 void bst_skin_config_free (BstSkinConfig* rec);
197 
198 BstMsgAbsorbString* bst_msg_absorb_string_new (void);
199 BstMsgAbsorbString* bst_msg_absorb_string_copy_shallow (BstMsgAbsorbString* rec);
200 BstMsgAbsorbString* bst_msg_absorb_string_from_rec (SfiRec *sfi_rec);
201 SfiRec *bst_msg_absorb_string_to_rec (BstMsgAbsorbString* rec);
202 void bst_msg_absorb_string_free (BstMsgAbsorbString* rec);
203 
204 BstKeyBindingItem* bst_key_binding_item_new (void);
205 BstKeyBindingItem* bst_key_binding_item_copy_shallow (BstKeyBindingItem* rec);
206 BstKeyBindingItem* bst_key_binding_item_from_rec (SfiRec *sfi_rec);
207 SfiRec *bst_key_binding_item_to_rec (BstKeyBindingItem* rec);
208 void bst_key_binding_item_free (BstKeyBindingItem* rec);
209 
210 
211 BstMsgAbsorbStringSeq* bst_msg_absorb_string_seq_new (void);
212 void bst_msg_absorb_string_seq_append (BstMsgAbsorbStringSeq* seq, BstMsgAbsorbString* element);
213 BstMsgAbsorbStringSeq* bst_msg_absorb_string_seq_copy_shallow (BstMsgAbsorbStringSeq* seq);
214 BstMsgAbsorbStringSeq* bst_msg_absorb_string_seq_from_seq (SfiSeq *sfi_seq);
215 SfiSeq *bst_msg_absorb_string_seq_to_seq (BstMsgAbsorbStringSeq* seq);
216 void bst_msg_absorb_string_seq_resize (BstMsgAbsorbStringSeq* seq, guint new_size);
217 void bst_msg_absorb_string_seq_free (BstMsgAbsorbStringSeq* seq);
218 
219 BstKeyBindingItemSeq* bst_key_binding_item_seq_new (void);
220 void bst_key_binding_item_seq_append (BstKeyBindingItemSeq* seq, BstKeyBindingItem* element);
221 BstKeyBindingItemSeq* bst_key_binding_item_seq_copy_shallow (BstKeyBindingItemSeq* seq);
222 BstKeyBindingItemSeq* bst_key_binding_item_seq_from_seq (SfiSeq *sfi_seq);
223 SfiSeq *bst_key_binding_item_seq_to_seq (BstKeyBindingItemSeq* seq);
224 void bst_key_binding_item_seq_resize (BstKeyBindingItemSeq* seq, guint new_size);
225 void bst_key_binding_item_seq_free (BstKeyBindingItemSeq* seq);
226 
227 const gchar* bst_direction_to_choice (BstDirection value);
228 BstDirection bst_direction_from_choice (const gchar *choice);
229 const gchar* bst_fft_size_to_choice (BstFFTSize value);
230 BstFFTSize bst_fft_size_from_choice (const gchar *choice);
231 const gchar* bst_note_length_to_choice (BstNoteLength value);
232 BstNoteLength bst_note_length_from_choice (const gchar *choice);
233 const gchar* bst_row_shading_to_choice (BstRowShading value);
234 BstRowShading bst_row_shading_from_choice (const gchar *choice);
235 
236 SfiChoiceValues bst_direction_get_values (void);
237 SfiChoiceValues bst_fft_size_get_values (void);
238 SfiChoiceValues bst_note_length_get_values (void);
239 SfiChoiceValues bst_row_shading_get_values (void);
240 extern SfiRecFields bst_gconfig_fields;
241 extern SfiRecFields bst_skin_config_fields;
242 extern SfiRecFields bst_msg_absorb_string_fields;
243 extern SfiRecFields bst_key_binding_item_fields;
244 
245 
246 /*-------- end ../sfi/sfidl generated code --------*/
247 
248 
249 G_END_DECLS;
Definition: bstgentypes.h:130
Definition: bstgentypes.h:167
Definition: bstgentypes.h:178
Definition: bstgentypes.h:172
Definition: bstgentypes.h:182
Definition: sfitypes.hh:32
Definition: sfiparams.hh:68
Definition: bstgentypes.h:140