OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | Package Functions | Package 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)
 

Package Functions

void Generate ()
 

Package Attributes

Dialog Parent
 The dialog containing this button style More...
 
Element ButtonElement
 

Properties

string Name [get, set]
 Unique name for identifying this button style More...
 
string TextureFile [get, set]
 The file containing the texture for this button style More...
 
Point ButtonTextureLocation [get, set]
 The upper left corner of the area in the texture file to use for the button layer More...
 
Size ButtonTextureSize = new Point(0, 0) [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 = new Size(136, 54) [get, set]
 
Color ButtonPressedColor [get, set]
 
Color TextNormalColor [get, set]
 
Color TextMouseOverColor [get, set]
 
Point FillTextureLocation [get, set]
 The upper left corner of the area in the texture file to use for the fill layer More...
 
Size FillTextureSize = new Point(136, 0) [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 = new Size(252, 54) [get, set]
 
Color FillPressedColor [get, set]
 
Color FillFocusColor [get, set]
 

Detailed Description

Represents a custom style for a GUI button

Member Function Documentation

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

Member Data Documentation

Dialog OmegaGUI.Model.ButtonStyle.Parent
package

The dialog containing this button style

Property Documentation

Point OmegaGUI.Model.ButtonStyle.ButtonTextureLocation
getset

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

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

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

Point OmegaGUI.Model.ButtonStyle.FillTextureLocation
getset

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

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

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

string OmegaGUI.Model.ButtonStyle.Name
getset

Unique name for identifying this button style

string OmegaGUI.Model.ButtonStyle.TextureFile
getset

The file containing the texture for this button style


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