Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
QuicktuneShortcutter Class Reference

#include <quicktune_shortcutter.h>

+ Collaboration diagram for QuicktuneShortcutter:

Public Member Functions

bool hasMessage () const
 
std::string getMessage ()
 
std::string getSelectedName ()
 
void next ()
 
void prev ()
 
void inc ()
 
void dec ()
 

Private Attributes

std::vector< std::string > m_names
 
u32 m_selected_i
 
std::string m_message
 

Member Function Documentation

◆ dec()

void QuicktuneShortcutter::dec ( )
inline

References getQuicktuneValue(), getSelectedName(), QuicktuneValue::getString(), m_message, QuicktuneValue::relativeAdd(), and setQuicktuneValue().

Referenced by Game::processKeyInput().

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

◆ getMessage()

std::string QuicktuneShortcutter::getMessage ( )
inline

References m_message.

Referenced by Game::processKeyInput().

+ Here is the caller graph for this function:

◆ getSelectedName()

std::string QuicktuneShortcutter::getSelectedName ( )
inline

References m_names, and m_selected_i.

Referenced by dec(), inc(), next(), and prev().

+ Here is the caller graph for this function:

◆ hasMessage()

bool QuicktuneShortcutter::hasMessage ( ) const
inline

References m_message.

Referenced by Game::processKeyInput().

+ Here is the caller graph for this function:

◆ inc()

void QuicktuneShortcutter::inc ( )
inline

References getQuicktuneValue(), getSelectedName(), QuicktuneValue::getString(), m_message, QuicktuneValue::relativeAdd(), and setQuicktuneValue().

Referenced by Game::processKeyInput().

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

◆ next()

void QuicktuneShortcutter::next ( )
inline

References getQuicktuneNames(), getSelectedName(), m_message, m_names, and m_selected_i.

Referenced by Game::processKeyInput().

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

◆ prev()

void QuicktuneShortcutter::prev ( )
inline

References getQuicktuneNames(), getSelectedName(), m_message, m_names, and m_selected_i.

Referenced by Game::processKeyInput().

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

Member Data Documentation

◆ m_message

std::string QuicktuneShortcutter::m_message
private

Referenced by dec(), getMessage(), hasMessage(), inc(), next(), and prev().

◆ m_names

std::vector<std::string> QuicktuneShortcutter::m_names
private

Referenced by getSelectedName(), next(), and prev().

◆ m_selected_i

u32 QuicktuneShortcutter::m_selected_i
private

Referenced by getSelectedName(), next(), and prev().


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