IOperatingSystemThemeInterface
#include <OperatingSystemSimulator/Public/Interfaces/OperatingSystemThemeInterface.h>class IOperatingSystemThemeInterfaceDefined in OperatingSystemThemeInterface.h:26
Subclassed by:
UOperatingSystemButtonWidget,UOperatingSystemWidgetBase
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class IOperatingSystemThemeInterface["IOperatingSystemThemeInterface"]
class UOperatingSystemButtonWidget["UOperatingSystemButtonWidget"]
IOperatingSystemThemeInterface <|-- UOperatingSystemButtonWidget
class UOperatingSystemWidgetBase["UOperatingSystemWidgetBase"]
IOperatingSystemThemeInterface <|-- UOperatingSystemWidgetBase
An interface class for handling operating system theme changes in widgets.
This interface provides a blueprint event, K2_OnOperatingSystemThemeChanged(), to handle theme changes in widgets that implement this interface.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
void | K2_OnOperatingSystemThemeChanged | Callback function for handling theme changes in the operating system widget. |
K2_OnOperatingSystemThemeChanged
Section titled “K2_OnOperatingSystemThemeChanged”void K2_OnOperatingSystemThemeChanged(UOperatingSystemSettingModule_Theme * ThemePayload)Defined in OperatingSystemThemeInterface.h:46 Callback function for handling theme changes in the operating system widget.
This function is invoked when the operating system theme is changed. It takes a ThemePayload parameter, which is an instance of the UOperatingSystemSettingModule_Theme class. ThemePayload contains information about the new theme that is being applied.
The function first checks if there are any blueprint events registered for handling theme changes. If there are, it calls the Execute_K2_OnOperatingSystemThemeChanged() function, passing this widget instance and the ThemePayload.
Parameters
Section titled “Parameters”ThemePayloadA pointer to the theme payload object that contains information about the new theme.