24#include "oslib/osspriteop.h"
26#ifndef _NETSURF_RISCOS_THEME_H_
27#define _NETSURF_RISCOS_THEME_H_
100 bool *right,
bool *redraw);
theme_element
Theme elements, which belong to styles.
@ THEME_ELEMENT_FOREGROUND
@ THEME_ELEMENT_BACKGROUND
struct theme_descriptor * ro_gui_theme_get_current(void)
Returns the current theme handle, or NULL if none is set.
bool ro_gui_theme_read_file_header(struct theme_descriptor *descriptor, struct theme_file_header *file_header)
Fills in the basic details for a descriptor from a file header.
bool ro_gui_theme_open(struct theme_descriptor *descriptor, bool list)
Opens a theme ready for use.
void ro_gui_theme_initialise(void)
Initialise the theme handler.
void ro_gui_theme_finalise(void)
Finalise the theme handler.
osspriteop_area * ro_gui_theme_get_sprites(struct theme_descriptor *descriptor)
Returns a sprite area for use with the given theme.
void ro_gui_theme_close(struct theme_descriptor *descriptor, bool list)
Closes a theme after use.
theme_style
Theme styles, collecting groups of attributes for different locations.
@ THEME_STYLE_HOTLIST_TOOLBAR
@ THEME_STYLE_COOKIES_TOOLBAR
@ THEME_STYLE_GLOBAL_HISTORY_TOOLBAR
@ THEME_STYLE_BROWSER_TOOLBAR
struct theme_descriptor * ro_gui_theme_get_available(void)
Reads and caches the currently available themes.
int ro_gui_theme_get_style_element(struct theme_descriptor *descriptor, theme_style style, theme_element element)
Returns an interger element from the specified theme, or the current theme if the descriptor is NULL.
struct theme_descriptor * ro_gui_theme_find(const char *leafname)
Finds a theme from the cached values.
bool ro_gui_theme_get_throbber_data(struct theme_descriptor *descriptor, int *frames, int *width, int *height, bool *right, bool *redraw)
Returns details of the throbber as defined in a theme.
bool ro_gui_theme_apply(struct theme_descriptor *descriptor)
Applies the theme to all current windows and subsequent ones.
int hotlist_background
background colour of hotlist toolbar
int browser_background
background colour of browser toolbar
char * leafname
theme leafname
int status_background
background colour of status window
int status_foreground
colour of status window text
unsigned int decompressed_size
decompressed sprite size
bool throbber_redraw
throbber requires forcible updating
struct theme_descriptor * next
next descriptor in the list
char author[64]
theme author
struct theme_descriptor * previous
previous descriptor in the list
unsigned int compressed_size
compressed sprite size
struct theme * theme
corresponding theme (must be opened)
bool throbber_right
throbber is on the right (left otherwise)
char * filename
theme filename
int throbber_width
width of the throbber
osspriteop_area * sprite_area
sprite area for theme
int throbber_frames
frames of animation for the throbber
int throbber_height
height of the throbber
int users
number of users for the theme