summaryrefslogtreecommitdiff
path: root/src/theme.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-05-31 22:03:34 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-31 22:03:34 +0000
commitc6b34083988a8b8bdeba82853d45963b068f2874 (patch)
treec3fd84c86fd906818159301107639660d3612fe0 /src/theme.h
parentd4b91dc6540e438cf4bda1dac647caa31df7856d (diff)
downloadmetacity-c6b34083988a8b8bdeba82853d45963b068f2874.tar.gz
metacity-c6b34083988a8b8bdeba82853d45963b068f2874.tar.bz2
add MetaImageFillType and implement TILE in addition to the existing SCALE
2002-05-31 Havoc Pennington <hp@redhat.com> * src/theme.c: add MetaImageFillType and implement TILE in addition to the existing SCALE * src/theme.h (struct _MetaDrawOp): remove no-longer-used "alpha" field
Diffstat (limited to 'src/theme.h')
-rw-r--r--src/theme.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/theme.h b/src/theme.h
index f93157a..d758473 100644
--- a/src/theme.h
+++ b/src/theme.h
@@ -123,6 +123,11 @@ struct _MetaFrameGeometry
guint bottom_right_corner_rounded : 1;
};
+typedef enum
+{
+ META_IMAGE_FILL_SCALE, /* default, needs to be all-bits-zero for g_new0 */
+ META_IMAGE_FILL_TILE
+} MetaImageFillType;
typedef enum
{
@@ -284,13 +289,13 @@ struct _MetaDrawOp
MetaColorSpec *colorize_spec;
MetaAlphaGradientSpec *alpha_spec;
GdkPixbuf *pixbuf;
- double alpha;
char *x;
char *y;
char *width;
char *height;
guint32 colorize_cache_pixel;
GdkPixbuf *colorize_cache_pixbuf;
+ MetaImageFillType fill_type;
} image;
struct {
@@ -326,6 +331,7 @@ struct _MetaDrawOp
char *y;
char *width;
char *height;
+ MetaImageFillType fill_type;
} icon;
struct {
@@ -800,5 +806,8 @@ GtkShadowType meta_gtk_shadow_from_string (const char *s
const char* meta_gtk_shadow_to_string (GtkShadowType shadow);
GtkArrowType meta_gtk_arrow_from_string (const char *str);
const char* meta_gtk_arrow_to_string (GtkArrowType arrow);
+MetaImageFillType meta_image_fill_type_from_string (const char *str);
+const char* meta_image_fill_type_to_string (MetaImageFillType fill_type);
+
#endif