Main Page | Modules | Data Structures | File List | Data Fields

/extra/work/state-dev/src/trends/trd_render.h

00001 /* ----------------------------------------------------------------------------
00002  * @(#) $Header: /home/systems/jlewalle/dev/jacob-cvs/projects/state/src/trends/trd_render.h,v 1.3 2003/03/07 17:55:05 jlewalle Exp $
00003  *
00004  * --------------------------------------------------------------------------*/
00005 #if !defined(_INCLUDED_RENDER_H_HEADER__)
00006 #define _INCLUDED_RENDER_H_HEADER__
00007 
00018 typedef struct trd_rectangle_t
00019 {
00020   short l;
00021   short t;
00022   short r;
00023   short b;
00024 } trd_rectangle_t;
00025 
00033 void trd_rectangle_draw(trd_rectangle_t *r, gdImagePtr image, unsigned long color);
00034 
00042 void trd_rectangle_fill(trd_rectangle_t *r, gdImagePtr image, unsigned long color);
00043 
00048 typedef enum HORIZONTAL_ALIGN
00049 {
00050   HA_LEFT,
00051   HA_CENTER,
00052   HA_RIGHT
00053 } HORIZONTAL_ALIGN;
00054 
00059 typedef enum VERTICAL_ALIGN
00060 {
00061   VA_TOP,
00062   VA_MIDDLE,
00063   VA_BOTTOM
00064 } VERTICAL_ALIGN;
00065 
00081 void
00082 trd_render_string(gdImagePtr image, gdFontPtr font, short x1, short y1,
00083                   short x2, short y2, HORIZONTAL_ALIGN h_align,
00084                   VERTICAL_ALIGN v_align, short vertical,
00085                   unsigned long color, const char *f, ...);
00086 
00103 void
00104 trd_render_stringv(gdImagePtr image, gdFontPtr font, short x1, short y1,
00105                    short x2, short y2, HORIZONTAL_ALIGN h_align,
00106                    VERTICAL_ALIGN v_align, short vertical,
00107                    unsigned long color, const char *f, va_list var_args);
00108 
00116 gdImagePtr
00117 trd_make_message_image(short width, short height, const char *f, ...);
00118 
00121 #endif

Generated on Wed Apr 28 09:38:37 2004 for State by doxygen 1.3.5