Navigation
API > API/Developer > API/Developer/ProfileVisualizer
A graph bar widget.
| Name | SGraphBar |
| Type | class |
| Header File | /Engine/Source/Developer/ProfileVisualizer/Public/SGraphBar.h |
| Include Path | #include "SGraphBar.h" |
Syntax
class SGraphBar : public SLeafWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SLeafWidget → SGraphBar
- FSlateControlledConstruction → SWidget → SLeafWidget → SGraphBar
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnGeometryChanged | TBaseDelegate_OneParam< void, FGeometry > | Delegate used allotted gemetry changes | SGraphBar.h |
| FOnSelectionChanged | TSlateDelegates< TSharedPtr< FVisualizerEvent > >::FOnSelectionChanged | SGraphBar.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ColorPalette | FColor | Color palette for bars coloring | SGraphBar.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BackgroundImage | const FSlateBrush * | Background image to use for the graph bar | SGraphBar.h | |
| Events | FVisualizerEventsArray | List of all events to draw | SGraphBar.h | |
| FillImage | const FSlateBrush * | Foreground image to use for the graph bar | SGraphBar.h | |
| LastGeometry | FGeometry | Last allotted geometry | SGraphBar.h | |
| LastHoveredEvent | int32 | Last hovered event index | SGraphBar.h | |
| Offset | float | Current offset of the graph | SGraphBar.h | |
| OnGeometryChanged | FOnGeometryChanged | Delegate called when the geometry changes | SGraphBar.h | |
| OnSelectionChanged | FOnSelectionChanged | Delegate to invoke when selection changes. | SGraphBar.h | |
| SelectedImage | const FSlateBrush * | Image to be used when drawing selected event | SGraphBar.h | |
| StartTime | double | Start time (0.0 - 1.0) | SGraphBar.h | |
| TotalTime | double | End time (0.0 - 1.0) | SGraphBar.h | |
| Zoom | float | Current zoom of the graph | SGraphBar.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector2D ComputeDesiredSize
(
float |
SGraphBar.h | ||
void Construct
(
const FArguments& InArgs |
Construct the widget | SGraphBar.h | |
FVisualizerEventsArray & GetEvents() |
Gets all events this graph will draw | SGraphBar.h | |
float GetOffset() |
Gets the graph's offset value | SGraphBar.h | |
virtual FReply OnMouseButtonDown
(
const FGeometry& MyGeometry, |
SGraphBar.h | ||
virtual FReply OnMouseMove
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse moved within it. | SGraphBar.h | |
virtual int32 OnPaint
(
const FPaintArgs& Args, |
SGraphBar.h | ||
void SetEvents
(
const FVisualizerEventsArray& InEvents, |
Adds profiler events to draw as bars | SGraphBar.h | |
void SetOffset
(
float InOffset |
Sets the graph's offset by which all graph bars should be moved | SGraphBar.h | |
void SetZoom
(
float InZoom |
Sets the graph's zoom level | SGraphBar.h | |
virtual void Tick
(
const FGeometry& AllottedGeometry, |
SGraphBar.h |