MeVisLab Scripting Reference
MLABDesktop Class Reference

#include <mlabScriptWrappers.h>

Inherits QObject.

Public Slots

Screen geometries


bool isVirtualDesktop () const
 
int numScreens () const
 
int primaryScreen () const
 
int screenNumber (int x, int y) const
 
int screenNumber (MLABWidgetControl *control) const
 
QRect screenGeometry () const
 
QRect screenGeometry (int screen) const
 
QRect screenGeometry (int x, int y) const
 
QRect screenGeometry (MLABWidgetControl *control) const
 
QRect availableGeometry () const
 
QRect availableGeometry (int screen) const
 
QRect availableGeometry (MLABWidgetControl *control) const
 
QRect availableGeometry (int x, int y) const
 

Detailed Description

Global MLABDesktop object available in all scripts.

The MLABDesktop object can be used to query the screens and their sizes available on the computer's desktop.

Member Function Documentation

◆ availableGeometry [1/4]

QRect MLABDesktop::availableGeometry ( ) const
slot

Returns the available geometry (screenGeometry - taskbar and start menu) for the primary screen.

◆ availableGeometry [2/4]

QRect MLABDesktop::availableGeometry ( int screen) const
slot

Returns the available geometry (screenGeometry - taskbar and start menu).

◆ availableGeometry [3/4]

QRect MLABDesktop::availableGeometry ( int x,
int y ) const
slot

Returns the available geometry at the given point.

◆ availableGeometry [4/4]

QRect MLABDesktop::availableGeometry ( MLABWidgetControl * control) const
slot

Returns the available geometry for the given control.

◆ isVirtualDesktop

bool MLABDesktop::isVirtualDesktop ( ) const
slot

Returns whether desktop is one big virtual desktop.

◆ numScreens

int MLABDesktop::numScreens ( ) const
slot

Returns the number of screens.

◆ primaryScreen

int MLABDesktop::primaryScreen ( ) const
slot

Returns the number of the primary screen.

◆ screenGeometry [1/4]

QRect MLABDesktop::screenGeometry ( ) const
slot

Returns the screen geometry for the primary screen of the application.

◆ screenGeometry [2/4]

QRect MLABDesktop::screenGeometry ( int screen) const
slot

Returns the screen geometry for the given screen.

◆ screenGeometry [3/4]

QRect MLABDesktop::screenGeometry ( int x,
int y ) const
slot

Returns the screen geometry at the given point.

◆ screenGeometry [4/4]

QRect MLABDesktop::screenGeometry ( MLABWidgetControl * control) const
slot

Returns the screen geometry for the given control.

◆ screenNumber [1/2]

int MLABDesktop::screenNumber ( int x,
int y ) const
slot

Returns the screen number for a given point.

◆ screenNumber [2/2]

int MLABDesktop::screenNumber ( MLABWidgetControl * control) const
slot

Returns the screen number for a given control.