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

RAII helper to push and pop ImGui item flags. More...

#include <UI.h>

Public Member Functions

 ScopedItemFlags (const ScopedItemFlags &)=delete
ScopedItemFlags operator= (const ScopedItemFlags &)=delete
 ScopedItemFlags (const ImGuiItemFlags flags, const bool enable=true)
 Construct and push item flags.
 ~ScopedItemFlags ()
 Pops the pushed item flag.

Detailed Description

RAII helper to push and pop ImGui item flags.

Constructor & Destructor Documentation

◆ ScopedItemFlags() [1/2]

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

◆ ScopedItemFlags() [2/2]

Raven::UI::ScopedItemFlags::ScopedItemFlags ( const ImGuiItemFlags flags,
const bool enable = true )
inlineexplicit

Construct and push item flags.

Parameters
flagsImGuiItemFlags to push.
enableWhether to enable or disable the flags (default true).

◆ ~ScopedItemFlags()

Raven::UI::ScopedItemFlags::~ScopedItemFlags ( )
inline

Pops the pushed item flag.

Member Function Documentation

◆ operator=()

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

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