Xenon
A framework for cheat development.
 
Loading...
Searching...
No Matches
QuickActions Class Reference

#include <quickactions.hpp>

Public Member Functions

void AddButton (std::string label, std::function< void()> callback)
 
void AddCheckbox (std::string label, bool *value, ImColor bg=ImColor(0, 0, 0, 0), ImColor on=ImColor(0, 255, 0, 255), ImColor off=ImColor(255, 0, 0, 255))
 
void AddSlider (std::string label, float *value, float min, float max)
 
void AddSlider (std::string label, int *value, int min, int max)
 
const std::vector< std::unique_ptr< QuickAction > > & GetComponents () const
 
size_t GetSize ()
 

Member Function Documentation

◆ AddButton()

void QuickActions::AddButton ( std::string  label,
std::function< void()>  callback 
)
inline

◆ AddCheckbox()

void QuickActions::AddCheckbox ( std::string  label,
bool *  value,
ImColor  bg = ImColor(0, 0, 0, 0),
ImColor  on = ImColor(0, 255, 0, 255),
ImColor  off = ImColor(255, 0, 0, 255) 
)
inline

◆ AddSlider() [1/2]

void QuickActions::AddSlider ( std::string  label,
float *  value,
float  min,
float  max 
)
inline

◆ AddSlider() [2/2]

void QuickActions::AddSlider ( std::string  label,
int *  value,
int  min,
int  max 
)
inline

◆ GetComponents()

const std::vector< std::unique_ptr< QuickAction > > & QuickActions::GetComponents ( ) const
inline

◆ GetSize()

size_t QuickActions::GetSize ( )
inline

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