mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 07:19:37 +03:00
e4a6e982e5
Simplify gui_window structure. Clean up various parts of the gui code. svn path=/import/netsurf/; revision=1092
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/*
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
* Licensed under the GNU General Public License,
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
|
|
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
|
|
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
|
|
*/
|
|
|
|
/** \file
|
|
* Toolbar themes (interface).
|
|
*
|
|
* A theme consists of a simple sprite file. There is one current theme, which
|
|
* is changed by ro_theme_load(). A toolbar can then be created and manipulated.
|
|
*/
|
|
|
|
#ifndef _NETSURF_RISCOS_THEME_H_
|
|
#define _NETSURF_RISCOS_THEME_H_
|
|
|
|
#include "oslib/osspriteop.h"
|
|
#include "netsurf/desktop/gui.h"
|
|
|
|
struct toolbar;
|
|
|
|
struct theme_entry {
|
|
char *name;
|
|
osspriteop_area *sprite_area;
|
|
};
|
|
|
|
extern int theme_throbs;
|
|
|
|
void ro_theme_load(char *pathname);
|
|
void ro_theme_create_browser_toolbar(struct gui_window *g);
|
|
void ro_theme_create_hotlist_toolbar(void);
|
|
int ro_theme_update_toolbar(struct toolbar *toolbar, wimp_w window);
|
|
int ro_theme_resize_toolbar(struct toolbar *toolbar, wimp_w window);
|
|
struct theme_entry *ro_theme_list(unsigned int *entries);
|
|
void ro_theme_list_free(struct theme_entry *list, unsigned int entries);
|
|
|
|
#endif
|