![]() |
![]() |
![]() |
Goffice Reference Manual | ![]() |
---|---|---|---|---|
#define GOG_THEME_TYPE #define GOG_THEME (o) #define IS_GOG_THEME (o) GType gog_theme_get_type (void); GogTheme* gog_theme_new (char const *name); GogTheme* gog_theme_new_from_file (char const *name, char const *file); charconst * gog_theme_get_name (GogTheme const *theme); void gog_theme_fillin_style (GogTheme const *theme, GogStyle *style, GogObject const *obj, int ind, gboolean complete_overwrite); void gog_theme_registry_add (GogTheme *theme, gboolean is_default); GogTheme* gog_theme_registry_lookup (char const *name); GSList* gog_theme_registry_get_theme_names (void); void gog_themes_init (void); void gog_themes_shutdown (void);
GogTheme* gog_theme_new_from_file (char const *name, char const *file);
name : |
|
file : |
|
Returns : |
void gog_theme_fillin_style (GogTheme const *theme, GogStyle *style, GogObject const *obj, int ind, gboolean complete_overwrite);
Fill in the auto aspects of style
based on theme
's element for objects of
type/role similar to obj
with index ind
. If complete_overwrite
is used,
fillin the entire style, not just the auto portions.
void gog_theme_registry_add (GogTheme *theme, gboolean is_default);
Keep a pointer to theme
in graph theme registry.
This function does not add a reference to theme
.
theme : |
a GogTheme |
is_default : |
GogTheme* gog_theme_registry_lookup (char const *name);
Retrieves a GogTheme from theme registry.
name : |
a theme name |
Returns : |
GSList* gog_theme_registry_get_theme_names (void);
Returns : | a newly allocated theme name list from theme registry. |