Class Image
- Namespace
- Lime
- Assembly
- Lime.dll
[TangerineVisualHintGroup("/All/Nodes/Images", null)]
public class Image : Widget, IDisposable, IAnimatorHost, IRenderChainBuilder, IAnimable, ICloneable, IImageCombinerArg, IMaterialComponentOwner
- Inheritance
-
Image
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Image()
public Image()
Image(ISprite)
public Image(ISprite sprite)
Parameters
sprite
ISprite
Image(string)
public Image(string spritePath)
Parameters
spritePath
string
Properties
DefaultMaterial
public IMaterial DefaultMaterial { get; }
Property Value
Material
public IMaterial Material { get; set; }
Property Value
Sprite
Gets or sets a texture upon the widget. For widgets which can not have a texture returns null.
[YuzuMember]
[YuzuSerializeIf("IsNotRenderTexture")]
[TangerineKeyframeColor(15)]
public override sealed ISprite Sprite { get; set; }
Property Value
UV0
[YuzuMember]
[TangerineKeyframeColor(16)]
public Vector2 UV0 { get; set; }
Property Value
UV1
[YuzuMember]
[TangerineKeyframeColor(17)]
public Vector2 UV1 { get; set; }
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
GetRenderObject<TRenderObject>()
protected virtual RenderObject GetRenderObject<TRenderObject>() where TRenderObject : Image.RenderObject, new()
Returns
Type Parameters
TRenderObject
IsNotRenderTexture()
public bool IsNotRenderTexture()
Returns
PartialHitTestByContents(ref HitTestArgs)
protected override bool PartialHitTestByContents(ref HitTestArgs args)
Parameters
args
HitTestArgs