Navigation
API > API/Editor > API/Editor/CurveEditor
Wraps a simple multicast delegate with a counter.
While the counter is positive, the event cannot be broadcast. Once the counter reaches 0, the event is broadcast.
This is a reusable optimization that is useful to change-type events.
| Name | FSuppressibleEventBroadcaster |
| Type | class |
| Header File | /Engine/Source/Editor/CurveEditor/Public/Misc/SuppressibleEventBroadcaster.h |
| Include Path | #include "Misc/SuppressibleEventBroadcaster.h" |
Syntax
class FSuppressibleEventBroadcaster
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bWasEventSuppressed | bool | This is set to true when Broadcast is called while SuppressionCount > 0. | Misc/SuppressibleEventBroadcaster.h | |
| Event | FSimpleMulticastDelegate | The event to broadcast | Misc/SuppressibleEventBroadcaster.h | |
| SuppressionCount | int32 | When 0, the event can be broadcast. | Misc/SuppressibleEventBroadcaster.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Broadcast() |
Misc/SuppressibleEventBroadcaster.h | ||
void DecrementSuppressionCount() |
Misc/SuppressibleEventBroadcaster.h | ||
void IncrementSuppressionCount() |
Misc/SuppressibleEventBroadcaster.h | ||
FSimpleMulticastDelegate & OnChanged() |
Misc/SuppressibleEventBroadcaster.h |