get_console_rect

Function get_console_rect 

fn get_console_rect(
    x: i32,
    y: i32,
    width: i32,
    height: i32,
    workspace_area: &WorkspaceArea,
) -> (i32, i32, i32, i32)
Expand description

Transform the position and dimensions of a console window based on the workspace area.

To minimize empty space between windows, width and height must be adjusted by the fixed_frame and size_frame values.

§Arguments

  • x - The x coordinate of the window.
  • y - The y coordinate of the window.
  • width - The width in pixels of the window.
  • height - The height in pixels of the window.
  • workspace_area - The available workspace area on the primary monitor minus the space occupied by the daemon console window.

§Returns

(x, y, width, height)