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

Freeciv-3.3

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/* SDL3 */
26#include <SDL3/SDL.h>
27
28/* client */
29#include "colors_g.h"
30
31/* gui-sdl3 */
32#include "themecolors.h"
33
34struct color {
35 SDL_Color *color;
36};
37
38struct color *color_alloc_rgba(int r, int g, int b, int a);
39 SDL_Color *get_theme_color(enum theme_color themecolor);
40 SDL_Color *get_game_color(enum color_std stdcolor);
41
42#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:23
themecolors.h
color
Definition colors.h:21
color::g
int g
Definition colors.h:21
color::color
GdkRGBA color
Definition colors.h:22
color::r
int r
Definition colors.h:21
color::b
int b
Definition colors.h:21