2003-06-30 16:44:03 +04:00
|
|
|
/*
|
|
|
|
* 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>
|
2003-11-20 03:16:31 +03:00
|
|
|
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
|
2004-05-05 02:23:44 +04:00
|
|
|
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
|
2003-06-06 06:14:28 +04:00
|
|
|
*/
|
|
|
|
|
2003-11-20 03:16:31 +03:00
|
|
|
/** \file
|
|
|
|
* Toolbar themes (interface).
|
|
|
|
*
|
2004-05-05 02:23:44 +04:00
|
|
|
* 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.
|
2003-11-20 03:16:31 +03:00
|
|
|
*/
|
2002-10-15 14:47:44 +04:00
|
|
|
|
2003-11-20 03:16:31 +03:00
|
|
|
#ifndef _NETSURF_RISCOS_THEME_H_
|
|
|
|
#define _NETSURF_RISCOS_THEME_H_
|
2002-10-15 14:47:44 +04:00
|
|
|
|
2004-05-23 03:04:44 +04:00
|
|
|
#include "oslib/osspriteop.h"
|
|
|
|
#include "netsurf/desktop/gui.h"
|
|
|
|
|
2004-07-08 21:34:02 +04:00
|
|
|
struct toolbar;
|
|
|
|
|
2004-05-23 03:04:44 +04:00
|
|
|
struct theme_entry {
|
|
|
|
char *name;
|
|
|
|
osspriteop_area *sprite_area;
|
|
|
|
};
|
2002-10-15 14:47:44 +04:00
|
|
|
|
2004-05-05 02:23:44 +04:00
|
|
|
extern int theme_throbs;
|
2002-10-15 14:47:44 +04:00
|
|
|
|
2003-11-20 03:16:31 +03:00
|
|
|
void ro_theme_load(char *pathname);
|
2004-07-08 02:09:26 +04:00
|
|
|
void ro_theme_create_browser_toolbar(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);
|
2004-05-23 03:04:44 +04:00
|
|
|
struct theme_entry *ro_theme_list(unsigned int *entries);
|
|
|
|
void ro_theme_list_free(struct theme_entry *list, unsigned int entries);
|
2003-03-04 14:59:36 +03:00
|
|
|
|
2002-10-15 14:47:44 +04:00
|
|
|
#endif
|