UiLoader
Inherited: None
Description
The UiLoader class is tasked with loading user interface (UI) data from a buffer (likely an XML or similar format), managing the UI document, applying styles to the UI elements, and maintaining a hierarchy of widgets. This class appears to be part of a larger UI framework that supports widget-based layouts.
Public Methods
document () const |
|
std::string |
documentStyle () const |
void |
fromBuffer (const std::string & buffer) |
void |
setStyleSheet (StyleSheet * style) |
void |
setUiDocument (UiDocument * document) |
styleSheet () const |
Static Methods
None
Methods Description
UiDocument * UiLoader::document () const
Returns the UiDocument associated with this UiLoader, which contains the structure of the loaded UI.
std::string UiLoader::documentStyle () const
Returns the raw document style (as a string), which was parsed from the UI document.
void UiLoader::fromBuffer (std::string & buffer)
This function loads the UI data from an XML buffer (likely containing UI element definitions and style information).
void UiLoader::setStyleSheet (StyleSheet * style)
Sets a style sheet to the hierarhy of widgets.
See also *style*Sheet().
void UiLoader::setUiDocument (UiDocument * document)
Sets the UI document to the provided document pointer and reloads the UI from the document’s data buffer by calling fromBuffer().
StyleSheet * UiLoader::styleSheet () const
Returns the style sheet assigned to the hierarchy of widgets. This contains the visual styles (like colors, margins, fonts, etc.) that should be applied to the widgets.
See also setStyleSheet().