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

This class is responsible for rendering user widgets onto a target texture. More...

#include "OperatingSystemWidgetDrawer.h"

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

Public Member Functions

 FOperatingSystemWidgetDrawer ()
 
 FOperatingSystemWidgetDrawer (const bool bUseGamma)
 
 ~FOperatingSystemWidgetDrawer ()
 
void SetTargetTexture (UTextureRenderTarget2D *TargetTexture)
 Sets the target texture for the operating system widget drawer to render onto.
 
bool DrawWidget (UUserWidget *Widget, const bool bDeferUpdate, const float DeltaTime) const
 Draws a user widget onto the target texture using the operating system widget drawer.
 

Detailed Description

This class is responsible for rendering user widgets onto a target texture.

Constructor & Destructor Documentation

◆ FOperatingSystemWidgetDrawer() [1/2]

FOperatingSystemWidgetDrawer::FOperatingSystemWidgetDrawer ( )
inline

◆ FOperatingSystemWidgetDrawer() [2/2]

FOperatingSystemWidgetDrawer::FOperatingSystemWidgetDrawer ( const bool bUseGamma)
explicit

◆ ~FOperatingSystemWidgetDrawer()

FOperatingSystemWidgetDrawer::~FOperatingSystemWidgetDrawer ( )

Member Function Documentation

◆ DrawWidget()

bool FOperatingSystemWidgetDrawer::DrawWidget ( UUserWidget * Widget,
const bool bDeferUpdate,
const float DeltaTime ) const

Draws a user widget onto the target texture using the operating system widget drawer.

Parameters
WidgetThe user widget to draw. It should be a valid UUserWidget object.
bDeferUpdateWhether to defer updating the widget. If true, the widget will be updated on the next tick.
DeltaTimeThe time passed since the last frame in seconds.
Returns
True if the widget was successfully drawn onto the target texture, false otherwise.

◆ SetTargetTexture()

void FOperatingSystemWidgetDrawer::SetTargetTexture ( UTextureRenderTarget2D * TargetTexture)

Sets the target texture for the operating system widget drawer to render onto.

Parameters
TargetTextureThe target texture to set. It should be a UTextureRenderTarget2D object.

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