UOperatingSystemTaskbarButton
#include <OperatingSystemSimulator/Public/Widgets/Common/OperatingSystemTaskbarButton.h>class UOperatingSystemTaskbarButtonDefined in OperatingSystemTaskbarButton.h:20
Inherits:
UOperatingSystemWidgetBase
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemTaskbarButton["UOperatingSystemTaskbarButton"]
class UOperatingSystemWidgetBase["UOperatingSystemWidgetBase"]
UOperatingSystemWidgetBase <|-- UOperatingSystemTaskbarButton
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemTaskbarButton["UOperatingSystemTaskbarButton"]
class EOperatingSystemProgramViewState["EOperatingSystemProgramViewState"]
UOperatingSystemTaskbarButton ..> EOperatingSystemProgramViewState
class UOperatingSystemBaseProgram["UOperatingSystemBaseProgram"]
UOperatingSystemTaskbarButton *-- UOperatingSystemBaseProgram
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemTaskbarButton {
+UOperatingSystemTaskbarButton()
+RemoveFromTaskbar()
+ChangeTaskbarState(const EOperatingSystemProgramViewState NewS bool
+GetParentProgram() const UOperatingSystemBaseProgram() *
+GetCurrentState() const EOperatingSystemProgramViewState()
+CreateTaskbarButton(UOperatingSystemBaseProgram *OwningProgram) UOperatingSystemTaskbarButton() *
+CurrentState : EOperatingSystemProgramViewState()
+ParentProgram : TWeakObjectPtr< UOperatingSystemBaseProg
+ToggleState()
+K2_OnCreated()
+Internal_OnCreated()
+Internal_OnWindowBroughtToFront(UDraggableWindow *FocusedWindow)
}
Represents a taskbar button in the operating system.
UOperatingSystemTaskbarButton is an abstract class that represents a taskbar button in an operating system. It inherits from UOperatingSystemWidgetBase and provides functions and variables specific to the taskbar button.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemTaskbarButton | ||
void | RemoveFromTaskbar | |
bool | ChangeTaskbarState | Changes the state of the taskbar button to the specified state. |
UOperatingSystemBaseProgram * | GetParentProgram const | |
EOperatingSystemProgramViewState | GetCurrentState const inline | Returns the current state of the taskbar button. This method returns the current state of the taskbar button. |
UOperatingSystemTaskbarButton
Section titled “UOperatingSystemTaskbarButton”UOperatingSystemTaskbarButton()Defined in OperatingSystemTaskbarButton.h:41
Section titled “Defined in OperatingSystemTaskbarButton.h:41”RemoveFromTaskbar
Section titled “RemoveFromTaskbar”void RemoveFromTaskbar()Defined in OperatingSystemTaskbarButton.h:59
References
Section titled “References”ChangeTaskbarState
Section titled “ChangeTaskbarState”bool ChangeTaskbarState(const EOperatingSystemProgramViewState NewState)Defined in OperatingSystemTaskbarButton.h:74 Changes the state of the taskbar button to the specified state.
This method changes the state of the taskbar button to the specified state. If the current state and the new state are not the same, the method updates the current state, triggers the OnProgramWindowStateChanged event on the parent program, and returns true. If the current state and the new state are the same, the method does nothing and returns false.
Parameters
Section titled “Parameters”NewStateThe new state of the taskbar button.
Returns
Section titled “Returns”Returns true if the state was changed, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetParentProgram
Section titled “GetParentProgram”const
UOperatingSystemBaseProgram * GetParentProgram() constDefined in OperatingSystemTaskbarButton.h:109
References
Section titled “References”GetCurrentState
Section titled “GetCurrentState”const inline
inline EOperatingSystemProgramViewState GetCurrentState() constDefined in OperatingSystemTaskbarButton.h:118 Returns the current state of the taskbar button. This method returns the current state of the taskbar button.
Returns
Section titled “Returns”The current state of the taskbar button as an EOperatingSystemProgramViewState enum value.
See also: EOperatingSystemProgramViewState
Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemTaskbarButton * | CreateTaskbarButton static | Creates a taskbar button for the specified owning program. |
CreateTaskbarButton
Section titled “CreateTaskbarButton”static
static UOperatingSystemTaskbarButton * CreateTaskbarButton(UOperatingSystemBaseProgram * OwningProgram)Defined in OperatingSystemTaskbarButton.h:57 Creates a taskbar button for the specified owning program.
This method creates a taskbar button for the specified owning program. It returns a pointer to the created taskbar button.
Parameters
Section titled “Parameters”OwningProgramThe owning program for which the taskbar button will be created.
Returns
Section titled “Returns”A pointer to the created taskbar button. If the owning program’s taskbar button class is null, the method returns nullptr.
Referenced by
Section titled “Referenced by”References
Section titled “References”CreateFromSoftWidgetGetOperatingSystemGetTaskbarButtonClass
Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
EOperatingSystemProgramViewState | CurrentState | |
TWeakObjectPtr< UOperatingSystemBaseProgram > | ParentProgram | Represents the parent program associated with the taskbar button. It is a weak reference to a UOperatingSystemBaseProgram object. The parent program is the program to which the taskbar button belongs. |
CurrentState
Section titled “CurrentState”EOperatingSystemProgramViewState CurrentStateDefined in OperatingSystemTaskbarButton.h:27
Referenced by
Section titled “Referenced by”ParentProgram
Section titled “ParentProgram”TWeakObjectPtr< UOperatingSystemBaseProgram > ParentProgramDefined in OperatingSystemTaskbarButton.h:37 Represents the parent program associated with the taskbar button. It is a weak reference to a UOperatingSystemBaseProgram object. The parent program is the program to which the taskbar button belongs.
Referenced by
Section titled “Referenced by”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
void | ToggleState | Toggles the state of the taskbar button. If the current state is Focused or NotFocused, it will minimize the parent program. If the current state is Minimized or MinimizedAndNotFocused, it will restore the minimized program. |
void | K2_OnCreated | This method is called when the taskbar button is created. |
ToggleState
Section titled “ToggleState”void ToggleState()Defined in OperatingSystemTaskbarButton.h:88 Toggles the state of the taskbar button. If the current state is Focused or NotFocused, it will minimize the parent program. If the current state is Minimized or MinimizedAndNotFocused, it will restore the minimized program.
References
Section titled “References”CurrentStateFocusedParentOSParentProgram
K2_OnCreated
Section titled “K2_OnCreated”void K2_OnCreated()Defined in OperatingSystemTaskbarButton.h:105 This method is called when the taskbar button is created.
This method is an event that is called when the taskbar button is created. It is a BlueprintImplementableEvent, which means that it can be implemented in Blueprint subclasses of UOperatingSystemTaskbarButton to provide additional functionality. It is called after the taskbar button is created and initialized.
Referenced by
Section titled “Referenced by”Private Methods
Section titled “Private Methods”| Return | Name | Description |
|---|---|---|
void | Internal_OnCreated | |
void | Internal_OnWindowBroughtToFront |
Internal_OnCreated
Section titled “Internal_OnCreated”void Internal_OnCreated()Defined in OperatingSystemTaskbarButton.h:78
References
Section titled “References”Internal_OnWindowBroughtToFront
Section titled “Internal_OnWindowBroughtToFront”void Internal_OnWindowBroughtToFront(UDraggableWindow * FocusedWindow)Defined in OperatingSystemTaskbarButton.h:79
Referenced by
Section titled “Referenced by”References
Section titled “References”ChangeTaskbarStateFocusedParentProgram