Docs / UI

Glossary: RootElement Style

The properties, methods and events of RootElement, in alphabetical order.

Color legend plain property

RootElement is the top of the element tree. BorrowedTorchUI creates it (you can’t create one yourself) and gives it as ui.RootElement; ui.AddElementToRoot(element) adds an item to it. It has the size of the game window in units (the back buffer size divided by the display scale) and follows the back buffer when the window is resized, or takes the size given to ApplyGameWindowSize. It can’t be resizable and it draws no background of its own, so give a full-screen panel your background color instead.

RootElement derives from BaseElement and has its members too. The base element page shows it in context, with code and screenshots.

Names are colored by what they are: a plain property, a method, an event or a dependency property, which a style, a binding or an animation can set.

Properties

GeneralMouseCursorsSet 🠆

MouseCursorsSet · Static. The cursors of every element of this style type; null (the default) falls back to DefaultMouseCursorsSet.

GeneralStyle 🠆

RootElementStyle · Static. The style of every element of this style type. It starts as a copy of the framework defaults; changing one of its properties updates every such element, a property it leaves unset takes its default.

MouseCursorsSet 🠆

MouseCursorsSet · Read-only. The cursors the element shows: its override, else the set given to the control it is a part of, else its type’s general set, else DefaultMouseCursorsSet.

MouseCursorsSetOverride 🠆

MouseCursorsSet · The cursors of this element only, passed on to its parts that have none of their own.

StyleOverride 🠆

RootElementStyle · A style for this element only, applied over the general style. Setting it to null takes its values back out.