Class TextStyle
- Namespace
- Lime
- Assembly
- Lime.dll
[TangerineAllowedParentTypes(new Type[] { typeof(RichText) })]
public class TextStyle : Node, IDisposable, IAnimatorHost, IRenderChainBuilder, IAnimable, ICloneable
- Inheritance
-
TextStyle
- Implements
- Inherited Members
- Extension Methods
Constructors
TextStyle()
public TextStyle()
Fields
Default
public static TextStyle Default
Field Value
Properties
Bold
[YuzuMember]
[TangerineKeyframeColor(2)]
public bool Bold { get; set; }
Property Value
CastShadow
[YuzuMember]
[TangerineKeyframeColor(3)]
public bool CastShadow { get; set; }
Property Value
Font
[YuzuMember]
[TangerineKeyframeColor(30)]
public SerializableFont Font { get; set; }
Property Value
GradientMapIndex
[YuzuMember]
public int GradientMapIndex { get; set; }
Property Value
ImageSize
[YuzuMember]
[TangerineKeyframeColor(29)]
public Vector2 ImageSize { get; set; }
Property Value
ImageSprite
[YuzuMember]
[TangerineKeyframeColor(28)]
public ISprite ImageSprite { get; set; }
Property Value
ImageUsage
[YuzuMember]
public TextStyle.ImageUsageEnum ImageUsage { get; set; }
Property Value
LetterSpacing
[YuzuMember]
[TangerineKeyframeColor(7)]
public float LetterSpacing { get; set; }
Property Value
ShadowColor
[YuzuMember]
[TangerineKeyframeColor(6)]
public Color4 ShadowColor { get; set; }
Property Value
ShadowOffset
[YuzuMember]
[TangerineKeyframeColor(4)]
public Vector2 ShadowOffset { get; set; }
Property Value
Size
[YuzuMember]
[TangerineKeyframeColor(31)]
[Validation.Range(0, 3.4028235E+38)]
public float Size { get; set; }
Property Value
SpaceAfter
[YuzuMember]
[TangerineKeyframeColor(1)]
public float SpaceAfter { get; set; }
Property Value
TextColor
[YuzuMember]
[TangerineKeyframeColor(5)]
public Color4 TextColor { get; set; }
Property Value
Methods
AddToRenderChain(RenderChain)
Decides what descendant nodes should be added to render chain and under which conditions. This includes children Nodes as well as this Node itself. i.e. if you want Render() of this node to be called you should invoke AddSelfToRenderChain in AddToRenderChain override.
public override void AddToRenderChain(RenderChain chain)
Parameters
chain
RenderChain
OnParentChanged(Node)
Occurs when Parent property changes.
protected override void OnParentChanged(Node oldParent)
Parameters
oldParent
Node