1TICKIT_RECT(7)         Miscellaneous Information Manual         TICKIT_RECT(7)
2
3
4

NAME

6       TickitRect - utility structure representing a rectangular region
7

SYNOPSIS

9       #include <tickit.h>
10
11       typedef struct {
12         int top;
13         int left;
14         int lines;
15         int cols;
16       } TickitRect;
17
18

DESCRIPTION

20       A TickitRect structure represents a single non-empty rectangular region
21       of the screen. It stores the position of the top  left  corner  of  the
22       region, and its size in lines and columns.
23

FUNCTIONS

25       A   new   TickitRect   structure   can   be   initialised   using   the
26       tickit_rect_init_sized(3)  and  tickit_rect_init_bounded(3)  functions.
27       Its bottom right corner can be obtained using tickit_rect_bottom(3) and
28       tickit_rect_right(3). Interactions between  rectangles  can  be  tested
29       using    the    predicate    functions    tickit_rect_contains(3)   and
30       tickit_rect_intersects(3). New rectangles can be created from  existing
31       ones   using   tickit_rect_intersect(3)   to   form  the  intersection,
32       tickit_rect_add(3) to form the union sum, and tickit_rect_subtract(3).
33
34
35
36                                                                TICKIT_RECT(7)
Impressum