FOperatingSystemWidgetDrawer
#include <OperatingSystemSimulator/Public/OperatingSystemWidgetDrawer.h>class FOperatingSystemWidgetDrawerDefined in OperatingSystemWidgetDrawer.h:16
Inherits:
NotThreadSafe >
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class FOperatingSystemWidgetDrawer["FOperatingSystemWidgetDrawer"]
class TSharedFromThis__FOperatingSystemWidgetDrawer__ESPMode__NotThreadSafe["TSharedFromThis< FOperatingSystemWidgetDrawer, ESPMode::NotThreadSafe >"]
TSharedFromThis__FOperatingSystemWidgetDrawer__ESPMode__NotThreadSafe <|-- FOperatingSystemWidgetDrawer
Class detail
Section titled “Class detail”---
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.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
FOperatingSystemWidgetDrawer inline | ||
FOperatingSystemWidgetDrawer explicit | ||
void | SetTargetTexture | Sets the target texture for the operating system widget drawer to render onto. |
bool | DrawWidget const | Draws a user widget onto the target texture using the operating system widget drawer. |
FOperatingSystemWidgetDrawer
Section titled “FOperatingSystemWidgetDrawer”inline
inline FOperatingSystemWidgetDrawer()Defined in OperatingSystemWidgetDrawer.h:23
Section titled “Defined in OperatingSystemWidgetDrawer.h:23”FOperatingSystemWidgetDrawer
Section titled “FOperatingSystemWidgetDrawer”explicit
explicit FOperatingSystemWidgetDrawer(const bool bUseGamma)Defined in OperatingSystemWidgetDrawer.h:29
References
Section titled “References”OS_LOG
SetTargetTexture
Section titled “SetTargetTexture”void SetTargetTexture(UTextureRenderTarget2D * TargetTexture)Defined in OperatingSystemWidgetDrawer.h:38 Sets the target texture for the operating system widget drawer to render onto.
Parameters
Section titled “Parameters”TargetTextureThe target texture to set. It should be a UTextureRenderTarget2D object.
References
Section titled “References”DrawWidget
Section titled “DrawWidget”const
bool DrawWidget(UUserWidget * Widget, const bool bDeferUpdate, const float DeltaTime) constDefined in OperatingSystemWidgetDrawer.h:49 Draws a user widget onto the target texture using the operating system widget drawer.
Parameters
Section titled “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
Section titled “Returns”True if the widget was successfully drawn onto the target texture, false otherwise.
References
Section titled “References”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
FWidgetRenderer * | WidgetRenderer | |
TWeakObjectPtr< UTextureRenderTarget2D > | TargetTextureWeakPtr |
WidgetRenderer
Section titled “WidgetRenderer”FWidgetRenderer * WidgetRendererDefined in OperatingSystemWidgetDrawer.h:18
Referenced by
Section titled “Referenced by”TargetTextureWeakPtr
Section titled “TargetTextureWeakPtr”TWeakObjectPtr< UTextureRenderTarget2D > TargetTextureWeakPtrDefined in OperatingSystemWidgetDrawer.h:19