UOperatingSystemWindowWidgetBase
#include <OperatingSystemSimulator/Public/Widgets/Common/OperatingSystemWindowWidgetBase.h>class UOperatingSystemWindowWidgetBaseDefined in OperatingSystemWindowWidgetBase.h:14
Inherits:
UOperatingSystemWidgetBaseSubclassed by:UOperatingSystemFileWidget,UOperatingSystemProgramWidget
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemWindowWidgetBase["UOperatingSystemWindowWidgetBase"]
class UOperatingSystemWidgetBase["UOperatingSystemWidgetBase"]
UOperatingSystemWidgetBase <|-- UOperatingSystemWindowWidgetBase
class UOperatingSystemFileWidget["UOperatingSystemFileWidget"]
UOperatingSystemWindowWidgetBase <|-- UOperatingSystemFileWidget
class UOperatingSystemProgramWidget["UOperatingSystemProgramWidget"]
UOperatingSystemWindowWidgetBase <|-- UOperatingSystemProgramWidget
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemWindowWidgetBase["UOperatingSystemWindowWidgetBase"]
class UDraggableWindow["UDraggableWindow"]
UOperatingSystemWindowWidgetBase *-- UDraggableWindow
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemWindowWidgetBase {
+UOperatingSystemWindowWidgetBase()
+SetParentWindow(UDraggableWindow *NewWindow)
+BringWindowToFront() const
+GetParentWindow() const UDraggableWindow() *
+ParentWindow : TObjectPtr< UDraggableWindow() >
+NativeOnMouseButtonDown(const FGeometry &InGeometry, const FPointer FReply
+NativeOnAddedToFocusPath(const FFocusEvent &InFocusEvent) override
+OnDestroyWidget() override
+K2_OnSetWindow()
+K2_OnDestroyWidget()
+bHasBlueprintOnSetWindow : uint8
+bHasBlueprintOnDestroyWidget : uint8
}
Inherit from this if the widget requires a parent window For example: File widget and Program widget.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemWindowWidgetBase | Constructor for the UOperatingSystemWindowWidgetBase class. This constructor initializes the ParentWindow member variable to nullptr. It also calls the IMPLEMENTED_IN_BP_LAMBDA macro and sets the bHasBlueprintOnSetWindow and bHasBlueprintOnDestroyWidget flags to false. | |
void | SetParentWindow | Sets the parent window for the widget. |
void | BringWindowToFront const | Brings the window associated with this widget to the front of the z-order. |
UDraggableWindow * | GetParentWindow const |
UOperatingSystemWindowWidgetBase
Section titled “UOperatingSystemWindowWidgetBase”UOperatingSystemWindowWidgetBase()Defined in OperatingSystemWindowWidgetBase.h:42 Constructor for the UOperatingSystemWindowWidgetBase class. This constructor initializes the ParentWindow member variable to nullptr. It also calls the IMPLEMENTED_IN_BP_LAMBDA macro and sets the bHasBlueprintOnSetWindow and bHasBlueprintOnDestroyWidget flags to false.
See also: UOperatingSystemWindowWidgetBase
References
Section titled “References”CHECK_IN_BPIMPLEMENTED_IN_BP_LAMBDAOnDestroyWidget
SetParentWindow
Section titled “SetParentWindow”void SetParentWindow(UDraggableWindow * NewWindow)Defined in OperatingSystemWindowWidgetBase.h:61 Sets the parent window for the widget.
Parameters
Section titled “Parameters”NewWindowPointer to the parent window as an instance of UDraggableWindow.
Referenced by
Section titled “Referenced by”References
Section titled “References”BringWindowToFront
Section titled “BringWindowToFront”const
void BringWindowToFront() constDefined in OperatingSystemWindowWidgetBase.h:70 Brings the window associated with this widget to the front of the z-order.
This method calls the BringWindowToFront method of the parent operating system to bring the window associated with this widget to the front of the z-order.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetParentWindow
Section titled “GetParentWindow”const
UDraggableWindow * GetParentWindow() constDefined in OperatingSystemWindowWidgetBase.h:72
References
Section titled “References”Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
TObjectPtr< UDraggableWindow > | ParentWindow | An instance of UOperatingSystemWindowWidgetBase represents a widget that requires a parent window. |
ParentWindow
Section titled “ParentWindow”TObjectPtr< UDraggableWindow > ParentWindowDefined in OperatingSystemWindowWidgetBase.h:32 An instance of UOperatingSystemWindowWidgetBase represents a widget that requires a parent window.
A Parent Window is an instance of UDraggableWindow that serves as the parent of the widget.
See also: UOperatingSystemWindowWidgetBase
See also: UDraggableWindow
See also: OperatingSystemWindowWidgetBase.h
Referenced by
Section titled “Referenced by”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
FReply | NativeOnMouseButtonDown virtual override | |
void | NativeOnAddedToFocusPath virtual override | |
void | OnDestroyWidget virtual override | This method is called before the widget is destroyed. |
void | K2_OnSetWindow | This method is called when the window associated with this widget is set. |
void | K2_OnDestroyWidget | This method is called when the widget is being destroyed. |
NativeOnMouseButtonDown
Section titled “NativeOnMouseButtonDown”virtual override
virtual FReply NativeOnMouseButtonDown(const FGeometry & InGeometry, const FPointerEvent & InMouseEvent) overrideDefined in OperatingSystemWindowWidgetBase.h:46
References
Section titled “References”NativeOnAddedToFocusPath
Section titled “NativeOnAddedToFocusPath”virtual override
virtual void NativeOnAddedToFocusPath(const FFocusEvent & InFocusEvent) overrideDefined in OperatingSystemWindowWidgetBase.h:47
References
Section titled “References”OnDestroyWidget
Section titled “OnDestroyWidget”virtual override
virtual void OnDestroyWidget() overrideDefined in OperatingSystemWindowWidgetBase.h:52 This method is called before the widget is destroyed.
Referenced by
Section titled “Referenced by”References
Section titled “References”Reimplements
Section titled “Reimplements”K2_OnSetWindow
Section titled “K2_OnSetWindow”void K2_OnSetWindow()Defined in OperatingSystemWindowWidgetBase.h:89 This method is called when the window associated with this widget is set.
This method is an event that is called when the window associated with this widget is set. It can be overridden in Blueprint to perform custom logic when the window is set.
See also: UDraggableWindow
See also: UDraggableWindow::SetWidget
See also: UOperatingSystemWindowWidgetBase::SetParentWindow
Referenced by
Section titled “Referenced by”K2_OnDestroyWidget
Section titled “K2_OnDestroyWidget”void K2_OnDestroyWidget()Defined in OperatingSystemWindowWidgetBase.h:103 This method is called when the widget is being destroyed.
This method is an event that is called when the widget is being destroyed. It can be overridden in Blueprint to perform custom logic before the widget is destroyed.
See also: UOperatingSystemWindowWidgetBase
See also: UOperatingSystemWindowWidgetBase::K2_OnDestroyWidget
See also: UOperatingSystemWindowWidgetBase::OnDestroyWidget
Referenced by
Section titled “Referenced by”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
uint8 | bHasBlueprintOnSetWindow | |
uint8 | bHasBlueprintOnDestroyWidget |
bHasBlueprintOnSetWindow
Section titled “bHasBlueprintOnSetWindow”uint8 bHasBlueprintOnSetWindowDefined in OperatingSystemWindowWidgetBase.h:18
Referenced by
Section titled “Referenced by”bHasBlueprintOnDestroyWidget
Section titled “bHasBlueprintOnDestroyWidget”uint8 bHasBlueprintOnDestroyWidgetDefined in OperatingSystemWindowWidgetBase.h:19