1TICKIT_WINDOW_GET_GEOMETRY(3L)ibrary Functions ManuaTlICKIT_WINDOW_GET_GEOMETRY(3)
2
3
4

NAME

6       tickit_window_get_geometry - query the size and position of a window
7

SYNOPSIS

9       #include <tickit.h>
10
11       TickitRect tickit_window_get_geometry(const TickitWindow *win);
12
13       int tickit_window_top(const TickitWindow *win);
14       int tickit_window_left(const TickitWindow *win);
15       int tickit_window_lines(const TickitWindow *win);
16       int tickit_window_cols(const TickitWindow *win);
17
18       int tickit_window_bottom(const TickitWindow *win);
19       int tickit_window_right(const TickitWindow *win);
20
21       Link with -ltickit.
22

DESCRIPTION

24       tickit_window_get_geometry()  returns  the size and position within its
25       immediate parent of the given window. When invoked on  a  root  window,
26       its top left corner will be at zero, and its size will give the size of
27       the underlying terminal.
28
29       The four convenience accessors return the four fields of the  rectangle
30       structure immediately. They may be implemented as macros.
31
32       tickit_window_bottom()  gives  the  line number in the parent where the
33       window stops (i.e. the  first  line  after  its  content).  tickit_win‐
34       dow_right()  gives  the  column  number  in the parent where the window
35       stops.
36

RETURN VALUE

38       tickit_window_get_geometry() returns a TickitRect structure. The  other
39       functions return integers.
40

SEE ALSO

42       tickit_window_new(3),   tickit_window_get_abs_geometry(3),  tickit_win‐
43       dow_set_geometry(3), tickit_window(7), tickit_rect(7), tickit(7)
44
45
46
47                                                 TICKIT_WINDOW_GET_GEOMETRY(3)
Impressum