logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tickit_rectset_rects, tickit_rectset_get_rects - obtain the regions from a rectangle set

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.

See Also