C# Class Xwt.Backends.DesktopBackend

Inheritance: Xwt.Backends.BackendHandler
Show file Open project: antmicro/xwt

Public Methods

Method 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 method

public GetFileIcon ( string fileName ) : object
fileName string
return object

GetMouseLocation() public abstract method

Gets the current global mouse location.
public abstract GetMouseLocation ( ) : System.Point
return System.Point

GetScaleFactor() public method

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
return double

GetScreenBounds() public abstract method

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

GetScreenDeviceName() public abstract method

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

GetScreenVisibleBounds() public abstract method

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
return Rectangle

GetScreens() public abstract method

List of screens that compose the desktop
public abstract GetScreens ( ) : IEnumerable
return IEnumerable

IsPrimaryScreen() public abstract method

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
return bool

OnScreensChanged() public method

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

OpenFile() public method

public OpenFile ( string filename ) : void
filename string
return void

OpenFolder() public method

public OpenFolder ( string folderPath ) : void
folderPath string
return void

OpenUrl() public method

public OpenUrl ( string url ) : void
url string
return void