summaryrefslogtreecommitdiff
path: root/utils/themes.h
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2006-10-31 16:19:21 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2006-10-31 16:19:21 +0000
commit9a2cdc2db834a05bb8c4c6c8a961b92ee09a19f3 (patch)
tree65e2e2d286975a7ca557f958a285660a0144a7f5 /utils/themes.h
parentbbfda21e1c75d87c87157dbb7d328b7c9350b726 (diff)
downloadnetsurf-9a2cdc2db834a05bb8c4c6c8a961b92ee09a19f3.tar.gz
netsurf-9a2cdc2db834a05bb8c4c6c8a961b92ee09a19f3.tar.bz2
Skeleton implementation of new themes API, complete with documentation, for discussion purposes.
svn path=/trunk/netsurf/; revision=3021
Diffstat (limited to 'utils/themes.h')
-rw-r--r--utils/themes.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/utils/themes.h b/utils/themes.h
new file mode 100644
index 000000000..8d3336f7c
--- /dev/null
+++ b/utils/themes.h
@@ -0,0 +1,32 @@
+/*
+ * 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 2006 Rob Kendrick <rjek@rjek.com>
+ */
+
+#ifndef __THEMES_H__
+#define __THEMES_H__
+
+#include "netsurf/image/bitmap.h"
+
+struct theme_descriptor;
+
+void themes_initialise(void);
+void themes_finalise(void);
+
+void themes_add_new(const unsigned char *filename);
+
+struct theme_descriptor *themes_open(const unsigned char *themename;
+void themes_close(struct theme_descriptor *theme);
+struct theme_descriptor *themes_enumerate(void **ctx);
+
+struct bitmap *theme_get_image(struct theme_descriptor *theme,
+ const unsigned char *name);
+
+void themes_set_default(const unsigned char *themename);
+
+const unsigned char *themes_get_name(struct theme_descriptor *theme);
+const unsigned char *themes_get_author(struct theme_descriptor *theme);
+
+#endif /* __THEMES_H__ */