![]() |
Blamite Game Engine - Keystone
00313.05.23.21.2038.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Namespace containing functions for the Keystone theme component. More...
Functions | |
| KEYSTONE bool | LoadThemes () |
| Loads all themes from Qt and the keystone theme folders. More... | |
| KEYSTONE bool | ApplyTheme (std::string name) |
| Applies a new theme to the application. More... | |
| KEYSTONE std::vector< BlamEditorTheme > * | GetThemeList () |
| Retrieves the list of loaded themes. More... | |
| KEYSTONE BlamEditorTheme * | GetTheme (std::string name) |
| Retrieves a theme. More... | |
| KEYSTONE BlamEditorTheme * | GetActiveTheme () |
| Retrieves the currently selected theme. More... | |
| KEYSTONE void | UpdateActiveTheme (BlamEditorTheme *theme) |
| Updates the stored index of the current active theme. More... | |
| KEYSTONE void | AddReceiver (KeystoneThemeChangeReceiver *receiver) |
| Registers a new theme change receiver, which will be notified whenever the active theme changes. More... | |
| KEYSTONE void | RemoveReceiver (KeystoneThemeChangeReceiver *receiver) |
| Unregisters a theme change receiver. More... | |
Namespace containing functions for the Keystone theme component.
| void BlamKeystone::Themes::AddReceiver | ( | KeystoneThemeChangeReceiver * | receiver | ) |
Registers a new theme change receiver, which will be notified whenever the active theme changes.
| receiver | - The new receiver to add. |
| bool BlamKeystone::Themes::ApplyTheme | ( | std::string | name | ) |
Applies a new theme to the application.
| name | - The name of the theme to apply. |
true if the theme was applied, otherwise returns false. | BlamEditorTheme * BlamKeystone::Themes::GetActiveTheme | ( | ) |
Retrieves the currently selected theme.
nullptr is returned. | BlamEditorTheme * BlamKeystone::Themes::GetTheme | ( | std::string | name | ) |
Retrieves a theme.
| name | - The name of the desired theme. |
nullptr. | std::vector< BlamEditorTheme > * BlamKeystone::Themes::GetThemeList | ( | ) |
Retrieves the list of loaded themes.
| bool BlamKeystone::Themes::LoadThemes | ( | ) |
Loads all themes from Qt and the keystone theme folders.
true if all themes were loaded successfully, otherwise returns false. | void BlamKeystone::Themes::RemoveReceiver | ( | KeystoneThemeChangeReceiver * | receiver | ) |
Unregisters a theme change receiver.
The receiver will no longer receive theme change notifications.
| receiver | - The receiver to remove. |
| void BlamKeystone::Themes::UpdateActiveTheme | ( | BlamEditorTheme * | theme | ) |
Updates the stored index of the current active theme.
This is neccessary to ensure that GetActiveTheme returns the correct value.
| theme | - The currently active theme. |