1TICKIT_WINDOW_GET_PEN(3)   Library Functions Manual   TICKIT_WINDOW_GET_PEN(3)
2
3
4

NAME

6       tickit_window_get_pen,  tickit_window_set_pen - manipulate the window's
7       rendering pen
8

SYNOPSIS

10       #include <tickit.h>
11
12       TickitPen *tickit_window_get_pen(const TickitWindow *win);
13       void tickit_window_set_pen(TickitWindow *win, TickitPen pen);
14
15       Link with -ltickit.
16

DESCRIPTION

18       tickit_window_get_pen() returns a pointer to  the  given  window's  pen
19       instance.  This  pen  instance  is  directly  stored by the window. The
20       application is permitted to modify this pen instance, though any  modi‐
21       fications  will  not  be  observed until the window is next exposed for
22       rendering.
23
24       tickit_window_set_pen() stores a new pointer for a  pen  instance  into
25       the given window. The window retains a reference to that pen and incre‐
26       ments the reference count on  it.  Any  previous  pen  is  unreferenced
27       first.
28
29       Because the window stores what may be one of many references to the pen
30       instance, applications that do modify the pen should  be  careful  that
31       such modifications do not adversely affect other users of the same pen.
32

RETURN VALUE

34       tickit_window_get_pen()   returns   a   pointer   to  a  pen  instance.
35       tickit_window_set_pen() returns no value.
36

SEE ALSO

38       tickit_window_new(3),    tickit_window_expose(3),     tickit_window(7),
39       tickit_pen(7), tickit(7)
40
41
42
43                                                      TICKIT_WINDOW_GET_PEN(3)
Impressum