Class Element
Contains all the display tweakables for a control
public class Element : ICloneable
- Inheritance
-
objectElement
- Implements
Fields
FontColor
public BlendColor FontColor
Field Value
FontIndex
public uint FontIndex
Field Value
TextureColor
public BlendColor TextureColor
Field Value
TextureIndex
public uint TextureIndex
Field Value
textFormat
public DrawTextFormat textFormat
Field Value
- DrawTextFormat
textureRect
public Rectangle textureRect
Field Value
Methods
Clone()
Creates a deep copy of this Element instance.
public virtual Element Clone()
Returns
CloneFromTo(Element, Element)
Copies all members declared by Element from one instance to another.
protected static void CloneFromTo(Element from, Element to)
Parameters
Refresh()
Refresh this element
public void Refresh()
SetFont(uint, Color4, DrawTextFormat)
Set the font
public void SetFont(uint font, Color4 defaultFontColor, DrawTextFormat format)
Parameters
fontuintdefaultFontColorColor4formatDrawTextFormat
SetTexture(uint, Rectangle)
Set the texture
public void SetTexture(uint tex, Rectangle texRect)
Parameters
SetTexture(uint, Rectangle, Color4)
Set the texture
public void SetTexture(uint tex, Rectangle texRect, Color4 defaultTextureColor)