candlewick 0.6.0
A tiny cross-platform renderer based on SDL3
|
#include <candlewick/core/GuiSystem.h>
Public Types | |
using | GuiBehavior = std::function<void(const RenderContext &)> |
Public Member Functions | |
GuiSystem (const RenderContext &renderer, GuiBehavior behav) | |
void | addCallback (GuiBehavior cb) |
void | render (CommandBuffer &cmdBuf) |
void | release () |
bool | initialized () const |
Public Attributes | |
std::vector< GuiBehavior > | _callbacks |
using candlewick::GuiSystem::GuiBehavior = std::function<void(const RenderContext &)> |
candlewick::GuiSystem::GuiSystem | ( | const RenderContext & | renderer, |
GuiBehavior | behav ) |
|
inline |
|
inline |
void candlewick::GuiSystem::release | ( | ) |
void candlewick::GuiSystem::render | ( | CommandBuffer & | cmdBuf | ) |
std::vector<GuiBehavior> candlewick::GuiSystem::_callbacks |