Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::UI::ScopedID Class Reference

RAII helper to push and pop an ImGui ID. Supports any type convertible to ImGuiID. More...

#include <UI.h>

Public Member Functions

 ScopedID (const ScopedID &)=delete
ScopedID operator= (const ScopedID &)=delete
template<typename T>
 ScopedID (T id)
 Construct and push an ID.
 ~ScopedID ()
 Pops the pushed ID.

Detailed Description

RAII helper to push and pop an ImGui ID. Supports any type convertible to ImGuiID.

Constructor & Destructor Documentation

◆ ScopedID() [1/2]

Raven::UI::ScopedID::ScopedID ( const ScopedID & )
delete

◆ ScopedID() [2/2]

template<typename T>
Raven::UI::ScopedID::ScopedID ( T id)
inlineexplicit

Construct and push an ID.

Template Parameters
TType of the ID.
Parameters
idID value to push.

◆ ~ScopedID()

Raven::UI::ScopedID::~ScopedID ( )
inline

Pops the pushed ID.

Member Function Documentation

◆ operator=()

ScopedID Raven::UI::ScopedID::operator= ( const ScopedID & )
delete

The documentation for this class was generated from the following file:
  • Framework/src/UI/UI.h