diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-31 17:02:49 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-31 17:02:49 +0000 |
| commit | cd75b454eba706f89e82041c3f62ab08998d0397 (patch) | |
| tree | 9e10bf822cc940bf2dbe0b505ad63614cb48c079 /render/render.h | |
| parent | 6e86a42c4b468c6c58cf1acf6b288a250543db98 (diff) | |
add RrColorGC
add a LineArt texture type for drawing a line, this is used for drawing the menu separators
Diffstat (limited to 'render/render.h')
| -rw-r--r-- | render/render.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/render/render.h b/render/render.h index 3ddde716..19f0989e 100644 --- a/render/render.h +++ b/render/render.h @@ -14,6 +14,7 @@ typedef struct _RrTexture RrTexture; typedef struct _RrTextureMask RrTextureMask; typedef struct _RrTextureRGBA RrTextureRGBA; typedef struct _RrTextureText RrTextureText; +typedef struct _RrTextureLineArt RrTextureLineArt; typedef struct _RrPixmapMask RrPixmapMask; typedef struct _RrInstance RrInstance; typedef struct _RrColor RrColor; @@ -47,6 +48,7 @@ typedef enum { RR_TEXTURE_NONE, RR_TEXTURE_MASK, RR_TEXTURE_TEXT, + RR_TEXTURE_LINE_ART, RR_TEXTURE_RGBA } RrTextureType; @@ -103,10 +105,19 @@ struct _RrTextureRGBA { RrPixel32 *cache; }; +struct _RrTextureLineArt { + RrColor *color; + gint x1; + gint y1; + gint x2; + gint y2; +}; + union _RrTextureData { RrTextureRGBA rgba; RrTextureText text; RrTextureMask mask; + RrTextureLineArt lineart; }; struct _RrTexture { @@ -163,6 +174,7 @@ gint RrColorRed (const RrColor *c); gint RrColorGreen (const RrColor *c); gint RrColorBlue (const RrColor *c); gulong RrColorPixel (const RrColor *c); +GC RrColorGC (RrColor *c); RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex); RrAppearance *RrAppearanceCopy (RrAppearance *a); |
