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

Show file Open project: ThoNohT/NohBoard Class Usage Examples

Protected Properties

Property Type Description
StyleVersion int

Private Properties

Property Type Description

Public Methods

Method Description
GetBoundingBox ( ) : Rectangle

Returns the bounding box of this element.

Inside ( Point point ) : bool

Calculates whether the specified point is inside this element.

Translate ( int dx, int dy ) : ElementDefinition

Translates the element, moving it the specified distance.

Method Details

GetBoundingBox() public abstract method

Returns the bounding box of this element.
public abstract GetBoundingBox ( ) : Rectangle
return System.Drawing.Rectangle

Inside() public abstract method

Calculates whether the specified point is inside this element.
public abstract Inside ( Point point ) : bool
point System.Drawing.Point The point.
return bool

Translate() public abstract method

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

Property Details

StyleVersion protected property

Compare this against the dependency counter to know when to update brushes.
protected int StyleVersion
return int