Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-sdl2/colors.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
colors.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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 colors.h - description
16 -------------------
17 begin : Mon Jul 15 2002
18 copyright : (C) 2002 by Rafał Bursig
19 email : Rafał Bursig <bursig@poczta.fm>
20***********************************************************************/
21
22#ifndef FC__COLORS_H
23#define FC__COLORS_H
24
25/* SDL2 */
26#ifdef SDL2_PLAIN_INCLUDE
27#include <SDL.h>
28#else /* SDL2_PLAIN_INCLUDE */
29#include <SDL2/SDL.h>
30#endif /* SDL2_PLAIN_INCLUDE */
31
32/* gui-sdl2 */
33#include "themecolors.h"
34
35#include "colors_g.h"
36
37struct color {
38 SDL_Color *color;
39};
40
41struct color *color_alloc_rgba(int r, int g, int b, int a);
42 SDL_Color *get_theme_color(enum theme_color themecolor);
43 SDL_Color *get_game_color(enum color_std stdcolor);
44
45#endif /* FC__COLORS_H */
colors_g.h
incite_cost
char * incite_cost
Definition comments.c:74
color_alloc_rgba
struct color * color_alloc_rgba(int r, int g, int b, int a)
Definition colors.c:64
get_theme_color
SDL_Color * get_theme_color(enum theme_color themecolor)
Definition colors.c:47
get_game_color
SDL_Color * get_game_color(enum color_std stdcolor)
Definition colors.c:55
theme_color
theme_color
Definition themecolors.h:22
themecolors.h
color
Definition colors.h:21
color::g
int g
Definition colors.h:21
color::r
int r
Definition colors.h:21
color::color
SDL_Color * color
Definition colors.h:38
color::b
int b
Definition colors.h:21