C# Class Xwt.Backends.DesktopBackend

Inheritance: Xwt.Backends.BackendHandler
Afficher le fichier Open project: antmicro/xwt

Méthodes publiques

Méthode Description
GetFileIcon ( string fileName ) : object
GetMouseLocation ( ) : System.Point

Gets the current global mouse location.

GetScaleFactor ( object backend ) : double

Gets the scale factor for the screen.

The normal value is 1. In a retina display the value is 2.

GetScreenBounds ( object backend ) : Rectangle

Gets the bounds of a screen, in desktop coordinates

GetScreenDeviceName ( object backend ) : string

Gets the name of the screen device.

GetScreenVisibleBounds ( object backend ) : Rectangle

Gets the visible bounds of a screen (excluding dock area and other decorations), in desktop coordinates

GetScreens ( ) : IEnumerable

List of screens that compose the desktop

IsPrimaryScreen ( object backend ) : bool

Determines whether the provided screen is the primary screen

The primary screen is considered the screen where the 'main desktop' lives.

OnScreensChanged ( ) : void

Raises the ScreensChanged event.

To be called by the subclass when there is a change in the configuration of screens

OpenFile ( string filename ) : void
OpenFolder ( string folderPath ) : void
OpenUrl ( string url ) : void

Method Details

GetFileIcon() public méthode

public GetFileIcon ( string fileName ) : object
fileName string
Résultat object

GetMouseLocation() public abstract méthode

Gets the current global mouse location.
public abstract GetMouseLocation ( ) : System.Point
Résultat System.Point

GetScaleFactor() public méthode

Gets the scale factor for the screen.
The normal value is 1. In a retina display the value is 2.
public GetScaleFactor ( object backend ) : double
backend object A screen backend
Résultat double

GetScreenBounds() public abstract méthode

Gets the bounds of a screen, in desktop coordinates
public abstract GetScreenBounds ( object backend ) : Rectangle
backend object A screen backend
Résultat Rectangle

GetScreenDeviceName() public abstract méthode

Gets the name of the screen device.
public abstract GetScreenDeviceName ( object backend ) : string
backend object A screen backend
Résultat string

GetScreenVisibleBounds() public abstract méthode

Gets the visible bounds of a screen (excluding dock area and other decorations), in desktop coordinates
public abstract GetScreenVisibleBounds ( object backend ) : Rectangle
backend object A screen backend
Résultat Rectangle

GetScreens() public abstract méthode

List of screens that compose the desktop
public abstract GetScreens ( ) : IEnumerable
Résultat IEnumerable

IsPrimaryScreen() public abstract méthode

Determines whether the provided screen is the primary screen
The primary screen is considered the screen where the 'main desktop' lives.
public abstract IsPrimaryScreen ( object backend ) : bool
backend object Screen backend
Résultat bool

OnScreensChanged() public méthode

Raises the ScreensChanged event.
To be called by the subclass when there is a change in the configuration of screens
public OnScreensChanged ( ) : void
Résultat void

OpenFile() public méthode

public OpenFile ( string filename ) : void
filename string
Résultat void

OpenFolder() public méthode

public OpenFolder ( string folderPath ) : void
folderPath string
Résultat void

OpenUrl() public méthode

public OpenUrl ( string url ) : void
url string
Résultat void