Table of Contents

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

MovieAction

Looped

[YuzuMember]
[TangerineKeyframeColor(7)]
public bool Looped { get; set; }

Property Value

bool

Path

[YuzuMember]
[TangerineKeyframeColor(8)]
[TangerineFileProperty(new string[] { "ogv" }, null, null, true, true)]
public string Path { get; set; }

Property Value

string

Paused

public bool Paused { get; }

Property Value

bool

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

ISprite

Stopped

public bool Stopped { get; }

Property Value

bool

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

Vector2

GetRenderObject()

TODO: Add summary.

protected override RenderObject GetRenderObject()

Returns

RenderObject

IsPlaying()

public bool IsPlaying()

Returns

bool

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 string

A property name.

value object

A new property value.

animationTimeCorrection double

An 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()