Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
UOperatingSystemWindowWidgetBase Class Reference

#include "OperatingSystemWindowWidgetBase.h"

Inheritance diagram for UOperatingSystemWindowWidgetBase:
[legend]
Collaboration diagram for UOperatingSystemWindowWidgetBase:
[legend]

Public Member Functions

 UOperatingSystemWindowWidgetBase ()
 
void SetParentWindow (UDraggableWindow *NewWindow)
 
void BringWindowToFront () const
 Brings the window associated with this widget to the front of the z-order.
 
- Public Member Functions inherited from UOperatingSystemWidgetBase
 UOperatingSystemWidgetBase ()
 
void SetOperatingSystem (UOperatingSystem *NewOS)
 
void DestroyOperatingSystemBaseWidget ()
 Destroys the operating system base widget.
 
void ThemeChanged (UOperatingSystemSettingModule_Theme *ThemePayload)
 Callback function for handling theme changes in the operating system widget.
 
- Public Member Functions inherited from IOperatingSystemThemeInterface
void K2_OnOperatingSystemThemeChanged (UOperatingSystemSettingModule_Theme *ThemePayload)
 Callback function for handling theme changes in the operating system widget.
 

Protected Member Functions

virtual FReply NativeOnMouseButtonDown (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override
 
virtual void NativeOnAddedToFocusPath (const FFocusEvent &InFocusEvent) override
 
virtual void OnDestroyWidget () 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.
 
- Protected Member Functions inherited from UOperatingSystemWidgetBase
virtual void NativeConstruct () override
 
void K2_OnSetOperatingSystem ()
 Blueprint event called when the operating system is set.
 

Protected Attributes

TObjectPtr< UDraggableWindowParentWindow
 
- Protected Attributes inherited from UOperatingSystemWidgetBase
TObjectPtr< UOperatingSystemParentOS
 A pointer to the parent operating system of the operating system widget.
 

Detailed Description

Inherit from this if the widget requires a parent window For example: File widget and Program widget.

Constructor & Destructor Documentation

◆ UOperatingSystemWindowWidgetBase()

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

See also
UOperatingSystemWindowWidgetBase
Here is the call graph for this function:

Member Function Documentation

◆ BringWindowToFront()

void UOperatingSystemWindowWidgetBase::BringWindowToFront ( ) const

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.

Here is the caller graph for this function:

◆ K2_OnDestroyWidget()

void UOperatingSystemWindowWidgetBase::K2_OnDestroyWidget ( )
protected

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.

Note
This method is implemented as a BlueprintImplementableEvent, which means it can be overridden in Blueprints and additional functionality can be added.
See also
UOperatingSystemWindowWidgetBase
UOperatingSystemWindowWidgetBase::K2_OnDestroyWidget
UOperatingSystemWindowWidgetBase::OnDestroyWidget
Here is the caller graph for this function:

◆ K2_OnSetWindow()

void UOperatingSystemWindowWidgetBase::K2_OnSetWindow ( )
protected

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
UDraggableWindow::SetWidget
UOperatingSystemWindowWidgetBase::SetParentWindow
Note
This method is implemented as a BlueprintImplementableEvent, which means it can be overridden in Blueprints and additional functionality can be added.
Here is the caller graph for this function:

◆ NativeOnAddedToFocusPath()

void UOperatingSystemWindowWidgetBase::NativeOnAddedToFocusPath ( const FFocusEvent & InFocusEvent)
overrideprotectedvirtual
Here is the call graph for this function:

◆ NativeOnMouseButtonDown()

FReply UOperatingSystemWindowWidgetBase::NativeOnMouseButtonDown ( const FGeometry & InGeometry,
const FPointerEvent & InMouseEvent )
overrideprotectedvirtual
Here is the call graph for this function:

◆ OnDestroyWidget()

void UOperatingSystemWindowWidgetBase::OnDestroyWidget ( )
overrideprotectedvirtual

This method is called before the widget is destroyed.

Reimplemented from UOperatingSystemWidgetBase.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetParentWindow()

void UOperatingSystemWindowWidgetBase::SetParentWindow ( UDraggableWindow * NewWindow)

Sets the parent window for the widget.

Parameters
NewWindowPointer to the parent window as an instance of UDraggableWindow.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ParentWindow

TObjectPtr<UDraggableWindow> UOperatingSystemWindowWidgetBase::ParentWindow
protected

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
UDraggableWindow
OperatingSystemWindowWidgetBase.h

The documentation for this class was generated from the following files: