29 #ifndef __CVARSYSTEM_H__
30 #define __CVARSYSTEM_H__
183 if ( !valueCompletion && ( flags &
CVAR_BOOL ) ) {
186 Init( name, value, flags, description, 1, -1,
NULL, valueCompletion );
191 Init( name, value, flags, description, valueMin, valueMax,
NULL, valueCompletion );
196 Init( name, value, flags, description, 1, -1, valueStrings, valueCompletion );
212 virtual void Init(
void ) = 0;
279 float valueMin,
float valueMax,
const char **valueStrings,
argCompletion_t valueCompletion ) {
virtual void CommandCompletion(void(*callback)(const char *s))=0
virtual void SetCVarInteger(const char *name, const int value, int flags=0)=0
GLsizei const GLfloat * value
argCompletion_t GetValueCompletion(void) const
assert(prefInfo.fullscreenBtn)
virtual bool Command(const idCmdArgs &args)=0
void(* argCompletion_t)(const idCmdArgs &args, void(*callback)(const char *s))
virtual void SetCVarFloat(const char *name, const float value, int flags=0)=0
virtual bool IsInitialized(void) const =0
float GetFloat(void) const
virtual void WriteFlaggedVariables(int flags, const char *setCmd, idFile *f) const =0
virtual void SetModifiedFlags(int flags)=0
virtual int GetCVarInteger(const char *name) const =0
const char ** GetValueStrings(void) const
const char ** valueStrings
void Init(const char *name, const char *value, int flags, const char *description, float valueMin, float valueMax, const char **valueStrings, argCompletion_t valueCompletion)
virtual void SetCVarString(const char *name, const char *value, int flags=0)=0
virtual void InternalSetString(const char *newValue)
virtual void ArgCompletion(const char *cmdString, void(*callback)(const char *s))=0
virtual ~idCVarSystem(void)
virtual idCVar * Find(const char *name)=0
virtual void InternalSetFloat(const float newValue)
static void ArgCompletion_Boolean(const idCmdArgs &args, void(*callback)(const char *s))
virtual void Init(void)=0
void SetString(const char *value)
void SetInternalVar(idCVar *cvar)
virtual const char * GetCVarString(const char *name) const =0
void SetInteger(const int value)
virtual void SetCVarBool(const char *name, const bool value, int flags=0)=0
int GetInteger(void) const
static idCVar * staticVars
virtual float GetCVarFloat(const char *name) const =0
static void RegisterStaticVars(void)
virtual void Shutdown(void)=0
virtual void InternalSetBool(const bool newValue)
idCVarSystem * cvarSystem
const char * GetString(void) const
virtual int GetModifiedFlags(void) const =0
virtual void Register(idCVar *cvar)=0
virtual void ResetFlaggedVariables(int flags)=0
virtual void InternalSetInteger(const int newValue)
bool IsModified(void) const
const char * GetDescription(void) const
virtual bool GetCVarBool(const char *name) const =0
void SetBool(const bool value)
virtual const idDict * MoveCVarsToDict(int flags) const =0
virtual void RemoveFlaggedAutoCompletion(int flags)=0
argCompletion_t valueCompletion
float GetMinValue(void) const
void SetFloat(const float value)
virtual void ClearModifiedFlags(int flags)=0
float GetMaxValue(void) const
const char * GetName(void) const
virtual void SetCVarsFromDict(const idDict &dict)=0