C# Класс ThoNohT.NohBoard.Keyboard.ElementDefinitions.MouseScrollDefinition

Наследование: KeyDefinition
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
UnionWith ( IList keys ) : MouseScrollDefinition

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

Описание методов

MouseScrollDefinition() публичный Метод

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.
Результат System

Render() публичный Метод

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.
Результат void

Translate() публичный Метод

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.
Результат ElementDefinition

UnionWith() публичный Метод

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.
Результат KeyDefinition