RhythmGame 1.4.3
Loading...
Searching...
No Matches
Signals | Public Member Functions | Properties | List of all members
resource_managers::Vars Class Referencefinal

#include <Vars.h>

Inheritance diagram for resource_managers::Vars:
Inheritance graph
[legend]
Collaboration diagram for resource_managers::Vars:
Collaboration graph
[legend]

Signals

void generalVarsChanged ()
 
void themeVarsChanged ()
 

Public Member Functions

 Vars (const Profile *profile, QMap< QString, qml_components::ThemeFamily > availableThemeFamilies, QList< QString > assetsPaths, QObject *parent=nullptr)
 
 ~Vars () override
 
auto getGeneralVars () -> GeneralVars *
 
auto getThemeVars () const -> QQmlPropertyMap *
 

Properties

resource_managers::GeneralVars * generalVars
 The general variables management object of the profile.
 
QQmlPropertyMap * themeVars = support::createQmlPropertyMap(this)
 The theme variables for all loaded themes.
 

Constructor & Destructor Documentation

◆ Vars()

resource_managers::Vars::Vars ( const Profile *  profile,
QMap< QString, qml_components::ThemeFamily >  availableThemeFamilies,
QList< QString >  assetsPaths,
QObject *  parent = nullptr 
)
explicit

◆ ~Vars()

resource_managers::Vars::~Vars ( )
override

Member Function Documentation

◆ generalVarsChanged

void resource_managers::Vars::generalVarsChanged ( )
signal

◆ getGeneralVars()

auto resource_managers::Vars::getGeneralVars ( ) -> GeneralVars*

◆ getThemeVars()

auto resource_managers::Vars::getThemeVars ( ) const -> QQmlPropertyMap*

◆ themeVarsChanged

void resource_managers::Vars::themeVarsChanged ( )
signal

Property Documentation

◆ generalVars

resource_managers::GeneralVars* resource_managers::Vars::generalVars
read

The general variables management object of the profile.

◆ themeVars

QQmlPropertyMap * resource_managers::Vars::themeVars = support::createQmlPropertyMap(this)
read

The theme variables for all loaded themes.

This is a dynamic object that contains a map of maps of maps. In QML, you can access vars like this: themeVars[screen][themeName].varName

See also
qml_components::QmlUtils::themeName

The documentation for this class was generated from the following files: