Freeciv-3.3: /fast/freeciv/nightly/main/client/gui-sdl3/themespec.h Source File

Freeciv-3.3

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-sdl3 */
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
47struct sprite *theme_lookup_sprite_tag_alt(struct theme *t,
48 enum log_level level,
49 const char *tag, const char *alt,
50 const char *what,
51 const char *name);
52
53struct theme_color_system;
54struct theme_color_system *theme_get_color_system(const struct theme *t);
55
56struct theme_background_system;
57struct theme_background_system *theme_get_background_system(const struct theme *t);
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 */
incite_cost
char * incite_cost
Definition comments.c:74
theme_free
void theme_free(struct theme *ftheme)
Definition themespec.c:317
theme_get_color_system
struct theme_color_system * theme_get_color_system(const struct theme *t)
Definition themespec.c:1122
theme_font_filename
const char * theme_font_filename(const struct theme *t)
Definition themespec.c:169
themespec_gfx_filename
char * themespec_gfx_filename(const char *gfx_filename)
Definition themespec.c:690
theme_free_sprites
void theme_free_sprites(struct theme *t)
Definition themespec.c:1065
theme_load_sprites
void theme_load_sprites(struct theme *t)
Definition themespec.c:990
get_theme_list
const char ** get_theme_list(void)
Definition themespec.c:200
theme_get_background_system
struct theme_background_system * theme_get_background_system(const struct theme *t)
Definition themespec.c:1114
themespec_try_read
void themespec_try_read(const char *theme_name)
Definition themespec.c:334
themespec_reread
void themespec_reread(const char *theme_name)
Definition themespec.c:376
theme_lookup_sprite_tag_alt
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
theme_get_name
const char * theme_get_name(const struct theme *t)
Definition themespec.c:160
theme_read_toplevel
struct theme * theme_read_toplevel(const char *theme_name)
Definition themespec.c:721
theme_default_font_size
int theme_default_font_size(const struct theme *t)
Definition themespec.c:177
active_theme
struct theme * active_theme
Definition themespec.c:154
themebackgrounds.h
themecolors.h
name
const char * name
Definition inputfile.c:127
log.h
log_level
log_level
Definition log.h:28
options.h
level
struct setting_list * level[OLEVELS_NUM]
Definition settings.c:190
sprite
Definition sprite.h:22
theme_background_system
Definition themebackgrounds.c:28
theme_color_system
Definition themecolors.c:35
theme
Definition themespec.c:133