A static UIElement with a TextContent, border and optional texture
More...
|
| | UIElement (int rows, int cols) |
| | Initializes a new instance of the T:MB2D.UI.UIElement class. Sets default property values More...
|
| |
| void | DrawBorder (SpriteBatch spriteBatch) |
| | Draws the elements border to the window. Skips sides that have color set to Color.Transparent More...
|
| |
| UIContent | Content [get] |
| | Gets the UIContent of the element, only available in container elements More...
|
| |
| Vector2 | Size [get] |
| | Gets the column and row count of the element More...
|
| |
| Rectangle | BoundingBox [get] |
| | Gets the bounding box of this element More...
|
| |
| bool | Fill [get, set] |
| | Gets or sets a value that indicates the element should be stretched or shrunk to fill its parents bounds exactly More...
|
| |
| Color | BackgroundColor [get, set] |
| | Gets or sets the color of the elements background. More...
|
| |
| string | TextContent [get, set] |
| | Gets or sets the string rendered by the element. More...
|
| |
| Color | TextColor [get, set] |
| | Gets or sets the current color of the text. More...
|
| |
| SpriteFont | Font [get, set] |
| | Gets or sets the font used in rendering the elements TextContent More...
|
| |
| bool | BorderDisplayed [get, set] |
| | Gets or sets a value indicating whether this T:MB2D.UI.UIElement has itsborder displayed. More...
|
| |
| int | BorderWidth [get, set] |
| | Gets or sets the width of the border. More...
|
| |
| Color | BorderColor [get, set] |
| | Gets or sets the color of the border. More...
|
| |
| Color | BorderTopColor [get, set] |
| | Gets or sets the color of the border top. More...
|
| |
| Color | BorderRightColor [get, set] |
| | Gets or sets the color of the border right. More...
|
| |
| Color | BorderBottomColor [get, set] |
| | Gets or sets the color of the border bottom. More...
|
| |
| Color | BorderLeftColor [get, set] |
| | Gets or sets the color of the border left. More...
|
| |
| string | Tag [get, set] |
| | Gets or sets the tag used to quickly access this element and uniquely identify it. More...
|
| |
A static UIElement with a TextContent, border and optional texture
§ Label()
Initializes a new instance of the T:MB2D.UI.Label class.
§ Draw()
| override void MB2D.UI.Label.Draw |
( |
SpriteBatch |
spriteBatch | ) |
|
|
inlinevirtual |
Draw the label to the window.
- Parameters
-
| spriteBatch | Sprite batch to draw to. |
Reimplemented from MB2D.UI.UIElement.
§ Update()
| override void MB2D.UI.Label.Update |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: