i3
Rect Struct Reference

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
 

Detailed Description

Stores a rectangle, for example the size of a window, the child window etc.

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 185 of file data.h.

Field Documentation

◆ height

uint32_t Rect::height

Definition at line 189 of file data.h.

Referenced by _create___i3(), _workspace_apply_default_orientation(), adjust_rect(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), cmd_move_direction(), cmd_move_window_to_position(), cmd_resize_floating(), cmd_resize_set(), con_adjacent_borders(), con_border_style_rect(), con_border_style_rect_without_title(), con_minimum_size(), con_rect_size_in_orientation(), create_root_output(), create_window(), dlog_padding(), DRAGGING_CB(), DRAGGING_CB(), dump_rect(), fake_absolute_configure_notify(), fake_outputs_init(), floating_center(), floating_check_size(), floating_enable(), floating_fix_coordinates(), floating_mod_on_tiled_client(), floating_move_to_pointer(), floating_resize(), floating_resize_window(), get_output_containing(), get_output_from_rect(), get_output_next(), get_output_with_dimensions(), get_tree_next_workspace(), handle_configure_request(), handle_expose_event(), handle_screen_change(), handle_strut_partial_change(), json_end_map(), json_int(), manage_window(), output_containing_rect(), percent_for_1px(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), rect_equals(), rect_sanitize_dimensions(), rect_sub(), render_con(), render_con_dockarea(), render_con_split(), render_con_stacked(), render_con_tabbed(), render_output(), render_root(), resize_graphical_handler(), resize_set_tiling(), restore_geometry(), scratchpad_fix_resolution(), scratchpad_show(), sighandler_create_dialogs(), sighandler_draw_dialog(), tiling_resize(), total_outputs_dimensions(), x_con_init(), x_deco_recurse(), x_draw_decoration(), x_draw_decoration_after_title(), x_draw_title_border(), x_get_border_rectangles(), x_push_changes(), and x_push_node().

◆ width

uint32_t Rect::width

Definition at line 188 of file data.h.

Referenced by _create___i3(), _workspace_apply_default_orientation(), adjust_rect(), CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), cmd_move_direction(), cmd_move_window_to_position(), cmd_resize_floating(), cmd_resize_set(), con_adjacent_borders(), con_border_style_rect_without_title(), con_rect_size_in_orientation(), create_root_output(), create_window(), dlog_padding(), DRAGGING_CB(), DRAGGING_CB(), dump_rect(), fake_absolute_configure_notify(), fake_outputs_init(), floating_center(), floating_check_size(), floating_enable(), floating_fix_coordinates(), floating_mod_on_tiled_client(), floating_move_to_pointer(), floating_resize(), floating_resize_window(), get_output_containing(), get_output_from_rect(), get_output_next(), get_output_with_dimensions(), get_tree_next_workspace(), handle_configure_request(), handle_expose_event(), handle_screen_change(), json_end_map(), json_int(), manage_window(), output_containing_rect(), query_screens(), randr_query_outputs(), rect_add(), rect_contains(), rect_equals(), rect_sanitize_dimensions(), rect_sub(), render_con(), render_con_dockarea(), render_con_split(), render_con_stacked(), render_con_tabbed(), render_output(), render_root(), resize_graphical_handler(), resize_set_tiling(), restore_geometry(), scratchpad_fix_resolution(), scratchpad_show(), sighandler_create_dialogs(), sighandler_draw_dialog(), tiling_resize(), total_outputs_dimensions(), x_con_init(), x_deco_recurse(), x_draw_decoration(), x_draw_decoration_after_title(), x_draw_title_border(), x_get_border_rectangles(), x_push_changes(), and x_push_node().

◆ x

◆ y


The documentation for this struct was generated from the following file: