Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.UI.vxUIArtProvider< T > Class Template Referenceabstract

Art provider base class which holds common elements such as Padding, Highlight colour etc... More...

Public Member Functions

 vxUIArtProvider ()
 Initializes a new instance of the T:VerticesEngine.UI.vxArtProviderBase class.
 
virtual void SetBounds ()
 Many sizes and positions are set based off of screensize, although this can change if a user changes the resolution settings. Therefore, this SetBounds() method will be where the sizes will be set.
 
void Draw (T control)
 

Public Attributes

Vector4 Margin
 Gets or sets the margin.
 
Vector2 Padding
 Gets or sets the padding.
 
float Alpha
 The alpha transparency value.
 
bool UseSpriteSheet = false
 This controls whether or not the control should be drawn using regions of the GUI Sprite Sheet.
 
Rectangle SpriteSheetRegion
 The sprite sheet region.
 
Rectangle TitleSpriteSheetRegion = new Rectangle(0, 0, 4, 4)
 The title sprite sheet region.
 
int BorderWidth
 Gets or sets the width of the border.
 
bool DoBorder
 Gets or sets a value indicating whether this VerticesEngine.UI.vxArtProviderBase do border.
 
int DefaultWidth
 Gets or sets the default width.
 
int DefaultHeight
 The default height.
 
vxUIControlTheme Theme
 The colour theme for this specific Art Provider.
 

Properties

float Opacity [get, set]
 Gets or sets the opacity of the current GUI Item.
 
virtual SpriteFont Font [get]
 Text Of GUI Item.
 
Texture2D DefaultTexture [get]
 Gets the default texture.
 

Detailed Description

Art provider base class which holds common elements such as Padding, Highlight colour etc...

Type Constraints
T :vxUIControl 

Constructor & Destructor Documentation

◆ vxUIArtProvider()

Initializes a new instance of the T:VerticesEngine.UI.vxArtProviderBase class.

Parameters
EngineEngine.

Member Data Documentation

◆ BorderWidth

int VerticesEngine.UI.vxUIArtProvider< T >.BorderWidth

Gets or sets the width of the border.

The width of the border.

◆ DefaultWidth

int VerticesEngine.UI.vxUIArtProvider< T >.DefaultWidth

Gets or sets the default width.

The default width.

◆ DoBorder

Gets or sets a value indicating whether this VerticesEngine.UI.vxArtProviderBase do border.

true if do border; otherwise, false.

◆ Margin

Vector4 VerticesEngine.UI.vxUIArtProvider< T >.Margin

Gets or sets the margin.

The margin.

◆ Padding

Vector2 VerticesEngine.UI.vxUIArtProvider< T >.Padding

Gets or sets the padding.

The padding.

Property Documentation

◆ DefaultTexture

Texture2D VerticesEngine.UI.vxUIArtProvider< T >.DefaultTexture
get

Gets the default texture.

The default texture.

◆ Opacity

float VerticesEngine.UI.vxUIArtProvider< T >.Opacity
getset

Gets or sets the opacity of the current GUI Item.

The opacity.


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