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

Maps
[Mapper]


Typedefs

typedef enum HORIZONTAL_ALIGN HORIZONTAL_ALIGN
typedef enum VERTICAL_ALIGN VERTICAL_ALIGN

Enumerations

enum  HORIZONTAL_ALIGN { HA_LEFT, HA_CENTER, HA_RIGHT }
enum  VERTICAL_ALIGN { VA_TOP, VA_MIDDLE, VA_BOTTOM }

Functions

mpr_map_t * mpr_map_create (size_t cx, size_t cy, apr_pool_t *pool)
void mpr_map_nodes_add (mpr_map_t *map, mpr_node_t *node)
void mpr_map_render (mpr_map_t *map, const char *destiny, const char *imapurl)
void mpr_map_save (mpr_map_t *map, const char *destiny)
void mpr_image_map_save (mpr_map_t *map, const char *destiny, const char *imapurl)
mpr_node_t * mpr_node_create (const char *ip, apr_pool_t *pool)
mpr_node_t * mpr_node_create_at (const char *ip, size_t x, size_t y, apr_pool_t *pool)
void trd_render_string (gdImagePtr image, gdFontPtr font, short x1, short y1, short x2, short y2, HORIZONTAL_ALIGN h_align, VERTICAL_ALIGN v_align, short vertical, unsigned long color, const char *f,...)
void trd_render_stringv (gdImagePtr image, gdFontPtr font, short x1, short y1, short x2, short y2, HORIZONTAL_ALIGN h_align, VERTICAL_ALIGN v_align, short vertical, unsigned long color, const char *f, va_list var_args)

Typedef Documentation

typedef enum HORIZONTAL_ALIGN HORIZONTAL_ALIGN
 

Horizontal align enumeration. Things can be at the Left, Center, or Right of a specified rectangle.

typedef enum VERTICAL_ALIGN VERTICAL_ALIGN
 

Vertical align enumeration. Things can be at the Top, Middle or Bottom of a specified rectangle.


Enumeration Type Documentation

enum HORIZONTAL_ALIGN
 

Horizontal align enumeration. Things can be at the Left, Center, or Right of a specified rectangle.

enum VERTICAL_ALIGN
 

Vertical align enumeration. Things can be at the Top, Middle or Bottom of a specified rectangle.


Function Documentation

void mpr_image_map_save mpr_map_t *  map,
const char *  destiny,
const char *  imapurl
 

Saves a map to the given destination.

Parameters:
map A map object.
destiny Destination file to write the resulting map information to, either that or NULL to send to STDOUT.
imapurl URL to use when making an image map. If this is NULL then it'll generate an actual image otherwise include a string that has a s specifier for the IP of the node being clicked on.

mpr_map_t* mpr_map_create size_t  cx,
size_t  cy,
apr_pool_t *  pool
 

Creates a new map with the given dimensions.

Parameters:
cx Width in pixels of the resulting map.
cy Height in pixels of the resulting map.
pool Pool to allocate memory overhead from.
Returns:
A new map object,

void mpr_map_nodes_add mpr_map_t *  map,
mpr_node_t *  node
 

Adds a node to a map.

Parameters:
map A map object.
node A node object.

void mpr_map_render mpr_map_t *  map,
const char *  destiny,
const char *  imapurl
 

Renders a map to the given destination.

Parameters:
map A map object.
destiny Destination file to write the resulting map information to, either that or NULL to send to STDOUT.
imapurl URL to use when making an image map. If this is NULL then it'll generate an actual image otherwise include a string that has a s specifier for the IP of the node being clicked on.

void mpr_map_save mpr_map_t *  map,
const char *  destiny
 

Saves a map to the given destination.

Parameters:
map A map object.
destiny A destination file.

mpr_node_t* mpr_node_create const char *  ip,
apr_pool_t *  pool
 

Creates a new node for insertion into a map.

Parameters:
ip IP of the node to create.
pool Pool to allocate memory overhead from.
Returns:
A new node object.

mpr_node_t* mpr_node_create_at const char *  ip,
size_t  x,
size_t  y,
apr_pool_t *  pool
 

Creates a new node for insertion into a map at the given location.

Parameters:
ip IP of the node to create.
x X coordinate of the node in the map.
y Y coordinate of the node in the map.
pool Pool to allocate memory overhead from.
Returns:
A new node object.


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