Table of Contents

Class ButtonStyle

Namespace
OmegaGUI.Model
Assembly
OmegaGUI.dll

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

XColor

ButtonColorPressed

public XColor ButtonColorPressed

Field Value

XColor

FillColorFocus

public XColor FillColorFocus

Field Value

XColor

FillColorMouseOver

public XColor FillColorMouseOver

Field Value

XColor

FillColorPressed

public XColor FillColorPressed

Field Value

XColor

TextColorMouseOver

public XColor TextColorMouseOver

Field Value

XColor

TextColorNormal

public XColor TextColorNormal

Field Value

XColor

Properties

ButtonNormalColor

public Color ButtonNormalColor { get; set; }

Property Value

Color

ButtonPressedColor

public Color ButtonPressedColor { get; set; }

Property Value

Color

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

Point

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

Size

FillFocusColor

public Color FillFocusColor { get; set; }

Property Value

Color

FillMouseOverColor

public Color FillMouseOverColor { get; set; }

Property Value

Color

FillPressedColor

public Color FillPressedColor { get; set; }

Property Value

Color

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

Point

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

Size

Name

Unique name for identifying this button style

public string? Name { get; set; }

Property Value

string

TextMouseOverColor

public Color TextMouseOverColor { get; set; }

Property Value

Color

TextNormalColor

public Color TextNormalColor { get; set; }

Property Value

Color

TextureFile

The file containing the texture for this button style

public string TextureFile { get; set; }

Property Value

string

TextureFileValid

public bool TextureFileValid { get; }

Property Value

bool

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.