C# Class Artemis.DeviceProviders.KeyboardProvider

Inheritance: DeviceProvider
Mostrar archivo Open project: SpoinkyNL/Artemis Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
KeyboardProvider ( ) : System

Method Details

CanEnable() public abstract method

public abstract CanEnable ( ) : bool
return bool

CanEnableAsync() public method

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

DrawBitmap() public abstract method

public abstract DrawBitmap ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap
return void

Enable() public abstract method

public abstract Enable ( ) : void
return void

EnableAsync() public method

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

GetKeyPosition() public abstract method

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

KeyboardBitmap() public method

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

KeyboardBitmap() public method

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

KeyboardProvider() protected method

protected KeyboardProvider ( ) : System
return System

KeyboardRectangle() public method

public KeyboardRectangle ( int scale ) : Rect
scale int
return Rect

TryEnable() public method

public TryEnable ( ) : bool
return bool

UpdateDevice() public method

public UpdateDevice ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap
return void