tickit_rectset_rects - Man Page
obtain the regions from a rectangle set
Synopsis
#include <tickit.h> size_t tickit_rectset_rects(const TickitRectSet *trs); size_t tickit_rectset_get_rect(const TickitRectSet *trs, size_t i, TickitRect *rect); size_t tickit_rectset_get_rects(const TickitRectSet *trs, TickitRect rects[], size_t n);
Link with -ltickit.
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).
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
Referenced By
tickit_rectset(7), tickit_rectset_new(3).
The man pages tickit_rectset_get_rect(3) and tickit_rectset_get_rects(3) are aliases of tickit_rectset_rects(3).