Skip to content

FOperatingSystemWidgetDrawer

#include <OperatingSystemSimulator/Public/OperatingSystemWidgetDrawer.h>
class FOperatingSystemWidgetDrawer

Defined in OperatingSystemWidgetDrawer.h:16

Inherits: NotThreadSafe >

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemWidgetDrawer["FOperatingSystemWidgetDrawer"]
  class TSharedFromThis__FOperatingSystemWidgetDrawer__ESPMode__NotThreadSafe["TSharedFromThis< FOperatingSystemWidgetDrawer, ESPMode::NotThreadSafe >"]
  TSharedFromThis__FOperatingSystemWidgetDrawer__ESPMode__NotThreadSafe <|-- FOperatingSystemWidgetDrawer
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemWidgetDrawer {
    +FOperatingSystemWidgetDrawer()
    +FOperatingSystemWidgetDrawer(const bool bUseGamma)
    +SetTargetTexture(UTextureRenderTarget2D *TargetTexture)
    +DrawWidget(UUserWidget *Widget, const bool bDeferUpdat bool
    +WidgetRenderer : FWidgetRenderer *
    +TargetTextureWeakPtr : TWeakObjectPtr< UTextureRenderTarget2D >
  }

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

ReturnNameDescription
FOperatingSystemWidgetDrawer inline
FOperatingSystemWidgetDrawer explicit
voidSetTargetTextureSets the target texture for the operating system widget drawer to render onto.
boolDrawWidget constDraws a user widget onto the target texture using the operating system widget drawer.

inline

inline FOperatingSystemWidgetDrawer()

Defined in OperatingSystemWidgetDrawer.h:23

Section titled “Defined in OperatingSystemWidgetDrawer.h:23”

explicit

explicit FOperatingSystemWidgetDrawer(const bool bUseGamma)

Defined in OperatingSystemWidgetDrawer.h:29

  • OS_LOG

void SetTargetTexture(UTextureRenderTarget2D * TargetTexture)

Defined in OperatingSystemWidgetDrawer.h:38 Sets the target texture for the operating system widget drawer to render onto.

  • TargetTexture The target texture to set. It should be a UTextureRenderTarget2D object.

const

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

Defined in OperatingSystemWidgetDrawer.h:49 Draws a user widget onto the target texture using the operating system widget drawer.

  • Widget The user widget to draw. It should be a valid UUserWidget object.

  • bDeferUpdate Whether to defer updating the widget. If true, the widget will be updated on the next tick.

  • DeltaTime The time passed since the last frame in seconds.

True if the widget was successfully drawn onto the target texture, false otherwise.

ReturnNameDescription
FWidgetRenderer *WidgetRenderer
TWeakObjectPtr< UTextureRenderTarget2D >TargetTextureWeakPtr

FWidgetRenderer * WidgetRenderer

Defined in OperatingSystemWidgetDrawer.h:18


TWeakObjectPtr< UTextureRenderTarget2D > TargetTextureWeakPtr

Defined in OperatingSystemWidgetDrawer.h:19