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 126 of file data.h.
Referenced by _create___i3(), _workspace_apply_default_orientation(), cmd_move_window_to_center(), cmd_resize_floating(), con_adjacent_borders(), con_border_style_rect(), con_minimum_size(), con_set_border_style(), configure_notify(), contained_by_output(), create_window(), disable_randr(), DRAGGING_CB(), dump_rect(), fake_absolute_configure_notify(), fake_outputs_init(), floating_check_size(), floating_enable(), floating_fix_coordinates(), floating_maybe_reassign_ws(), floating_mod_on_tiled_client(), floating_resize_window(), get_output_containing(), get_output_next(), handle_configure_request(), handle_normal_hints(), handle_screen_change(), IPC_HANDLER(), json_int(), manage_window(), open_input_window(), open_placeholder_window(), output_change_mode(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), rect_sub(), render_con(), render_l_output(), resize_graphical_handler(), restore_geometry(), scratchpad_fix_resolution(), scratchpad_show(), tiling_resize(), total_outputs_dimensions(), x_deco_recurse(), x_draw_decoration(), x_push_changes(), x_push_node(), and xcb_warp_pointer_rect().
uint32_t Rect::width |
Definition at line 125 of file data.h.
Referenced by _create___i3(), _workspace_apply_default_orientation(), cmd_move_window_to_center(), cmd_resize_floating(), con_adjacent_borders(), con_border_style_rect(), con_minimum_size(), configure_notify(), contained_by_output(), create_window(), disable_randr(), DRAGGING_CB(), dump_rect(), fake_absolute_configure_notify(), fake_outputs_init(), floating_check_size(), floating_enable(), floating_fix_coordinates(), floating_maybe_reassign_ws(), floating_mod_on_tiled_client(), floating_resize_window(), get_output_containing(), get_output_next(), handle_configure_request(), handle_normal_hints(), handle_screen_change(), IPC_HANDLER(), json_int(), manage_window(), open_input_window(), open_placeholder_window(), output_change_mode(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), rect_sub(), render_con(), render_l_output(), resize_graphical_handler(), restore_geometry(), scratchpad_fix_resolution(), scratchpad_show(), tiling_resize(), total_outputs_dimensions(), x_deco_recurse(), x_draw_decoration(), x_push_changes(), x_push_node(), and xcb_warp_pointer_rect().
uint32_t Rect::x |
Definition at line 123 of file data.h.
Referenced by _tree_next(), cmd_move_direction(), cmd_move_window_to_center(), cmd_move_window_to_position(), cmd_resize_floating(), con_adjacent_borders(), con_border_style_rect(), contained_by_output(), create_window(), disable_randr(), DRAGGING_CB(), dump_rect(), fake_absolute_configure_notify(), fake_outputs_init(), floating_enable(), floating_fix_coordinates(), floating_maybe_reassign_ws(), get_output_containing(), get_output_next(), get_screen_at(), handle_configure_request(), IPC_HANDLER(), json_int(), manage_window(), open_input_window(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), rect_sub(), render_con(), render_l_output(), resize_graphical_handler(), restore_geometry(), scratchpad_fix_resolution(), scratchpad_show(), tiling_resize(), tree_init(), tree_restore(), x_draw_decoration(), x_push_changes(), x_push_node(), xcb_set_window_rect(), and xcb_warp_pointer_rect().
uint32_t Rect::y |
Definition at line 124 of file data.h.
Referenced by _tree_next(), cmd_move_direction(), cmd_move_window_to_center(), cmd_move_window_to_position(), cmd_resize_floating(), con_adjacent_borders(), con_border_style_rect(), con_set_border_style(), contained_by_output(), create_window(), disable_randr(), DRAGGING_CB(), dump_rect(), fake_absolute_configure_notify(), fake_outputs_init(), floating_enable(), floating_fix_coordinates(), floating_maybe_reassign_ws(), get_output_containing(), get_output_next(), get_screen_at(), handle_configure_request(), IPC_HANDLER(), json_int(), open_input_window(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), rect_sub(), render_con(), render_l_output(), resize_graphical_handler(), restore_geometry(), scratchpad_fix_resolution(), scratchpad_show(), tiling_resize(), x_draw_decoration(), x_push_changes(), x_push_node(), and xcb_warp_pointer_rect().