Hyprlang
A fast and user-friendly configuration language
Loading...
Searching...
No Matches
Hyprlang::CConfigCustomValueType Class Reference

#include <hyprlang.hpp>

Public Member Functions

 CConfigCustomValueType (PCONFIGCUSTOMVALUEHANDLERFUNC handler_, PCONFIGCUSTOMVALUEDESTRUCTOR dtor_, const char *defaultValue)
 
 ~CConfigCustomValueType ()
 
void * getData ()
 

Friends

class CConfigValue
 
class CConfig
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CConfigCustomValueType()

Hyprlang::CConfigCustomValueType::CConfigCustomValueType ( PCONFIGCUSTOMVALUEHANDLERFUNC handler_,
PCONFIGCUSTOMVALUEDESTRUCTOR dtor_,
const char * defaultValue )

◆ ~CConfigCustomValueType()

Hyprlang::CConfigCustomValueType::~CConfigCustomValueType ( )

Member Function Documentation

◆ getData()

void * Hyprlang::CConfigCustomValueType::getData ( )
inline
Since
0.3.0

get the data pointer for the custom value type.

Friends And Related Symbol Documentation

◆ CConfig

friend class CConfig
friend

◆ CConfigValue

friend class CConfigValue
friend

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