C# Класс LitDev.LDFastShapes

Показать файл Открыть проект

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

Метод Описание
GetLeft ( Primitive index ) : Primitive

Gets the left co-ordinate of the specified shape.

GetOpacity ( Primitive index ) : Primitive

Gets the opacity of a shape.

GetTop ( Primitive index ) : Primitive

Gets the top co-ordinate of the specified shape.

HideShape ( Primitive index ) : void

Hides an already added shape.

Move ( Primitive index, Primitive x, Primitive y ) : void

Moves the shape with the specified name to a new position.

Rotate ( Primitive index, Primitive angle ) : void

Rotates the shape with the specified name to the specified angle.

SetOpacity ( Primitive index, Primitive level ) : void

Sets how opaque a shape should render.

ShapeIndex ( Primitive shapeName ) : Primitive

Register a shape for use with this object. This command is potentially slow, so should be called before time critical visual updates occur. i.e. Create and register all shapes before motion is simulated.

ShowShape ( Primitive index ) : void

Shows a previously hidden shape.

Update ( ) : void

Update all of the properties of shapes set by this object that have been modifed since the last update. The shapes are not visually updated until this method is called.

Zoom ( Primitive index, Primitive scaleX, Primitive scaleY ) : void

Scales the shape using the specified zoom levels.

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

Метод Описание
Update_Delegate ( ) : void

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

GetLeft() публичный статический Метод

Gets the left co-ordinate of the specified shape.
public static GetLeft ( Primitive index ) : Primitive
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
Результат Primitive

GetOpacity() публичный статический Метод

Gets the opacity of a shape.
public static GetOpacity ( Primitive index ) : Primitive
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
Результат Primitive

GetTop() публичный статический Метод

Gets the top co-ordinate of the specified shape.
public static GetTop ( Primitive index ) : Primitive
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
Результат Primitive

HideShape() публичный статический Метод

Hides an already added shape.
public static HideShape ( Primitive index ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
Результат void

Move() публичный статический Метод

Moves the shape with the specified name to a new position.
public static Move ( Primitive index, Primitive x, Primitive y ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape to move. ///
x Primitive /// The x co-ordinate of the new position. ///
y Primitive /// The y co-ordinate of the new position. ///
Результат void

Rotate() публичный статический Метод

Rotates the shape with the specified name to the specified angle.
public static Rotate ( Primitive index, Primitive angle ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
angle Primitive /// The angle to rotate the shape. ///
Результат void

SetOpacity() публичный статический Метод

Sets how opaque a shape should render.
public static SetOpacity ( Primitive index, Primitive level ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
level Primitive /// The opacity level ranging from 0 to 100. 0 is completely transparent and 100 is completely opaque. ///
Результат void

ShapeIndex() публичный статический Метод

Register a shape for use with this object. This command is potentially slow, so should be called before time critical visual updates occur. i.e. Create and register all shapes before motion is simulated.
public static ShapeIndex ( Primitive shapeName ) : Primitive
shapeName Primitive The name of the created shape.
Результат Primitive

ShowShape() публичный статический Метод

Shows a previously hidden shape.
public static ShowShape ( Primitive index ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
Результат void

Update() публичный статический Метод

Update all of the properties of shapes set by this object that have been modifed since the last update. The shapes are not visually updated until this method is called.
public static Update ( ) : void
Результат void

Zoom() публичный статический Метод

Scales the shape using the specified zoom levels.
public static Zoom ( Primitive index, Primitive scaleX, Primitive scaleY ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
scaleX Primitive /// The x-axis zoom level. ///
scaleY Primitive /// The y-axis zoom level. ///
Результат void