5c16e9df442a6a66c91f8cbf52f7543cb9cb4517 braney Mon Dec 6 16:34:22 2021 -0800 add new function to the graphics library to put text in a box that is used by the logo function of wiggle draws diff --git src/lib/vGfxPrivate.h src/lib/vGfxPrivate.h index e519b41..5b73ce3 100644 --- src/lib/vGfxPrivate.h +++ src/lib/vGfxPrivate.h @@ -15,30 +15,32 @@ /* A bunch of things to make the type-casting easier. * This is a price you pay for object oriented * polymorphism in C... */ typedef void (*vg_close)(void **pV); typedef void (*vg_dot)(void *v, int x, int y, int colorIx); typedef int (*vg_getDot)(void *v, int x, int y); typedef void (*vg_box)(void *v, int x, int y, int width, int height, int colorIx); typedef void (*vg_line)(void *v, int x1, int y1, int x2, int y2, int colorIx); typedef void (*vg_text)(void *v, int x, int y, int colorIx, void *font, char *text); typedef void (*vg_textRight)(void *v, int x, int y, int width, int height, int colorIx, void *font, char *text); +typedef void (*vg_textInBox)(void *v, int x, int y, int width, int height, + int colorIx, void *font, char *text); typedef void (*vg_textCentered)(void *v, int x, int y, int width, int height, int colorIx, void *font, char *text); typedef int (*vg_findColorIx)(void *v, int r, int g, int b); typedef struct rgbColor (*vg_colorIxToRgb)(void *v, int colorIx); typedef void (*vg_setClip)(void *v, int x, int y, int width, int height); typedef void (*vg_setWriteMode)(void *v, unsigned int writeMode); typedef void (*vg_unclip)(void *v); typedef void (*vg_verticalSmear)(void *v, int xOff, int yOff, int width, int height, Color *dots, boolean zeroClear); typedef void (*vg_fillUnder)(void *v, int x1, int y1, int x2, int y2, int bottom, Color color); typedef void (*vg_circle)(void *v, int xCen, int yCen, int rad, Color color, boolean filled); typedef void (*vg_drawPoly)(void *v, struct gfxPoly *poly, Color color, boolean filled); typedef void (*vg_ellipse)(void *v, int x1, int y1, int x2, int y2, Color color,