C# Class ThoNohT.NohBoard.Keyboard.ElementDefinitions.MouseScrollDefinition

Inheritance: KeyDefinition
Afficher le fichier Open project: ThoNohT/NohBoard

Méthodes publiques

Méthode Description
MouseScrollDefinition ( int id, List boundaries, int keyCode, string text ) : System

Initializes a new instance of the MouseScrollDefinition class.

The position of the text is determined from the bounding box of the key.

Render ( Graphics g, int scrollCount ) : void

Renders the key in the specified surface.

Translate ( int dx, int dy ) : ElementDefinition

Translates the element, moving it the specified distance.

UnionWith ( List keys ) : KeyDefinition

Updates the key definition to occupy a region of itself plus the specified other keys.

Private Methods

Méthode Description
UnionWith ( IList keys ) : MouseScrollDefinition

Updates the key definition to occupy a region of itself plus the specified other keys.

Method Details

MouseScrollDefinition() public méthode

Initializes a new instance of the MouseScrollDefinition class.
The position of the text is determined from the bounding box of the key.
public MouseScrollDefinition ( int id, List boundaries, int keyCode, string text ) : System
id int The identifier of the key.
boundaries List The boundaries.
keyCode int The keycode.
text string The text of the key.
Résultat System

Render() public méthode

Renders the key in the specified surface.
public Render ( Graphics g, int scrollCount ) : void
g System.Drawing.Graphics The GDI+ surface to render on.
scrollCount int The number of times the direction has been scrolled within the timeout.
Résultat void

Translate() public méthode

Translates the element, moving it the specified distance.
public Translate ( int dx, int dy ) : ElementDefinition
dx int The distance along the x-axis.
dy int The distance along the y-axis.
Résultat ElementDefinition

UnionWith() public méthode

Updates the key definition to occupy a region of itself plus the specified other keys.
public UnionWith ( List keys ) : KeyDefinition
keys List The keys to union with.
Résultat KeyDefinition