Freeciv-3.2
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
themecolors.c File Reference
#include "mem.h"
#include "colors.h"
#include "themespec.h"
#include "themecolors.h"

Go to the source code of this file.

Data Structures

struct  rgbacolor
 
struct  theme_color_system
 

Functions

struct theme_color_systemtheme_color_system_read (struct section_file *file)
 
void theme_color_system_free (struct theme_color_system *colors)
 
static struct colorensure_color_rgba (struct rgbacolor *rgba)
 
struct colortheme_get_color (const struct theme *t, enum theme_color color)
 

Variables

static charcolor_names []
 

Function Documentation

◆ ensure_color_rgba()

static struct color * ensure_color_rgba ( struct rgbacolor rgba)
static

Return the RGBA color, allocating it if necessary.

Definition at line 191 of file themecolors.c.

◆ theme_color_system_free()

void theme_color_system_free ( struct theme_color_system colors)

Called when the client first starts to free any allocated colors.

Definition at line 175 of file themecolors.c.

◆ theme_color_system_read()

struct theme_color_system * theme_color_system_read ( struct section_file file)

Read theme color system from a file.

Definition at line 151 of file themecolors.c.

◆ theme_get_color()

struct color * theme_get_color ( const struct theme t,
enum theme_color  color 
)

Return a pointer to the given "theme" color.

Definition at line 203 of file themecolors.c.

Variable Documentation

◆ color_names

char* color_names[]
static

Definition at line 39 of file themecolors.c.