C# Class MonoGameUi.Transition

Basisklasse für Animationstransitions von Controls.
Datei anzeigen Open project: OctoAwesome/monogameui Class Usage Examples

Public Methods

Method Description
Clone ( Control control ) : Transition

Fertigt eine Kopie dieser Transition an, ersetzt aber das Zielcontrol.

Linear ( float position ) : float

Lineare Bewegung

Qubic ( float position ) : float

Quadratische Bewegung

Transition ( Control control, float>.Func curve, System.TimeSpan duration ) : System

Erstellt eine neue Transition für das angegebene Control.

Transition ( Control control, float>.Func curve, System.TimeSpan duration, System.TimeSpan delay ) : System

Erstellt eine neue Transition für das angegebene Control.

Update ( GameTime gameTime ) : bool

Update-Methode für die Animation.

Protected Methods

Method Description
ApplyValue ( Control control, float value ) : void

Wendet die Transition auf das Steuerelement an.

Method Details

ApplyValue() protected abstract method

Wendet die Transition auf das Steuerelement an.
protected abstract ApplyValue ( Control control, float value ) : void
control Control Zielcontrol der Transition.
value float Wert im zeitlichen Ablauf der Transition.
return void

Clone() public abstract method

Fertigt eine Kopie dieser Transition an, ersetzt aber das Zielcontrol.
public abstract Clone ( Control control ) : Transition
control Control Das neue Zielcontrol.
return Transition

Linear() public static method

Lineare Bewegung
public static Linear ( float position ) : float
position float Verlaufsposition im Wertebereich 0 bis 1
return float

Qubic() public static method

Quadratische Bewegung
public static Qubic ( float position ) : float
position float Verlaufsposition im Wertebereich 0 bis 1
return float

Transition() public method

Erstellt eine neue Transition für das angegebene Control.
public Transition ( Control control, float>.Func curve, System.TimeSpan duration ) : System
control Control Zielcontrol.
curve float>.Func Bewegungskurve.
duration System.TimeSpan Animationslänge.
return System

Transition() public method

Erstellt eine neue Transition für das angegebene Control.
public Transition ( Control control, float>.Func curve, System.TimeSpan duration, System.TimeSpan delay ) : System
control Control Zielcontrol.
curve float>.Func Bewegungskurve.
duration System.TimeSpan Animationslänge.
delay System.TimeSpan Wartezeit bis zum Start der Animation.
return System

Update() public method

Update-Methode für die Animation.
public Update ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
return bool