lib/vGfxPrivate.h

Go to the documentation of this file.
00001 /* vGfx private - stuff that the implementers of 
00002  * a vGfx need to know about, but not the clients. */
00003 
00004 
00005 struct vGfx *vgHalfInit(int width, int height);
00006 /* Return a partially initialized vGfx structure. 
00007  * Generally not called by clients.*/
00008 
00009 void vgMgMethods(struct vGfx *vg);
00010 /* Fill in virtual graphics methods for memory based drawing. */
00011 
00012 /* A bunch of things to make the type-casting easier.
00013  * This is a price you pay for object oriented
00014  * polymorphism in C... */
00015 
00016 typedef void (*vg_close)(void **pV);
00017 typedef void (*vg_dot)(void *v, int x, int y, int colorIx);
00018 typedef int (*vg_getDot)(void *v, int x, int y);
00019 typedef void (*vg_box)(void *v, int x, int y, 
00020         int width, int height, int colorIx);
00021 typedef void (*vg_line)(void *v, 
00022         int x1, int y1, int x2, int y2, int colorIx);
00023 typedef void (*vg_text)(void *v, int x, int y, int colorIx, void *font,
00024         char *text);
00025 typedef void (*vg_textRight)(void *v, int x, int y, int width, int height,
00026         int colorIx, void *font, char *text);
00027 typedef void (*vg_textCentered)(void *v, int x, int y, int width, int height,
00028         int colorIx, void *font, char *text);
00029 typedef int (*vg_findColorIx)(void *v, int r, int g, int b);
00030 typedef struct rgbColor (*vg_colorIxToRgb)(void *v, int colorIx);
00031 typedef void (*vg_setClip)(void *v, int x, int y, int width, int height);
00032 typedef void (*vg_unclip)(void *v);
00033 typedef void (*vg_verticalSmear)(void *v,
00034             int xOff, int yOff, int width, int height, 
00035             unsigned char *dots, boolean zeroClear);
00036 typedef void (*vg_fillUnder)(void *v, int x1, int y1, 
00037         int x2, int y2, int bottom, Color color);
00038 typedef void (*vg_drawPoly)(void *v, struct gfxPoly *poly, Color color, boolean filled);
00039 typedef void (*vg_setHint)(void *v, char *hint, char *value);
00040 typedef char * (*vg_getHint)(void *v, char *hint);
00041 

Generated on Tue Dec 25 18:39:32 2007 for blat by  doxygen 1.5.2