diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-20 02:17:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-20 02:17:23 +0000 |
| commit | cd12a2eae5b5b72df08d588ac71d1f6cf6725dfb (patch) | |
| tree | 56413723ec877b3da05e2ece758b45b98d5b589c /render/render.h | |
| parent | 349d0167dbee10ccb1c6200709286a5134ac7121 (diff) | |
simply the render interface by not requiring the setting of all the areas. only take a w and h in paint(). best font layout ever.
Diffstat (limited to 'render/render.h')
| -rw-r--r-- | render/render.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/render/render.h b/render/render.h index 1b1cce1d..31e62ee7 100644 --- a/render/render.h +++ b/render/render.h @@ -59,7 +59,6 @@ typedef struct Surface { typedef struct { XftFont *xftfont; - int height; int elipses_length; } ObFont; @@ -107,18 +106,19 @@ typedef union { } TextureData; typedef struct Texture { - Rect position; TextureType type; TextureData data; } Texture; typedef struct Appearance { Surface surface; - Rect area; int textures; Texture *texture; Pixmap pixmap; XftDraw *xftdraw; + + /* cached for internal use */ + int w, h; } Appearance; extern Visual *render_visual; @@ -126,12 +126,9 @@ extern XVisualInfo render_visual_info; extern int render_depth; extern Colormap render_colormap; -void (*paint)(Window win, Appearance *l); - void render_startup(void); void init_appearance(Appearance *l); -void x_paint(Window win, Appearance *l); -void gl_paint(Window win, Appearance *l); +void paint(Window win, Appearance *l, int w, int h); void render_shutdown(void); Appearance *appearance_new(int numtex); Appearance *appearance_copy(Appearance *a); |
