Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bstskinconfig.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_SKIN_CONFIG_H__
3 #define __BST_SKIN_CONFIG_H__
4 
5 #include "bstutils.hh"
6 
7 /* --- access skin config --- */
8 #define BST_SKIN_CONFIG(field) (* bst_skin_config_get_global ()) . field
9 #define BST_SKIN_CONFIG_STRDUP_PATH(field) sfi_path_get_filename (BST_SKIN_CONFIG (field).c_str(), bst_skin_config_dirname())
10 
11 /* --- prototypes --- */
12 void _bst_skin_config_init (void);
13 void bst_skin_config_apply (SfiRec *rec,
14  const gchar *skin_file);
15 GParamSpec* bst_skin_config_pspec (void);
16 Bst::SkinConfig* bst_skin_config_get_global (void);
17 typedef void (*BstSkinConfigNotify) (gpointer data);
18 void bst_skin_config_notify (void);
19 void bst_skin_config_add_notify (BstSkinConfigNotify func,
20  gpointer data);
21 
22 
23 /* --- skin file --- */
24 void bst_skin_config_set_rcfile (const gchar *file_name);
25 const gchar* bst_skin_config_rcfile (void);
26 const gchar* bst_skin_config_dirname (void);
27 Bse::Error bst_skin_dump (const gchar *file_name);
28 Bse::Error bst_skin_parse (const gchar *file_name);
29 
30 
31 #endif /* __BST_SKIN_CONFIG_H__ */