paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Structures | Macros | Functions
gui.h File Reference

symbols used by gui and gui_theme More...

Data Structures

struct  gui_color_spec
 The foreground and background color of each status item, the decorations and all messages can be customized through an instance of this structure. More...
 
struct  stat_item_data
 How to display one status item. More...
 
struct  gui_theme
 Theme definition. More...
 

Macros

#define LEFT   1
 Status item text should be left-aligned. More...
 
#define RIGHT   2
 Status item text should be right-aligned. More...
 
#define CENTER   3
 Status item text should be displayed centered. 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

symbols used by gui and gui_theme

Macro Definition Documentation

◆ LEFT

#define LEFT   1

Status item text should be left-aligned.

◆ RIGHT

#define RIGHT   2

Status item text should be right-aligned.

◆ CENTER

#define CENTER   3

Status item text should be displayed centered.

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.