1TICKIT_WINDOW_REF(3) Library Functions Manual TICKIT_WINDOW_REF(3)
2
3
4
6 tickit_window_ref, tickit_window_unref - adjust the refcount of a win‐
7 dow
8
10 #include <tickit.h>
11
12 TickitWindow *tickit_window_ref(TickitWindow *win);
13 void tickit_window_unref(TickitWindow *win);
14
15 Link with -ltickit.
16
18 tickit_window_ref() increments the stored refcount of the given window
19 instance by one. It returns the pointer argument itself, so it is use‐
20 ful for chaining.
21
22 tickit_window_unref() decrements the stored refcount of the given win‐
23 dow instance by one. If the refcount drops to zero, the instance is
24 destroyed. This will release any resources controlled by it and unbind
25 all the bound event handlers, causing handlers to be invoked with the
26 TICKIT_EV_DESTROY flag if appropriate.
27
29 tickit_window_ref() returns a window instance pointer. tickit_win‐
30 dow_unref() returns no value.
31
33 tickit_window_new(3), tickit_window(7), tickit(7)
34
35
36
37 TICKIT_WINDOW_REF(3)