Luanti 5.10.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 
 
};  
 
bool modified = false
 

Constructor & Destructor Documentation

◆ QuicktuneValue()

QuicktuneValue::QuicktuneValue ( )
default

Member Function Documentation

◆ getString()

std::string QuicktuneValue::getString ( )

References ftos(), QVT_FLOAT, QVT_NONE, type, and value_QVT_FLOAT.

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_NONE, type, and value_QVT_FLOAT.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ [union]

union { ... } QuicktuneValue

◆ current

float QuicktuneValue::current

◆ max

float QuicktuneValue::max

◆ min

float QuicktuneValue::min

◆ modified

bool QuicktuneValue::modified = false

◆ type

QuicktuneValueType QuicktuneValue::type = QVT_NONE

◆ [struct]

struct { ... } QuicktuneValue::value_QVT_FLOAT

Referenced by getString(), and relativeAdd().


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