paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Functions
gui_theme.c File Reference

Theme definitions. More...

#include "para.h"
#include "gui.h"
#include <curses.h>

Macros

#define NUM_THEMES   (ARRAY_SIZE(themes))
 Number of elements in the themes array. More...
 

Functions

void theme_init (const char *name, struct gui_theme *t)
 Initialize a theme. More...
 
void theme_prev (struct gui_theme *t)
 Activate the previous available theme. More...
 
void theme_next (struct gui_theme *t)
 Activate the next available theme. More...
 

Detailed Description

Theme definitions.

Macro Definition Documentation

◆ NUM_THEMES

#define NUM_THEMES   (ARRAY_SIZE(themes))

Number of elements in the themes array.

Function Documentation

◆ theme_init()

void theme_init ( const char *  name,
struct gui_theme t 
)

Initialize a theme.

Parameters
nameName of the theme to be initialized.
tThe function fills out this structure.

This function exits if there is no theme called name.

◆ theme_prev()

void theme_prev ( struct gui_theme t)

Activate the previous available theme.

Parameters
tTheme definition is stored here.

This picks the theme that comes before the currently active one, or the last available theme, if the current one is the first.

See also
theme_next().

◆ theme_next()

void theme_next ( struct gui_theme t)

Activate the next available theme.

Parameters
tTheme definition is stored here.

This works exactly as theme_prev() but cycles forwards through the list of available themes.