C# Class Artemis.DeviceProviders.KeyboardProvider

Inheritance: DeviceProvider
Afficher le fichier Open project: SpoinkyNL/Artemis Class Usage Examples

Méthodes publiques

Méthode Description
CanEnable ( ) : bool
CanEnableAsync ( ProgressDialogController dialog ) : Task

Runs CanEnable asynchronously multiple times until successful, cancelled or max tries reached

DrawBitmap ( Bitmap bitmap ) : void
Enable ( ) : void
EnableAsync ( ProgressDialogController dialog ) : Task

Runs CanEnable asynchronously

GetKeyPosition ( Keys keyCode ) : KeyMatch?

Returns the real life X and Y coordinates of the given key

KeyboardBitmap ( ) : Bitmap

Returns a bitmap matching the keyboard's dimensions

KeyboardBitmap ( int scale ) : Bitmap

Returns a bitmap matching the keyboard's dimensions using the provided scale

KeyboardRectangle ( int scale ) : Rect
TryEnable ( ) : bool
UpdateDevice ( Bitmap bitmap ) : void

Méthodes protégées

Méthode Description
KeyboardProvider ( ) : System

Method Details

CanEnable() public abstract méthode

public abstract CanEnable ( ) : bool
Résultat bool

CanEnableAsync() public méthode

Runs CanEnable asynchronously multiple times until successful, cancelled or max tries reached
public CanEnableAsync ( ProgressDialogController dialog ) : Task
dialog MahApps.Metro.Controls.Dialogs.ProgressDialogController
Résultat Task

DrawBitmap() public abstract méthode

public abstract DrawBitmap ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap
Résultat void

Enable() public abstract méthode

public abstract Enable ( ) : void
Résultat void

EnableAsync() public méthode

Runs CanEnable asynchronously
public EnableAsync ( ProgressDialogController dialog ) : Task
dialog MahApps.Metro.Controls.Dialogs.ProgressDialogController
Résultat Task

GetKeyPosition() public abstract méthode

Returns the real life X and Y coordinates of the given key
public abstract GetKeyPosition ( Keys keyCode ) : KeyMatch?
keyCode Keys
Résultat KeyMatch?

KeyboardBitmap() public méthode

Returns a bitmap matching the keyboard's dimensions
public KeyboardBitmap ( ) : Bitmap
Résultat System.Drawing.Bitmap

KeyboardBitmap() public méthode

Returns a bitmap matching the keyboard's dimensions using the provided scale
public KeyboardBitmap ( int scale ) : Bitmap
scale int
Résultat System.Drawing.Bitmap

KeyboardProvider() protected méthode

protected KeyboardProvider ( ) : System
Résultat System

KeyboardRectangle() public méthode

public KeyboardRectangle ( int scale ) : Rect
scale int
Résultat Rect

TryEnable() public méthode

public TryEnable ( ) : bool
Résultat bool

UpdateDevice() public méthode

public UpdateDevice ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap
Résultat void