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

/extra/work/state-dev/src/mapping/mpr_mapper.h

00001 /* ----------------------------------------------------------------------------
00002  * $Id: mpr_mapper.h,v 1.7 2004/01/26 21:25:40 jlewalle Exp $
00003  *
00004  * --------------------------------------------------------------------------*/
00005 #if !defined(_INCLUDED_MAPPER_H_HEADER__)
00006 #define _INCLUDED_MAPPER_H_HEADER__
00007 
00022 mpr_map_t *
00023 mpr_map_create(size_t cx, size_t cy, apr_pool_t *pool);
00024 
00031 void
00032 mpr_map_nodes_add(mpr_map_t *map, mpr_node_t *node);
00033 
00044 void
00045 mpr_map_render(mpr_map_t *map, const char *destiny, const char *imapurl);
00046 
00053 void
00054 mpr_map_save(mpr_map_t *map, const char *destiny);
00055 
00066 void
00067 mpr_image_map_save(mpr_map_t *map, const char *destiny,
00068                    const char *imapurl);
00069 
00077 mpr_node_t *
00078 mpr_node_create(const char *ip, apr_pool_t *pool);
00079 
00089 mpr_node_t *
00090 mpr_node_create_at(const char *ip, size_t x, size_t y, apr_pool_t *pool);
00091 
00096 typedef enum HORIZONTAL_ALIGN
00097 {
00098   HA_LEFT,
00099   HA_CENTER,
00100   HA_RIGHT
00101 } HORIZONTAL_ALIGN;
00102 
00107 typedef enum VERTICAL_ALIGN
00108 {
00109   VA_TOP,
00110   VA_MIDDLE,
00111   VA_BOTTOM
00112 } VERTICAL_ALIGN;
00113 
00118 void
00119 trd_render_string(gdImagePtr image, gdFontPtr font,
00120                   short x1, short y1, short x2, short y2,
00121                   HORIZONTAL_ALIGN h_align, VERTICAL_ALIGN v_align,
00122                   short vertical, unsigned long color,
00123                   const char *f, ...);
00124 
00129 void
00130 trd_render_stringv(gdImagePtr image, gdFontPtr font,
00131                    short x1, short y1, short x2, short y2,
00132                    HORIZONTAL_ALIGN h_align, VERTICAL_ALIGN v_align,
00133                    short vertical, unsigned long color,
00134                    const char *f, va_list var_args);
00135 
00138 #endif

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