C# Class MonoGameUi.AlphaTransition

Transition zur Veränderung der Transparenz eines Steuerelements.
Inheritance: Transition
Show file Open project: OctoAwesome/monogameui Class Usage Examples

Public Methods

Method Description
AlphaTransition ( Control control, float>.Func curve, System.TimeSpan duration, System.TimeSpan delay, float to ) : System

Erzeugt eine neue AlphaTransition für das angegebene Control.

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

Erzeugt eine neue AlphaTransition für das angegebene Control.

Clone ( Control control ) : Transition

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

Protected Methods

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

Wendet die Transition auf das Steuerelement an.

Method Details

AlphaTransition() public method

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

AlphaTransition() public method

Erzeugt eine neue AlphaTransition für das angegebene Control.
public AlphaTransition ( Control control, float>.Func curve, System.TimeSpan duration, float to ) : System
control Control Zielcontrol.
curve float>.Func Bewegungskurve.
duration System.TimeSpan Animationslänge.
to float Zieltransparenz des Controls.
return System

ApplyValue() protected method

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

Clone() public method

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