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

RAII helper to push and pop an ImGui font. More...

#include <UI.h>

Public Member Functions

 ScopedFont (const ScopedFont &)=delete
ScopedFont operator= (const ScopedFont &)=delete
 ScopedFont (ImFont *font)
 Construct and push a font.
 ~ScopedFont ()
 Pops the pushed font.

Detailed Description

RAII helper to push and pop an ImGui font.

Constructor & Destructor Documentation

◆ ScopedFont() [1/2]

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

◆ ScopedFont() [2/2]

Raven::UI::ScopedFont::ScopedFont ( ImFont * font)
inlineexplicit

Construct and push a font.

Parameters
fontPointer to ImFont to push.

◆ ~ScopedFont()

Raven::UI::ScopedFont::~ScopedFont ( )
inline

Pops the pushed font.

Member Function Documentation

◆ operator=()

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

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