Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::BooleanSelector Class Reference

#include <BooleanSelector.hpp>

Public Member Functions

 BooleanSelector (const std::string &title, bool value)
 
void setUpdateCallback (std::function< void(bool value)> callback)
 
void draw ()
 

Private Attributes

std::string _title
 
std::string _imguiIdentifier
 
bool _value
 
std::function< void(bool value)> _updateCallback
 

Constructor & Destructor Documentation

◆ BooleanSelector()

shkyera::BooleanSelector::BooleanSelector ( const std::string &  title,
bool  value 
)

Member Function Documentation

◆ draw()

void shkyera::BooleanSelector::draw ( )

◆ setUpdateCallback()

void shkyera::BooleanSelector::setUpdateCallback ( std::function< void(bool value)>  callback)

Member Data Documentation

◆ _imguiIdentifier

std::string shkyera::BooleanSelector::_imguiIdentifier
private

◆ _title

std::string shkyera::BooleanSelector::_title
private

◆ _updateCallback

std::function<void(bool value)> shkyera::BooleanSelector::_updateCallback
private

◆ _value

bool shkyera::BooleanSelector::_value
private

The documentation for this class was generated from the following files: