summaryrefslogtreecommitdiff
path: root/src/theme.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-01-27 07:32:46 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-01-27 07:32:46 +0000
commit5b4e9c01cc612395e56b608ad5923c5c84523f5a (patch)
tree5b464fd66ee44ec30e97d7eea4ebff1ccc058018 /src/theme.h
parent7eac9e495817ae1bf97e8a9eb7cc0fe4aedc0860 (diff)
downloadmetacity-5b4e9c01cc612395e56b608ad5923c5c84523f5a.tar.gz
metacity-5b4e9c01cc612395e56b608ad5923c5c84523f5a.tar.bz2
implement all kinds of crazy compositing-one-texture-onto-another BS.
2002-01-27 Havoc Pennington <hp@pobox.com> * src/theme.h, src/theme.c: implement all kinds of crazy compositing-one-texture-onto-another BS.
Diffstat (limited to 'src/theme.h')
-rw-r--r--src/theme.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/theme.h b/src/theme.h
index 099b28a..176c75a 100644
--- a/src/theme.h
+++ b/src/theme.h
@@ -130,7 +130,8 @@ typedef enum
{
META_TEXTURE_SOLID,
META_TEXTURE_GRADIENT,
- META_TEXTURE_IMAGE
+ META_TEXTURE_IMAGE,
+ META_TEXTURE_COMPOSITE
} MetaTextureType;
typedef enum
@@ -156,6 +157,11 @@ struct _MetaTextureSpec
struct {
GdkPixbuf *pixbuf;
} image;
+ struct {
+ MetaTextureSpec *background;
+ MetaTextureSpec *foreground;
+ double alpha;
+ } composite;
} data;
};
@@ -334,6 +340,11 @@ void meta_texture_spec_draw (const MetaTextureSpec *desc,
GdkDrawable *drawable,
const GdkRectangle *clip,
MetaTextureDrawMode mode,
+ /* How to align a texture
+ * smaller than the given area
+ */
+ double xalign,
+ double yalign,
/* logical region being drawn,
* scale to this area if in SCALED
* mode