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

Freeciv-3.3

Loading...
Searching...
No Matches
themebackgrounds.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2006 - 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#ifndef FC__THEMEBACKGROUNDS_H
15#define FC__THEMEBACKGROUNDS_H
16
17/* SDL3 */
18#include <SDL3/SDL.h>
19
20/* utility */
21#include "registry.h"
22
23 enum theme_background {
24 BACKGROUND_CHANGERESEARCHDLG,
25 BACKGROUND_CHOOSEGOVERNMENTDLG,
26 BACKGROUND_CITYDLG,
27 BACKGROUND_CITYGOVDLG,
28 BACKGROUND_CITYREP,
29 BACKGROUND_CONNECTDLG,
30 BACKGROUND_CONNLISTDLG,
31 BACKGROUND_ECONOMYDLG,
32 BACKGROUND_HELPDLG,
33 BACKGROUND_JOINGAMEDLG,
34 BACKGROUND_LOADGAMEDLG,
35 BACKGROUND_MAINPAGE,
36 BACKGROUND_MESSAGEWIN,
37 BACKGROUND_NATIONDLG,
38 BACKGROUND_NEWCITYDLG,
39 BACKGROUND_OPTIONDLG,
40 BACKGROUND_REVOLUTIONDLG,
41 BACKGROUND_SCIENCEDLG,
42 BACKGROUND_SPYSTEALDLG,
43 BACKGROUND_STARTMENU,
44 BACKGROUND_UNITSREP,
45 BACKGROUND_USERPASSWDDLG,
46 BACKGROUND_WLDLG,
47
48 BACKGROUND_LAST
49};
50
51struct theme_background_system;
52struct theme;
53
54 SDL_Surface *theme_get_background(const struct theme *t, enum theme_background background);
55
56/* Functions used by the theme to allocate the background system. */
57struct theme_background_system *theme_background_system_read(struct section_file *file);
58
59void theme_background_system_free(struct theme_background_system *backgrounds);
60
61#endif /* FC__THEMEBACKGROUNDS_H */
incite_cost
char * incite_cost
Definition comments.c:74
theme_background_system_read
struct theme_background_system * theme_background_system_read(struct section_file *file)
Definition themebackgrounds.c:61
theme_background
theme_background
Definition themebackgrounds.h:27
BACKGROUND_NEWCITYDLG
@ BACKGROUND_NEWCITYDLG
Definition themebackgrounds.h:42
BACKGROUND_SCIENCEDLG
@ BACKGROUND_SCIENCEDLG
Definition themebackgrounds.h:45
BACKGROUND_MAINPAGE
@ BACKGROUND_MAINPAGE
Definition themebackgrounds.h:39
BACKGROUND_CITYGOVDLG
@ BACKGROUND_CITYGOVDLG
Definition themebackgrounds.h:31
BACKGROUND_NATIONDLG
@ BACKGROUND_NATIONDLG
Definition themebackgrounds.h:41
BACKGROUND_OPTIONDLG
@ BACKGROUND_OPTIONDLG
Definition themebackgrounds.h:43
BACKGROUND_REVOLUTIONDLG
@ BACKGROUND_REVOLUTIONDLG
Definition themebackgrounds.h:44
BACKGROUND_CHANGERESEARCHDLG
@ BACKGROUND_CHANGERESEARCHDLG
Definition themebackgrounds.h:28
BACKGROUND_STARTMENU
@ BACKGROUND_STARTMENU
Definition themebackgrounds.h:47
BACKGROUND_WLDLG
@ BACKGROUND_WLDLG
Definition themebackgrounds.h:50
BACKGROUND_CONNECTDLG
@ BACKGROUND_CONNECTDLG
Definition themebackgrounds.h:33
BACKGROUND_JOINGAMEDLG
@ BACKGROUND_JOINGAMEDLG
Definition themebackgrounds.h:37
BACKGROUND_SPYSTEALDLG
@ BACKGROUND_SPYSTEALDLG
Definition themebackgrounds.h:46
BACKGROUND_MESSAGEWIN
@ BACKGROUND_MESSAGEWIN
Definition themebackgrounds.h:40
BACKGROUND_USERPASSWDDLG
@ BACKGROUND_USERPASSWDDLG
Definition themebackgrounds.h:49
BACKGROUND_LAST
@ BACKGROUND_LAST
Definition themebackgrounds.h:52
BACKGROUND_LOADGAMEDLG
@ BACKGROUND_LOADGAMEDLG
Definition themebackgrounds.h:38
BACKGROUND_UNITSREP
@ BACKGROUND_UNITSREP
Definition themebackgrounds.h:48
BACKGROUND_ECONOMYDLG
@ BACKGROUND_ECONOMYDLG
Definition themebackgrounds.h:35
BACKGROUND_CHOOSEGOVERNMENTDLG
@ BACKGROUND_CHOOSEGOVERNMENTDLG
Definition themebackgrounds.h:29
BACKGROUND_CONNLISTDLG
@ BACKGROUND_CONNLISTDLG
Definition themebackgrounds.h:34
BACKGROUND_HELPDLG
@ BACKGROUND_HELPDLG
Definition themebackgrounds.h:36
BACKGROUND_CITYDLG
@ BACKGROUND_CITYDLG
Definition themebackgrounds.h:30
BACKGROUND_CITYREP
@ BACKGROUND_CITYREP
Definition themebackgrounds.h:32
theme_background_system_free
void theme_background_system_free(struct theme_background_system *backgrounds)
Definition themebackgrounds.c:80
theme_get_background
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
Definition themebackgrounds.c:94
registry.h
section_file
Definition section_file.h:36
theme_background_system
Definition themebackgrounds.c:28
theme_background_system::backgrounds
char * backgrounds[BACKGROUND_LAST]
Definition themebackgrounds.c:29
theme
Definition themespec.c:133