C# Class MonoGameUi.Transition

Basisklasse für Animationstransitions von Controls.
Afficher le fichier Open project: OctoAwesome/monogameui Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
ApplyValue ( Control control, float value ) : void

Wendet die Transition auf das Steuerelement an.

Method Details

ApplyValue() protected abstract méthode

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

Clone() public abstract méthode

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

Linear() public static méthode

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

Qubic() public static méthode

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

Transition() public méthode

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

Transition() public méthode

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

Update() public méthode

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