Data Structures | |
struct | stg_polygon_t |
Functions | |
stg_polygon_t * | stg_polygons_create (int count) |
void | stg_polygons_destroy (stg_polygon_t *p, size_t count) |
stg_polygon_t * | stg_polygon_create (void) |
stg_polygon_t * | stg_unit_polygon_create (void) |
void | stg_polygon_destroy (stg_polygon_t *p) |
void | stg_polygon_set_points (stg_polygon_t *poly, stg_point_t *pts, size_t count) |
void | stg_polygon_append_points (stg_polygon_t *poly, stg_point_t *pts, size_t count) |
stg_polygon_t * | stg_rects_to_polygons (stg_rotrect_t *rects, size_t count) |
void | stg_normalize_polygons (stg_polygon_t *polys, int num, double width, double height) |
void | stg_polygon_print (stg_polygon_t *poly) |
void | stg_polygons_print (stg_polygon_t *polys, unsigned int count) |
|
return an array of [count] polygons. Caller must free() the space.
|
|
destroy an array of [count] polygons
|
|
return a single polygon structure. Caller must free() the space.
|
|
creates a unit square polygon |
|
destroy a single polygon load [filename], an image format understood by gdk-pixbuf, and return a set of rectangles that approximate the image. Caller must free the array of rectangles. If width and height are non-null, they are filled in with the size of the image in pixels |
|
Copies [count] points from [pts] into polygon [poly], allocating memory if mecessary. Any previous points in [poly] are overwritten. |
|
Appends [count] points from [pts] into polygon [poly], allocating memory if mecessary. |
|
|
|
scale the array of [num] polygons so that all its points fit exactly in a rectagle of pwidth] by [height] units |
|
print a human-readable description of a polygon on stdout
|
|
print a human-readable description of an array of polygons on stdout
|