i3
|
Stores a rectangle, for example the size of a window, the child window etc. More...
#include <data.h>
Data Fields | |
uint32_t | x |
uint32_t | y |
uint32_t | width |
uint32_t | height |
Stores a rectangle, for example the size of a window, the child window etc.
It needs to be packed so that the compiler will not add any padding bytes. (it is used in src/ewmh.c for example)
Note that x and y can contain signed values in some cases (for example when used for the coordinates of a window, which can be set outside of the visible area, but not when specifying the position of a workspace for the _NET_WM_WORKAREA hint). Not declaring x/y as int32_t saves us a lot of typecasts.
uint32_t Rect::height |
Definition at line 79 of file data.h.
Referenced by con_minimum_size(), con_set_layout(), create_window(), disable_randr(), DRAGGING_CB(), dump_rect(), ewmh_update_workarea(), fake_absolute_configure_notify(), fake_configure_notify(), floating_enable(), floating_maybe_reassign_ws(), floating_mod_on_tiled_client(), floating_resize_window(), get_output_containing(), handle_configure_request(), handle_normal_hints(), init_ws_for_output(), IPC_HANDLER(), json_int(), manage_window(), open_input_window(), output_change_mode(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), render_con(), render_l_output(), resize_graphical_handler(), restore_geometry(), tiling_resize(), workspace_attach_to(), workspace_get(), x_deco_recurse(), x_draw_decoration(), and x_push_node().
uint32_t Rect::width |
Definition at line 78 of file data.h.
Referenced by con_minimum_size(), con_set_layout(), create_window(), disable_randr(), DRAGGING_CB(), dump_rect(), ewmh_update_workarea(), fake_absolute_configure_notify(), fake_configure_notify(), floating_enable(), floating_maybe_reassign_ws(), floating_mod_on_tiled_client(), floating_resize_window(), get_output_containing(), handle_configure_request(), handle_normal_hints(), init_ws_for_output(), IPC_HANDLER(), json_int(), manage_window(), open_input_window(), output_change_mode(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), render_con(), render_l_output(), resize_graphical_handler(), restore_geometry(), tiling_resize(), workspace_attach_to(), workspace_get(), x_deco_recurse(), x_draw_decoration(), and x_push_node().
uint32_t Rect::x |
Definition at line 76 of file data.h.
Referenced by create_window(), disable_randr(), DRAGGING_CB(), dump_rect(), ewmh_update_workarea(), fake_absolute_configure_notify(), fake_configure_notify(), floating_enable(), floating_maybe_reassign_ws(), get_output_containing(), get_output_most(), get_screen_at(), handle_configure_request(), IPC_HANDLER(), json_int(), manage_window(), open_input_window(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), render_con(), render_l_output(), resize_graphical_handler(), restore_geometry(), tiling_resize(), tree_init(), tree_restore(), x_draw_decoration(), x_push_node(), and xcb_set_window_rect().
uint32_t Rect::y |
Definition at line 77 of file data.h.
Referenced by create_window(), disable_randr(), DRAGGING_CB(), dump_rect(), ewmh_update_workarea(), fake_absolute_configure_notify(), fake_configure_notify(), floating_enable(), floating_maybe_reassign_ws(), get_output_containing(), get_output_most(), get_screen_at(), handle_configure_request(), IPC_HANDLER(), json_int(), open_input_window(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), render_con(), render_l_output(), resize_graphical_handler(), restore_geometry(), tiling_resize(), x_draw_decoration(), and x_push_node().