logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tickit_window_get_geometry - query the size and position of a window

Description

tickit_window_get_geometry()  returns  the  size  and  position  within its immediate parent of the given
       window. When invoked on a root window, its top left corner will be at zero, and its size  will  give  the
       size of the underlying terminal.

       The four convenience accessors return the four fields of the rectangle structure immediately. They may be
       implemented as macros.

       tickit_window_bottom()  gives  the  line number in the parent where the window stops (i.e. the first line
       after its content). tickit_window_right() gives the column number in the parent where the window stops.

Name

       tickit_window_get_geometry - query the size and position of a window

Return Value

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

See Also

tickit_window_new(3), tickit_window_get_abs_geometry(3), tickit_window_set_geometry(3), tickit_window(7),
       tickit_rect(7), tickit(7)

                                                                                   TICKIT_WINDOW_GET_GEOMETRY(3)

Synopsis

#include<tickit.h>TickitRecttickit_window_get_geometry(constTickitWindow*win);inttickit_window_top(constTickitWindow*win);inttickit_window_left(constTickitWindow*win);inttickit_window_lines(constTickitWindow*win);inttickit_window_cols(constTickitWindow*win);inttickit_window_bottom(constTickitWindow*win);inttickit_window_right(constTickitWindow*win);

       Link with -ltickit.

See Also