X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Frender.h;h=f8f0db8681c99745e19d4207ad1f1a4fd01ba054;hb=9dc2a9171cb4d7c9ff62342808686b1c96735194;hp=01795e7e4121c4899d8217ef486ffd12f67d10b3;hpb=4672adbfa0384fdb8c102271dad64ad0bf3fb8da;p=chaz%2Fopenbox diff --git a/render/render.h b/render/render.h index 01795e7e..f8f0db86 100644 --- a/render/render.h +++ b/render/render.h @@ -101,17 +101,30 @@ typedef struct { XftFont *xftfont; } ObFont; +typedef enum { + Justify_Center, + Justify_Left, + Justify_Right +} Justify; + typedef struct TextureText { ObFont *font; - int shadow; + Justify justify; + int shadow; unsigned char tint; unsigned char offset; color_rgb *color; char *string; } TextureText; +typedef struct { + Pixmap mask; + guint w, h; +} pixmap_mask; + typedef struct TextureMask { color_rgb *color; + pixmap_mask *mask; } TextureMask; typedef struct TextureRGBA {