1TICKIT_RENDERBUFFER_CLIP(3)Library Functions ManualTICKIT_RENDERBUFFER_CLIP(3)
2
3
4

NAME

6       tickit_renderbuffer_clip, tickit_renderbuffer_mask - restrict the draw‐
7       ing area of output functions
8

SYNOPSIS

10       #include <tickit.h>
11
12       void tickit_renderbuffer_clip(TickitRenderBuffer *rb, TickitRect *rect);
13       void tickit_renderbuffer_mask(TickitRenderBuffer *rb, TickitRect *mask);
14
15       Link with -ltickit.
16

DESCRIPTION

18       tickit_renderbuffer_clip() restricts the clipping rectangle to the lim‐
19       its given, within the existing limits already set. This function cannot
20       make the clipping region larger than it already was.
21
22       tickit_renderbuffer_mask() applies a rectangular mask within the  clip‐
23       ping  region, masking off extra cells that can no longer be modified by
24       the output functions. Unlike tickit_renderbuffer_clip()  these  regions
25       can  be  arbitrarily  positioned  and discontinuous; each new call adds
26       another masking region, rather than affecting the existing ones.
27
28       To undo the effects of any of these  functions,  they  should  be  used
29       within   nested  pairs  of  calls  to  tickit_renderbuffer_save(3)  and
30       tickit_renderbuffer_restore(3). Both functions only affect  the  subse‐
31       quent  drawing  operations; they do not affect existing stored content,
32       nor the behaviour of tickit_renderbuffer_flush_to_term(3).
33

RETURN VALUE

35       These functions return no value.
36

SEE ALSO

38       tickit_renderbuffer_new(3),           tickit_renderbuffer_translate(3),
39       tickit_renderbuffer(7), tickit(7)
40
41
42
43                                                   TICKIT_RENDERBUFFER_CLIP(3)
Impressum