1TICKIT_WINDOW_SET_GEOMETRY(3L)ibrary Functions ManuaTlICKIT_WINDOW_SET_GEOMETRY(3)
2
3
4
6 tickit_window_set_geometry - set the size and position of a window
7
9 #include <tickit.h>
10
11 void tickit_window_set_geometry(TickitWindow *win, TickitRect geom);
12
13 void tickit_window_resize(TickitWindow *win, int lines, int cols);
14 void tickit_window_reposition(TickitWindow * win, int top, int left);
15
16 Link with -ltickit.
17
19 tickit_window_set_geometry() sets the size and position of the given
20 window to the details given in the rectangle structure. The position is
21 relative to the window's immediate parent. The window does not have to
22 be entirely contained within the parent; it is allowed to overlap any
23 of the four edges, or even sit entirely outside of the parent. Content
24 rendering and input events will be clipped to the bounds of its parent
25 (and thus any ancestors up to the root) in any case.
26
27 This function causes a TICKIT_EV_GEOMCHANGE event to occur at the next
28 tick, if the geometry was actually changed. If none of the four fields
29 are modified then no event occurs; thus it is safe to call it opti‐
30 mistically to update the required size in case it has changed.
31
32 tickit_window_resize() and tickit_window_reposition() are shortcut
33 functions that take two integer arguments directly for changing just
34 the size, or just the origin position of the window.
35
37 These functions return no value.
38
40 tickit_window_new(3), tickit_window_get_geometry(3), tickit_win‐
41 dow_bind_event(3), tickit_window(7), tickit(7)
42
43
44
45 TICKIT_WINDOW_SET_GEOMETRY(3)