Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
quicktune.h File Reference
#include <string>
#include <map>
#include <vector>
+ Include dependency graph for quicktune.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QuicktuneValue
 

Macros

#define QUICKTUNE(type_, var, min_, max_, name)
 
#define QUICKTUNE_AUTONAME(type_, var, min_, max_)    QUICKTUNE(type_, var, min_, max_, #var)
 

Enumerations

enum  QuicktuneValueType { QVT_NONE , QVT_FLOAT }
 

Functions

const std::vector< std::string > & getQuicktuneNames ()
 
QuicktuneValue getQuicktuneValue (const std::string &name)
 
void setQuicktuneValue (const std::string &name, const QuicktuneValue &val)
 
void updateQuicktuneValue (const std::string &name, QuicktuneValue &val)
 

Macro Definition Documentation

◆ QUICKTUNE

#define QUICKTUNE ( type_,
var,
min_,
max_,
name )
Value:
{\
qv.type = type_;\
qv.value_##type_.current = var;\
qv.value_##type_.min = min_;\
qv.value_##type_.max = max_;\
updateQuicktuneValue(name, qv);\
var = qv.value_##type_.current;\
}
Definition quicktune.h:45
float current
Definition quicktune.h:49
QuicktuneValueType type
Definition quicktune.h:46
float max
Definition quicktune.h:51
float min
Definition quicktune.h:50

◆ QUICKTUNE_AUTONAME

#define QUICKTUNE_AUTONAME ( type_,
var,
min_,
max_ )    QUICKTUNE(type_, var, min_, max_, #var)

Enumeration Type Documentation

◆ QuicktuneValueType

Enumerator
QVT_NONE 
QVT_FLOAT 

Function Documentation

◆ getQuicktuneNames()

const std::vector< std::string > & getQuicktuneNames ( )

References g_names.

Referenced by QuicktuneShortcutter::next(), QuicktuneShortcutter::prev(), and print_modified_quicktune_values().

+ Here is the caller graph for this function:

◆ getQuicktuneValue()

QuicktuneValue getQuicktuneValue ( const std::string & name)

References g_mutex, g_values, QVT_NONE, and QuicktuneValue::type.

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

+ Here is the caller graph for this function:

◆ setQuicktuneValue()

void setQuicktuneValue ( const std::string & name,
const QuicktuneValue & val )

References g_mutex, g_values, and QuicktuneValue::modified.

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

+ Here is the caller graph for this function:

◆ updateQuicktuneValue()

void updateQuicktuneValue ( const std::string & name,
QuicktuneValue & val )