Class NineGrid
- Namespace
- Lime
- Assembly
- Lime.dll
[TangerineVisualHintGroup("/All/Nodes/Images", null)]
public class NineGrid : Widget, IDisposable, IAnimatorHost, IRenderChainBuilder, IAnimable, ICloneable
- Inheritance
-
NineGrid
- Implements
- Inherited Members
- Extension Methods
Constructors
NineGrid()
public NineGrid()
Properties
BottomOffset
[YuzuMember]
[TangerineKeyframeColor(18)]
public float BottomOffset { get; set; }
Property Value
LeftOffset
[YuzuMember]
[TangerineKeyframeColor(15)]
public float LeftOffset { get; set; }
Property Value
RightOffset
[YuzuMember]
[TangerineKeyframeColor(16)]
public float RightOffset { get; set; }
Property Value
Sprite
Gets or sets a texture upon the widget. For widgets which can not have a texture returns null.
[YuzuMember]
[TangerineKeyframeColor(14)]
public override ISprite Sprite { get; set; }
Property Value
TextureScale
[YuzuMember]
[TangerineKeyframeColor(18)]
public float TextureScale { get; set; }
Property Value
TopOffset
[YuzuMember]
[TangerineKeyframeColor(17)]
public float TopOffset { 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
BuildLayout(Part[], Vector2, float, float, float, float, Vector2)
public static void BuildLayout(NineGrid.Part[] layout, Vector2 spriteSize, float leftOffset, float rightOffset, float topOffset, float bottomOffset, Vector2 widgetSize)
Parameters
layout
Part[]spriteSize
Vector2leftOffset
floatrightOffset
floattopOffset
floatbottomOffset
floatwidgetSize
Vector2
GetRenderObject()
TODO: Add summary.
protected override RenderObject GetRenderObject()
Returns
PartialHitTestByContents(ref HitTestArgs)
protected override bool PartialHitTestByContents(ref HitTestArgs args)
Parameters
args
HitTestArgs