Skip to content

IOperatingSystemThemeInterface

#include <OperatingSystemSimulator/Public/Interfaces/OperatingSystemThemeInterface.h>
class IOperatingSystemThemeInterface

Defined in OperatingSystemThemeInterface.h:26

Subclassed by: UOperatingSystemButtonWidget, UOperatingSystemWidgetBase

---
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.

ReturnNameDescription
voidK2_OnOperatingSystemThemeChangedCallback function for handling theme changes in the operating system widget.

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.

  • ThemePayload A pointer to the theme payload object that contains information about the new theme.