Table of Contents

Namespace MagicUI.Elements

Classes

Button

A button element

CanvasLayout

A layout that places elements absolutely in screen space.

DynamicUniformGrid

A layout that places elements adjacent to each other in a grid with a dynamic number of rows/columns

GridLayout

A generic grid layout with user-specified rows and columns

Image

A simple image element

Panel

A container that overlays a single element on top of a background image. The background will always be scaled to surround the element. To have a Sprite scale without stretching its borders, use ToSlicedSprite(Texture2D, float, float, float, float) to create the sprite.

ProgressBar

A horizontal progress bar. Note that this element only manages the filling image and value, for a more visually complex progress bar (e.g. with a border), use a Panel (recommended) or GridLayout to overlay the progress bar on a border image.

Run

Represents a segment of text with optional formatting attributes like bold, italic, size, and color. Used within TextObject to create rich text with mixed formatting.

RunCollection

Represents a modifiable collection of Run objects used to create rich text with mixed formatting. When attached to a TextObject, changes to the collection automatically update the text display.

StackLayout

A layout that places elements adjacent to each other with optional spacing between each element

TextFormatter<T>

An element that formats an underlying TextObject according to a formatter for an immutable data type

TextInput

A text input element

TextObject

A text display element

Structs

GridDimension

A measure of a grid row/column with a unitt

Enums

GridUnit

Units of measure for grid rows and columns