Class ButtonStyle
Represents a custom style for a GUI button
public class ButtonStyle : ICloneable
- Inheritance
-
ButtonStyle
- Implements
- Inherited Members
- Extension Methods
Fields
ButtonColorNormal
public XColor ButtonColorNormal
Field Value
ButtonColorPressed
public XColor ButtonColorPressed
Field Value
FillColorFocus
public XColor FillColorFocus
Field Value
FillColorMouseOver
public XColor FillColorMouseOver
Field Value
FillColorPressed
public XColor FillColorPressed
Field Value
TextColorMouseOver
public XColor TextColorMouseOver
Field Value
TextColorNormal
public XColor TextColorNormal
Field Value
Properties
ButtonNormalColor
public Color ButtonNormalColor { get; set; }
Property Value
ButtonPressedColor
public Color ButtonPressedColor { get; set; }
Property Value
ButtonTextureLocation
The upper left corner of the area in the texture file to use for the button layer
public Point ButtonTextureLocation { get; set; }
Property Value
ButtonTextureSize
The distance to the lower right corner of the area in the texture file to use for the button layer
public Size ButtonTextureSize { get; set; }
Property Value
FillFocusColor
public Color FillFocusColor { get; set; }
Property Value
FillMouseOverColor
public Color FillMouseOverColor { get; set; }
Property Value
FillPressedColor
public Color FillPressedColor { get; set; }
Property Value
FillTextureLocation
The upper left corner of the area in the texture file to use for the fill layer
public Point FillTextureLocation { get; set; }
Property Value
FillTextureSize
The distance to the lower right corner of the area in the texture file to use for the fill layer
public Size FillTextureSize { get; set; }
Property Value
Name
Unique name for identifying this button style
public string? Name { get; set; }
Property Value
TextMouseOverColor
public Color TextMouseOverColor { get; set; }
Property Value
TextNormalColor
public Color TextNormalColor { get; set; }
Property Value
TextureFile
The file containing the texture for this button style
public string TextureFile { get; set; }
Property Value
TextureFileValid
public bool TextureFileValid { get; }
Property Value
Methods
Clone()
Creates a shallow copy of this button style. You need to call OmegaGUI.Model.ButtonStyle.Generate() on it before it can be used for rendering.
public ButtonStyle Clone()
Returns
- ButtonStyle
The cloned button style
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.