#include "OperatingSystemSettingModule_Theme.h"
|
virtual OPERATINGSYSTEMSIMULATOR_API void | OnApplySetting (const FName &SettingIdentifier, UObject *Payload) |
| Apply a setting to the operating system setting module identified by the specified SettingIdentifier. This method applies a setting to the operating system setting module identified by the specified SettingIdentifier. The SettingIdentifier parameter represents the name of the setting identifier that will be applied. The Payload parameter is an optional payload object associated with the setting. If the Payload parameter is not provided, the setting module itself will be used as the payload.
|
|
virtual OPERATINGSYSTEMSIMULATOR_API void | OnCreated () |
| This method is called when the operating system setting module is created.
|
|
void | K2_OnCreated () |
| Blueprint implementable event triggered when an instance of OperatingSystemSettingModule is created.
|
|
void | K2_OnApplySetting (const FName &SettingIdentifier, UObject *Payload) |
| Called when a setting is being applied.
|
|
TSoftClassPtr< UOperatingSystemSettingModuleWidget > | WidgetClass |
|
UOperatingSystemSettingModule_Theme is a subclass of UOperatingSystemSettingModule that provides functionality for managing and retrieving theme-related settings.
◆ UOperatingSystemSettingModule_Theme()
UOperatingSystemSettingModule_Theme::UOperatingSystemSettingModule_Theme |
( |
| ) |
|
◆ FindColorByName()
bool UOperatingSystemSettingModule_Theme::FindColorByName |
( |
const FName | Name, |
|
|
FLinearColor & | OutColor ) const |
Gets the color by name from the Colors TMap. This is particularly useful if you added your own custom colors.
- Parameters
-
Name | Name of the color to find. |
OutColor | Outputs the color or Black if invalid. |
- Returns
- True if the given color name was found in Colors Map.
◆ GetPrimaryAccentColor()
FLinearColor UOperatingSystemSettingModule_Theme::GetPrimaryAccentColor |
( |
const bool | bInvert = false | ) |
const |
Returns the primary accent color.
- Parameters
-
bInvert | Get color of inverted theme. If current theme is dark, this will return color for light theme. |
- Returns
- Primary accent color of the current theme as defined in Colors parameter.
◆ GetPrimaryThemeColor()
FLinearColor UOperatingSystemSettingModule_Theme::GetPrimaryThemeColor |
( |
const bool | bInvert = false | ) |
const |
Returns the primary theme color.
- Parameters
-
bInvert | Get color of inverted theme. If current theme is dark, this will return color for light theme. |
- Returns
- Primary color of the current theme as defined in Colors parameter.
◆ GetSecondaryAccentColor()
FLinearColor UOperatingSystemSettingModule_Theme::GetSecondaryAccentColor |
( |
const bool | bInvert = false | ) |
const |
Returns the secondary accent color.
- Parameters
-
bInvert | Get color of inverted theme. If current theme is dark, this will return color for light theme. |
- Returns
- Secondary accent color of the current theme as defined in Colors parameter.
◆ GetSecondaryThemeColor()
FLinearColor UOperatingSystemSettingModule_Theme::GetSecondaryThemeColor |
( |
const bool | bInvert = false | ) |
const |
Returns the secondary theme color.
- Parameters
-
bInvert | Get color of inverted theme. If current theme is dark, this will return color for light theme. |
- Returns
- Secondary color of the current theme as defined in Colors parameter.
◆ GetThemeChangeEventName()
static FName UOperatingSystemSettingModule_Theme::GetThemeChangeEventName |
( |
| ) |
|
|
inlinestatic |
A helper static function for getting the event when changing themes. You can listen to this event name via device messenger.
- Returns
- The event name when changing theme.
◆ IsDarkTheme()
FORCEINLINE bool UOperatingSystemSettingModule_Theme::IsDarkTheme |
( |
| ) |
const |
|
inline |
Checks if the current theme is dark or not. If this function returns false, it means current theme is light.
- Returns
- True if the current theme is dark.
◆ SetTheme()
Sets the current theme.
- Parameters
-
NewTheme | New theme to set. |
The documentation for this class was generated from the following files: