tickit_rectset_rects, tickit_rectset_get_rects - obtain the regions from a rectangle set
Contents
Description
tickit_rectset_rects() returns the number of rectangular regions stored by the rectangle set.
tickit_rectset_get_rect() copies the region representing the rectangle at index i into the variable
pointed to by rect, and returns 1. If i is an invalid index for this set then 0 is returned instead.
tickit_rectset_get_rects() copies at most n regions into the array given by rects, and returns the number
of regions it copied (which may be fewer than the total stored, if the array was of insufficient size).
Name
tickit_rectset_rects, tickit_rectset_get_rects - obtain the regions from a rectangle set
Return Value
tickit_rectset_rects() returns an integer giving the number of stored regions. tickit_rectset_get_rect()
and tickit_rectset_get_rects() return the number of regions copied.
See Also
tickit_rectset_new(3), tickit_rectset(7), tickit(7) TICKIT_RECTSET_RECTS(3)
Synopsis
#include<tickit.h>size_ttickit_rectset_rects(constTickitRectSet*trs);size_ttickit_rectset_get_rect(constTickitRectSet*trs,size_ti,TickitRect*rect);size_ttickit_rectset_get_rects(constTickitRectSet*trs,TickitRectrects[],size_tn);
Link with -ltickit.
