Hyprlang
A fast and user-friendly configuration language
|
#include <hyprlang.hpp>
Public Member Functions | |
CConfigCustomValueType (PCONFIGCUSTOMVALUEHANDLERFUNC handler_, PCONFIGCUSTOMVALUEDESTRUCTOR dtor_, const char *defaultValue) | |
~CConfigCustomValueType () | |
void * | getData () |
Friends | |
class | CConfigValue |
class | CConfig |
Container for a custom config value type When creating, pass your handler. Handler will receive a void** that points to a void* that you can set to your own thing. Pass a dtor to free whatever you allocated when the custom value type is being released. data may always be pointing to a nullptr.
Hyprlang::CConfigCustomValueType::CConfigCustomValueType | ( | PCONFIGCUSTOMVALUEHANDLERFUNC | handler_, |
PCONFIGCUSTOMVALUEDESTRUCTOR | dtor_, | ||
const char * | defaultValue ) |
Hyprlang::CConfigCustomValueType::~CConfigCustomValueType | ( | ) |
|
inline |
get the data pointer for the custom value type.
|
friend |
|
friend |