Data Attributes - LiruJ/GuiCookie GitHub Wiki

Data Attributes

In order for GuiCookie to read and use XML files, it has to understand the data it is reading. The classes and enums on this page are all used to parse and store data from XML attributes.

GuiCookie Types

MonoGame Types

GuiCookie uses LiruGameHelperMonoGame, which includes a variety of parsers used to read MonoGame types from string.

Enum Types

These enum types are used throughout GuiCookie in various points and can be used for custom controllers and components. Enums are automatically handled by GuiCookie and do not need custom parsers or classes, so each enum is just listed here with its general usage.

AspectRatioMode

Used by the AspectRatioFitter to determine how to fit the element to an aspect.

Axes

Used by the Space structure to determine which axes are relative. This is a flag enum.

ClickType

Used by the MouseHandler component to determine how mouse inputs are used.

ClippingMode

Used by the ImageBlock component to determine how its image should be clipped.

Direction

Used in various places to determine the direction of something, usually a layout.

DirectionMask

Used in various places to describe a combination of directions, for example; the resize direction of an element. This is a flag enum.

InitialisationState

Used to save the state of an element's initialisation, basically which initialisation functions have run. This is a flag enum.

Piece

Used to refer to a corner, edge, or centre of a rectangle. Mainly used in the NineSlice structure.

SideMask

Used to refer to the edges of a rectangle. Mainly used in the Sides structure. This is a flag enum.

⚠️ **GitHub.com Fallback** ⚠️