Class TiledImage
- Namespace
- Lime
- Assembly
- Lime.dll
[TangerineVisualHintGroup("/All/Nodes/Images", null)]
public class TiledImage : Widget, IDisposable, IAnimatorHost, IRenderChainBuilder, IAnimable, ICloneable
- Inheritance
-
TiledImage
- Implements
- Inherited Members
- Extension Methods
Constructors
TiledImage()
public TiledImage()
TiledImage(ISprite)
public TiledImage(ISprite sprite)
Parameters
sprite
ISprite
TiledImage(string)
public TiledImage(string spritePath)
Parameters
spritePath
string
Properties
CustomMaterial
public IMaterial CustomMaterial { 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")]
public override sealed ISprite Sprite { get; set; }
Property Value
TileOffset
[YuzuMember]
[TangerineKeyframeColor(17)]
public Vector2 TileOffset { get; set; }
Property Value
TileRounding
[YuzuMember]
[TangerineKeyframeColor(18)]
public bool TileRounding { get; set; }
Property Value
TileSize
[YuzuMember]
[TangerineKeyframeColor(16)]
[Validation.RatioInfo(new Type[] { typeof(TiledImage) })]
[Validation.SizeInfo(new Type[] { typeof(TiledImage) })]
public Vector2 TileSize { 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
IsNotRenderTexture()
public bool IsNotRenderTexture()
Returns
PartialHitTestByContents(ref HitTestArgs)
protected override bool PartialHitTestByContents(ref HitTestArgs args)
Parameters
args
HitTestArgs