ImFusion C++ SDK 4.4.0
ImFusion::Animations::UniqueId Struct Reference

#include <ImFusion/GUI/Animations.h>

Helper struct to uniquely describe a type of annotation. More...

Detailed Description

Helper struct to uniquely describe a type of annotation.

You can pass instances of this struct when dispatching a new annotation to prevent multiple concurrent animations with the same ID. A unique ID can be described by the address of an object (usually you would pass the this pointer of the caller if it was allocated on the heap), by a string identifier of sufficient uniqueness, or the combination of both.

Public Member Functions

 UniqueId (const void *addressId, const std::string &stringId="")
 UniqueId (const std::string &stringId)
 UniqueId (const char *stringId)
bool operator< (const UniqueId &rhs) const noexcept
bool isEmpty () const noexcept

Public Attributes

const void * addressId = nullptr
std::string stringId

The documentation for this struct was generated from the following file:
  • ImFusion/GUI/Animations.h
Search Tab / S to search, Esc to close