ARB
ad_colorset.h
Go to the documentation of this file.
1 // ============================================================ //
2 // //
3 // File : ad_colorset.h //
4 // Purpose : item-colors and colorsets //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) in July 2015 //
7 // http://www.arb-home.de/ //
8 // //
9 // ============================================================ //
10 
11 #ifndef AD_COLORSET_H
12 #define AD_COLORSET_H
13 
14 #ifndef ARBDB_BASE_H
15 #include "arbdb_base.h"
16 #endif
17 #ifndef ARB_STRARRAY_H
18 #include <arb_strarray.h>
19 #endif
20 
21 #define GB_COLORGROUP_ENTRY "ARB_color"
22 #define GB_COLOR_GROUPS 12
23 
24 int GBT_get_color_group(GBDATA *gb_item);
25 GB_ERROR GBT_set_color_group(GBDATA *gb_item, int color_group);
26 
27 GBDATA *GBT_colorset_root(GBDATA *gb_main, const char *itemname);
28 void GBT_get_colorset_names(ConstStrArray& colorsetNames, GBDATA *gb_colorset_root);
29 GBDATA *GBT_find_colorset(GBDATA *gb_colorset_root, const char *name);
30 GBDATA *GBT_find_or_create_colorset(GBDATA *gb_colorset_root, const char *name);
31 
32 GB_ERROR GBT_load_colorset(GBDATA *gb_colorset, ConstStrArray& colorsetDefs);
33 GB_ERROR GBT_save_colorset(GBDATA *gb_colorset, CharPtrArray& colorsetDefs);
34 
35 #else
36 #error ad_colorset.h included twice
37 #endif // AD_COLORSET_H
const char * GB_ERROR
Definition: arb_core.h:25
GB_ERROR GBT_save_colorset(GBDATA *gb_colorset, CharPtrArray &colorsetDefs)
GB_ERROR GBT_load_colorset(GBDATA *gb_colorset, ConstStrArray &colorsetDefs)
Definition: ad_colorset.cxx:94
GB_ERROR GBT_set_color_group(GBDATA *gb_item, int color_group)
Definition: ad_colorset.cxx:31
void GBT_get_colorset_names(ConstStrArray &colorsetNames, GBDATA *gb_colorset_root)
Definition: ad_colorset.cxx:62
int GBT_get_color_group(GBDATA *gb_item)
Definition: ad_colorset.cxx:16
GBDATA * GBT_colorset_root(GBDATA *gb_main, const char *itemname)
Definition: ad_colorset.cxx:52
GBDATA * gb_main
Definition: adname.cxx:32
GBDATA * GBT_find_colorset(GBDATA *gb_colorset_root, const char *name)
Definition: ad_colorset.cxx:76
GBDATA * GBT_find_or_create_colorset(GBDATA *gb_colorset_root, const char *name)
Definition: ad_colorset.cxx:85