get_workspace_area

Function get_workspace_area 

pub fn get_workspace_area<W: WindowsApi>(
    windows_api: &W,
    daemon_console_height: i32,
) -> WorkspaceArea
Expand description

Returns the available workspace area on the primary monitor in the specified scaling minus the space occupied by the daemon console.

§Arguments

  • scaling - The desired scaling for the workspace area. Physical or logical. This does not control which scaling is used by the system but only in which scalin the returned values are.
  • daemon_console_height - Height of the daemon console that will be substraced from the workspace area height.

§Returns

The available workspace area on the primary monitor in the specified scaling minus the space occupied by the daemon console.