C# Class LitDev.LDFastShapes

Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
Update_Delegate ( ) : void

Method Details

GetLeft() public static méthode

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. ///
Résultat Primitive

GetOpacity() public static méthode

Gets the opacity of a shape.
public static GetOpacity ( Primitive index ) : Primitive
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
Résultat Primitive

GetTop() public static méthode

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. ///
Résultat Primitive

HideShape() public static méthode

Hides an already added shape.
public static HideShape ( Primitive index ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
Résultat void

Move() public static méthode

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. ///
Résultat void

Rotate() public static méthode

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. ///
Résultat void

SetOpacity() public static méthode

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. ///
Résultat void

ShapeIndex() public static méthode

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.
Résultat Primitive

ShowShape() public static méthode

Shows a previously hidden shape.
public static ShowShape ( Primitive index ) : void
index Primitive /// The index (returned by ShapeIndex) of the shape. ///
Résultat void

Update() public static méthode

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
Résultat void

Zoom() public static méthode

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. ///
Résultat void