SGraphBar

A graph bar widget.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

TaskGraph

Header

/Engine/Source/Developer/TaskGraph/Public/SGraphBar.h

Include

#include "SGraphBar.h"

Syntax

class SGraphBar : public SLeafWidget

Remarks

A graph bar widget.

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Construct the widget

Public function

FVisualizerE...

 

GetEvents()

Gets all events this graph will draw

Public function Const

float

 

GetOffset()

Gets the graph's offset value

Public function

void

 

SetEvents

(
    const FVisualizerEventsArray& InEv...,
    double InStartTime,
    double InTotalTime
)

Adds profiler events to draw as bars

Public function

void

 

SetOffset

(
    float InOffset
)

Sets the graph's offset by which all graph bars should be moved

Public function

void

 

SetZoom

(
    float InZoom
)

Sets the graph's zoom level

Overridden from SWidget

Name Description

Public function Virtual Const

FVector2D

 

ComputeDesiredSize

(
    float
)

Overwritten from SWidget.

Public function Virtual

FReply

 

OnMouseButtonDown

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it.

Public function Virtual

FReply

 

OnMouseMove

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

The system calls this method to notify the widget that a mouse moved within it.

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

Overwritten from SWidget.

Public function Virtual

void

 

Tick

(
    const FGeometry& AllottedGeometry,
    const double InCurrentTime,
    const float InDeltaTime
)

Ticks this widget with Geometry.

Classes

Name

Description

Public struct

FArguments

Typedefs

Name

Description

FOnGeometryChanged

Delegate used allotted gemetry changes

FOnSelectionChanged

Constants

Name

Description

ColorPalette

Color palette for bars coloring