Class Movie
- Namespace
- Lime
- Assembly
- Lime.dll
[TangerineVisualHintGroup("/All/Nodes/Media", null)]
public sealed class Movie : Widget, IDisposable, IAnimatorHost, IRenderChainBuilder, IAnimable, ICloneable, IImageCombinerArg, IUpdatableNode
- Inheritance
-
Movie
- Implements
- Inherited Members
- Extension Methods
Constructors
Movie()
public Movie()
Properties
Action
[TangerineKeyframeColor(17)]
public MovieAction Action { get; set; }
Property Value
Looped
[YuzuMember]
[TangerineKeyframeColor(7)]
public bool Looped { get; set; }
Property Value
Path
[YuzuMember]
[TangerineKeyframeColor(8)]
[TangerineFileProperty(new string[] { "ogv" }, null, null, true, true)]
public string Path { get; set; }
Property Value
Paused
public bool Paused { get; }
Property Value
Sprite
Gets or sets a texture upon the widget. For widgets which can not have a texture returns null.
public override ISprite Sprite { get; set; }
Property Value
Stopped
public bool Stopped { get; }
Property Value
Methods
AddToRenderChain(RenderChain)
Adds widget and all its descendants to render chain.
public override void AddToRenderChain(RenderChain chain)
Parameters
chain
RenderChain
CalcContentSize()
public override Vector2 CalcContentSize()
Returns
GetRenderObject()
TODO: Add summary.
protected override RenderObject GetRenderObject()
Returns
IsPlaying()
public bool IsPlaying()
Returns
OnTrigger(string, object, double)
Invokes when the trigger property has been changed by animation.
public override void OnTrigger(string property, object value, double animationTimeCorrection = 0)
Parameters
property
stringA property name.
value
objectA new property value.
animationTimeCorrection
doubleAn animation time correction.
OnUpdate(float)
public void OnUpdate(float delta)
Parameters
delta
float
Pause()
public void Pause()
Play()
public void Play()
Stop()
public void Stop()