OmegaEngine API  1.0.3
Public Member Functions | Public Attributes | Properties | List of all members
OmegaGUI.Model.ButtonStyle Class Reference

Represents a custom style for a GUI button More...

Inheritance diagram for OmegaGUI.Model.ButtonStyle:

Public Member Functions

override string ToString ()
 
ButtonStyle Clone ()
 Creates a shallow copy of this button style. You need to call Generate on it before it can be used for rendering. More...
 

Public Attributes

XColor ButtonColorNormal = new XColor(1.0f, 1.0f, 1.0f, 0.55f)
 
XColor FillColorMouseOver = new XColor(1.0f, 1.0f, 1.0f, 0.6f)
 
bool TextureFileValid => !string.IsNullOrEmpty(TextureFile) && ContentManager.FileExists("GUI/Textures", TextureFile)
 

Properties

string Name [get, set]
 Unique name for identifying this button style More...
 
string TextureFile = "base.png" [get, set]
 The file containing the texture for this button style More...
 
Point ButtonTextureLocation = new Point(0, 0) [get, set]
 The upper left corner of the area in the texture file to use for the button layer More...
 
Size ButtonTextureSize = new Size(136, 54) [get, set]
 The distance to the lower right corner of the area in the texture file to use for the button layer More...
 
Color ButtonNormalColor [get, set]
 
Color ButtonPressedColor [get, set]
 
Color TextNormalColor [get, set]
 
Color TextMouseOverColor [get, set]
 
Point FillTextureLocation = new Point(136, 0) [get, set]
 The upper left corner of the area in the texture file to use for the fill layer More...
 
Size FillTextureSize = new Size(252, 54) [get, set]
 The distance to the lower right corner of the area in the texture file to use for the fill layer More...
 
Color FillMouseOverColor [get, set]
 
Color FillPressedColor [get, set]
 
Color FillFocusColor [get, set]
 

Detailed Description

Represents a custom style for a GUI button

Member Function Documentation

◆ Clone()

ButtonStyle OmegaGUI.Model.ButtonStyle.Clone ( )
inline

Creates a shallow copy of this button style. You need to call Generate on it before it can be used for rendering.

Returns
The cloned button style

Property Documentation

◆ ButtonTextureLocation

Point OmegaGUI.Model.ButtonStyle.ButtonTextureLocation = new Point(0, 0)
getset

The upper left corner of the area in the texture file to use for the button layer

◆ ButtonTextureSize

Size OmegaGUI.Model.ButtonStyle.ButtonTextureSize = new Size(136, 54)
getset

The distance to the lower right corner of the area in the texture file to use for the button layer

◆ FillTextureLocation

Point OmegaGUI.Model.ButtonStyle.FillTextureLocation = new Point(136, 0)
getset

The upper left corner of the area in the texture file to use for the fill layer

◆ FillTextureSize

Size OmegaGUI.Model.ButtonStyle.FillTextureSize = new Size(252, 54)
getset

The distance to the lower right corner of the area in the texture file to use for the fill layer

◆ Name

string OmegaGUI.Model.ButtonStyle.Name
getset

Unique name for identifying this button style

◆ TextureFile

string OmegaGUI.Model.ButtonStyle.TextureFile = "base.png"
getset

The file containing the texture for this button style


The documentation for this class was generated from the following file: