Freeciv-3.2
Loading...
Searching...
No Matches
themespec.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2005 - The Freeciv Project
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14/***********************************************************************
15 Reading and using the themespec files, which describe
16 the files and contents of themes.
17***********************************************************************/
18#ifndef FC__THEMESPEC_H
19#define FC__THEMESPEC_H
20
21/* utility */
22#include "log.h" /* enum log_level */
23
24/* client */
25#include "options.h"
26
27/* gui-sdl2 */
28#include "themebackgrounds.h"
29#include "themecolors.h"
30
31struct sprite; /* opaque; gui-dep */
32
33struct theme;
34
35extern struct theme *active_theme;
36
37const char **get_theme_list(void);
38
39struct theme *theme_read_toplevel(const char *theme_name);
40void theme_free(struct theme *ftheme);
41void theme_load_sprites(struct theme *t);
42void theme_free_sprites(struct theme *t);
43
44void themespec_try_read(const char *theme_name);
45void themespec_reread(const char *theme_name);
46
48 enum log_level level,
49 const char *tag, const char *alt,
50 const char *what,
51 const char *name);
52
54struct theme_color_system *theme_get_color_system(const struct theme *t);
55
58
59char *themespec_gfx_filename(const char *gfx_filename);
60
61/* Theme accessor functions. */
62const char *theme_get_name(const struct theme *t);
63const char *theme_font_filename(const struct theme *t);
64int theme_default_font_size(const struct theme *t);
65
66#endif /* FC__THEMESPEC_H */
char * incite_cost
Definition comments.c:75
void theme_free(struct theme *ftheme)
Definition themespec.c:317
struct theme_color_system * theme_get_color_system(const struct theme *t)
Definition themespec.c:1122
const char * theme_font_filename(const struct theme *t)
Definition themespec.c:169
char * themespec_gfx_filename(const char *gfx_filename)
Definition themespec.c:690
void theme_free_sprites(struct theme *t)
Definition themespec.c:1065
void theme_load_sprites(struct theme *t)
Definition themespec.c:990
const char ** get_theme_list(void)
Definition themespec.c:200
struct theme_background_system * theme_get_background_system(const struct theme *t)
Definition themespec.c:1114
void themespec_try_read(const char *theme_name)
Definition themespec.c:334
void themespec_reread(const char *theme_name)
Definition themespec.c:376
struct sprite * theme_lookup_sprite_tag_alt(struct theme *t, enum log_level level, const char *tag, const char *alt, const char *what, const char *name)
Definition themespec.c:1000
const char * theme_get_name(const struct theme *t)
Definition themespec.c:160
struct theme * theme_read_toplevel(const char *theme_name)
Definition themespec.c:721
int theme_default_font_size(const struct theme *t)
Definition themespec.c:177
struct theme * active_theme
Definition themespec.c:154
const char * name
Definition inputfile.c:127
log_level
Definition log.h:28
struct setting_list * level[OLEVELS_NUM]
Definition settings.c:190