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

Inheritance: KeyDefinition
Show file Open project: ThoNohT/NohBoard

Public Methods

Method 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

Method Description
UnionWith ( IList keys ) : MouseScrollDefinition

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

Method Details

MouseScrollDefinition() public method

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.
return System

Render() public method

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.
return void

Translate() public method

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.
return ElementDefinition

UnionWith() public method

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.
return KeyDefinition