phoenix::Desktop

struct Desktop {
  static Geometry geometry();
  static Geometry workspace();
};

static Geometry Desktop::geometry();

Returns the current desktop resolution. x and y parameters are always zero.

static Geometry Desktop::workspace();

Returns the available desktop space, sans any OS docks, toolbars, or menu bars. For instance, if the desktop resolution were 1920x1200, and the Windows taskbar was at the bottom of the screen, this might return { 0, 0, 1920, 1168 }.

Use this function when you wish to place widgets along the edges of the screen to ensure that no part of the window ends up obstructed.