summaryrefslogtreecommitdiff
path: root/src/theme.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-01-28 07:30:44 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-01-28 07:30:44 +0000
commitf374f946444c21c997cfd8c0a11d21927ac2d412 (patch)
treea3c4550ffd1f39ed1e982773bbdc38df42e782fe /src/theme.h
parent838d999d86e6b5d4aab753b40c44b4b2340f4f42 (diff)
downloadmetacity-f374f946444c21c997cfd8c0a11d21927ac2d412.tar.gz
metacity-f374f946444c21c997cfd8c0a11d21927ac2d412.tar.bz2
fix shadowed variable (stupid -Wall should have that)
2002-01-28 Havoc Pennington <hp@pobox.com> * src/theme.c (meta_texture_spec_render): fix shadowed variable (stupid -Wall should have that) * src/theme-viewer.c (main): implement a simple viewer for frame styles * src/theme.c (meta_frame_style_get_test): create partial frame style to test drawing
Diffstat (limited to 'src/theme.h')
-rw-r--r--src/theme.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/src/theme.h b/src/theme.h
index 6b87c81..9379ba9 100644
--- a/src/theme.h
+++ b/src/theme.h
@@ -115,6 +115,18 @@ typedef enum
META_COLOR_SPEC_BLEND
} MetaColorSpecType;
+typedef enum
+{
+ META_GTK_COLOR_FG,
+ META_GTK_COLOR_BG,
+ META_GTK_COLOR_LIGHT,
+ META_GTK_COLOR_DARK,
+ META_GTK_COLOR_MID,
+ META_GTK_COLOR_TEXT,
+ META_GTK_COLOR_BASE,
+ META_GTK_COLOR_TEXT_AA
+} MetaGtkColorComponent;
+
struct _MetaColorSpec
{
MetaColorSpecType type;
@@ -124,7 +136,7 @@ struct _MetaColorSpec
GdkColor color;
} basic;
struct {
- GtkRcFlags component;
+ MetaGtkColorComponent component;
GtkStateType state;
} gtk;
struct {
@@ -481,11 +493,16 @@ gboolean meta_parse_size_expression (const char *expr,
GError **err);
-MetaColorSpec* meta_color_spec_new (MetaColorSpecType type);
-void meta_color_spec_free (MetaColorSpec *spec);
-void meta_color_spec_render (MetaColorSpec *spec,
- GtkWidget *widget,
- GdkColor *color);
+MetaColorSpec* meta_color_spec_new (MetaColorSpecType type);
+MetaColorSpec* meta_color_spec_new_from_string (const char *str,
+ GError **err);
+MetaColorSpec* meta_color_spec_new_gtk (MetaGtkColorComponent component,
+ GtkStateType state);
+void meta_color_spec_free (MetaColorSpec *spec);
+void meta_color_spec_render (MetaColorSpec *spec,
+ GtkWidget *widget,
+ GdkColor *color);
+
MetaShapeSpec* meta_shape_spec_new (MetaShapeType type);
void meta_shape_spec_free (MetaShapeSpec *spec);
@@ -539,6 +556,8 @@ void meta_frame_style_unref (MetaFrameStyle *style);
void meta_frame_style_draw (MetaFrameStyle *style,
GtkWidget *widget,
GdkDrawable *drawable,
+ int x_offset,
+ int y_offset,
const GdkRectangle *clip,
MetaFrameFlags flags,
int client_width,
@@ -554,4 +573,6 @@ void meta_frame_style_set_unref (MetaFrameStyleSet *style_set);
MetaTheme* meta_theme_new (void);
void meta_theme_free (MetaTheme *theme);
+MetaFrameStyle* meta_frame_style_get_test (void);
+
#endif