X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=render%2Frender.h;h=3fbf324958df65d20cbf6ccdfba5883f7ce3dbb8;hb=993fc6226d06f25513756251283e70054082ee8a;hp=c614d871f8e16bec45f7552f125afaa2d54d3abd;hpb=88f8ebada97c4c82252badeb57b7e71a2940600b;p=chaz%2Fopenbox diff --git a/render/render.h b/render/render.h index c614d871..3fbf3249 100644 --- a/render/render.h +++ b/render/render.h @@ -6,7 +6,7 @@ #include #include #include "color.h" -#include "../kernel/geom.h" +#include "kernel/geom.h" typedef enum { Surface_Planar, @@ -79,6 +79,7 @@ typedef struct Surface { typedef struct { XftFont *xftfont; int height; + int elipses_length; } ObFont; typedef enum { @@ -109,12 +110,12 @@ typedef struct TextureMask { } TextureMask; typedef struct TextureRGBA { - int width; - int height; + guint width; + guint height; unsigned long *data; /* cached scaled so we don't have to scale often */ - int cwidth; - int cheight; + guint cwidth; + guint cheight; unsigned long *cache; } TextureRGBA; @@ -153,6 +154,12 @@ Appearance *appearance_new(SurfaceType type, int numtex); Appearance *appearance_copy(Appearance *a); void appearance_free(Appearance *a); 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, int *w, int *h); + +void render_pixmap_to_rgba(Pixmap pmap, Pixmap mask, + int *w, int *h, gulong **data); + #endif /*__render_h*/