X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=render%2Frender.h;h=68fec4681ab1c9a06f437894d9844b1354432dea;hb=a18c1697b1176c26e74267f2ac7a153a2cf2c442;hp=ff11c65cde1bb55fa7a441afec2059a3c9ee620f;hpb=5cf61ee02354c1c9f80c11f3796afc4b948055d6;p=chaz%2Fopenbox diff --git a/render/render.h b/render/render.h index ff11c65c..68fec468 100644 --- a/render/render.h +++ b/render/render.h @@ -79,6 +79,7 @@ typedef struct Surface { typedef struct { XftFont *xftfont; int height; + int elipses_length; } ObFont; typedef enum { @@ -109,13 +110,13 @@ typedef struct TextureMask { } TextureMask; typedef struct TextureRGBA { - int width; - int height; - unsigned long *data; + guint width; + guint height; + pixel32 *data; /* cached scaled so we don't have to scale often */ - int cwidth; - int cheight; - unsigned long *cache; + guint cwidth; + guint cheight; + pixel32 *cache; } TextureRGBA; typedef union { @@ -156,6 +157,9 @@ void truecolor_startup(void); void pseudocolor_startup(void); void pixel32_to_pixmap(pixel32 *in, Pixmap out, int x, int y, int w, int h); -void appearance_minsize(Appearance *l, Size *s); +void appearance_minsize(Appearance *l, int *w, int *h); + +gboolean render_pixmap_to_rgba(Pixmap pmap, Pixmap mask, + int *w, int *h, pixel32 **data); #endif /*__render_h*/