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.
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.
Definition at line 96 of file data.h.
uint32_t Rect::height |
Definition at line 100 of file data.h.
Referenced by cached_pixmap_prepare(), client_enter_fullscreen(), client_remove_from_container(), client_warp_pointer_into(), create_window(), decorate_window(), disable_randr(), DRAGGING_CB(), ewmh_update_workarea(), fake_absolute_configure_notify(), fake_configure_notify(), floating_border_click(), floating_mod_on_tiled_client(), floating_move(), floating_resize_window(), focus_thing(), get_output_containing(), handle_button_press(), handle_configure_request(), handle_expose_event(), handle_normal_hints(), initialize_output(), IPC_HANDLER(), leave_stack_mode(), open_input_window(), output_change_mode(), parse_resize_command(), query_screens(), randr_query_outputs(), redecorate_window(), render_bars(), render_container(), render_workspace(), reparent_window(), reposition_client(), resize_client(), resize_graphical_handler(), switch_layout_mode(), toggle_floating_mode(), workspace_height(), workspace_map_clients(), and workspace_show().
uint32_t Rect::width |
Definition at line 99 of file data.h.
Referenced by button_press_stackwin(), cached_pixmap_prepare(), client_enter_fullscreen(), client_warp_pointer_into(), create_window(), decorate_window(), disable_randr(), DRAGGING_CB(), ewmh_update_workarea(), fake_absolute_configure_notify(), fake_configure_notify(), floating_border_click(), floating_mod_on_tiled_client(), floating_move(), floating_resize_window(), focus_thing(), get_output_containing(), get_unoccupied_x(), handle_button_press(), handle_configure_request(), handle_expose_event(), handle_normal_hints(), initialize_output(), IPC_HANDLER(), leave_stack_mode(), open_input_window(), output_change_mode(), parse_resize_command(), query_screens(), randr_query_outputs(), redecorate_window(), render_bars(), render_container(), render_workspace(), reparent_window(), reposition_client(), resize_client(), resize_container(), resize_graphical_handler(), toggle_floating_mode(), workspace_show(), and workspace_width().
uint32_t Rect::x |
Definition at line 97 of file data.h.
Referenced by client_enter_fullscreen(), create_window(), disable_randr(), DRAGGING_CB(), ewmh_update_workarea(), fake_absolute_configure_notify(), fake_configure_notify(), floating_move(), focus_thing(), get_output_containing(), get_output_most(), get_screen_at(), handle_button_press(), handle_configure_request(), initialize_output(), IPC_HANDLER(), move_floating_window_to_workspace(), open_input_window(), output_change_mode(), parse_resize_command(), query_screens(), randr_query_outputs(), render_bars(), render_container(), render_workspace(), reparent_window(), reposition_client(), resize_client(), resize_graphical_handler(), restore_geometry(), toggle_floating_mode(), workspace_show(), and xcb_set_window_rect().
uint32_t Rect::y |
Definition at line 98 of file data.h.
Referenced by client_enter_fullscreen(), create_window(), disable_randr(), DRAGGING_CB(), ewmh_update_workarea(), fake_absolute_configure_notify(), fake_configure_notify(), floating_move(), focus_thing(), get_output_containing(), get_output_most(), get_screen_at(), handle_button_press(), handle_configure_request(), initialize_output(), IPC_HANDLER(), move_floating_window_to_workspace(), open_input_window(), output_change_mode(), parse_resize_command(), query_screens(), randr_query_outputs(), render_bars(), render_container(), render_workspace(), reparent_window(), reposition_client(), resize_client(), resize_graphical_handler(), restore_geometry(), toggle_floating_mode(), and workspace_show().