Luanti 5.16.0-dev
Loading...
Searching...
No Matches
QuicktuneValue Struct Reference

#include <quicktune.h>

Public Member Functions

 QuicktuneValue ()=default
std::string getString ()
void relativeAdd (float amount)

Public Attributes

QuicktuneValueType type = QVT_NONE
union { 
   struct { 
      float   current 
      float   min 
      float   max 
   }   value_QVT_FLOAT
   struct { 
      int   current 
      int   min 
      int   max 
   }   value_QVT_INT
}; 
bool modified = false

Constructor & Destructor Documentation

◆ QuicktuneValue()

QuicktuneValue::QuicktuneValue ( )
default

Member Function Documentation

◆ getString()

std::string QuicktuneValue::getString ( )

References ftos(), itos(), QVT_FLOAT, QVT_INT, QVT_NONE, type, value_QVT_FLOAT, and value_QVT_INT.

Referenced by QuicktuneShortcutter::dec(), QuicktuneShortcutter::inc(), and print_modified_quicktune_values().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ relativeAdd()

void QuicktuneValue::relativeAdd ( float amount)

References QVT_FLOAT, QVT_INT, QVT_NONE, type, value_QVT_FLOAT, and value_QVT_INT.

Referenced by QuicktuneShortcutter::dec(), and QuicktuneShortcutter::inc().

Here is the caller graph for this function:

Member Data Documentation

◆ [union]

union { ... } QuicktuneValue

◆ current [1/2]

int QuicktuneValue::current

◆ current [2/2]

float QuicktuneValue::current

◆ max [1/2]

int QuicktuneValue::max

◆ max [2/2]

float QuicktuneValue::max

◆ min [1/2]

int QuicktuneValue::min

◆ min [2/2]

float QuicktuneValue::min

◆ modified

bool QuicktuneValue::modified = false

◆ type

QuicktuneValueType QuicktuneValue::type = QVT_NONE

Referenced by getString(), and relativeAdd().

◆ [struct]

struct { ... } QuicktuneValue::value_QVT_FLOAT

Referenced by getString(), and relativeAdd().

◆ [struct]

struct { ... } QuicktuneValue::value_QVT_INT

Referenced by getString(), and relativeAdd().


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