DDNet documentation
Loading...
Searching...
No Matches
CMapSettingsBackend::CContextWithInput Class Reference

#include <editor_server_settings.h>

Inheritance diagram for CMapSettingsBackend::CContextWithInput:
[legend]
Collaboration diagram for CMapSettingsBackend::CContextWithInput:
[legend]

Public Member Functions

 CContextWithInput (CMapSettingsBackend *pBackend)
void Reset () override
Public Member Functions inherited from CMapSettingsBackend::CContext
virtual ~CContext ()=default
bool CommandIsValid () const
int CurrentArg () const
const char * CurrentArgName () const
float CurrentArgPos () const
size_t CurrentArgOffset () const
const char * CurrentArgValue () const
const std::vector< SPossibleValueMatch > & PossibleMatches () const
bool HasError () const
size_t ErrorOffset () const
const char * Error () const
int ArgCount () const
const SCurrentSettingArgArg (int Index) const
const std::shared_ptr< IMapSetting > & Setting () const
void SetFontSize (float FontSize)
int CommentOffset () const
int CheckCollision (ECollisionCheckResult &Result) const
int CheckCollision (const std::vector< CEditorMapSetting > &vSettings, ECollisionCheckResult &Result) const
int CheckCollision (const char *pInputString, const std::vector< CEditorMapSetting > &vSettings, ECollisionCheckResult &Result) const
void Update ()
void UpdateFromString (const char *pStr)
bool UpdateCursor (bool Force=false)
void GetCommandHelpText (char *pStr, int Length) const
bool Valid () const
void ColorArguments (std::vector< STextColorSplit > &vColorSplits) const

Public Attributes

int m_CommandSelectedIndex
CLineInputBuffered< 256 > m_CommandInput
CListBox m_ListBox
Public Attributes inherited from CMapSettingsBackend::CContext
bool m_AllowUnknownCommands
SEditBoxDropdownContext m_DropdownContext
int m_CurrentCompletionIndex

Constructor & Destructor Documentation

◆ CContextWithInput()

CMapSettingsBackend::CContextWithInput::CContextWithInput ( CMapSettingsBackend * pBackend)
inline

Member Function Documentation

◆ Reset()

void CMapSettingsBackend::CContextWithInput::Reset ( )
overridevirtual

Reimplemented from CMapSettingsBackend::CContext.

Member Data Documentation

◆ m_CommandInput

CLineInputBuffered<256> CMapSettingsBackend::CContextWithInput::m_CommandInput

◆ m_CommandSelectedIndex

int CMapSettingsBackend::CContextWithInput::m_CommandSelectedIndex

◆ m_ListBox

CListBox CMapSettingsBackend::CContextWithInput::m_ListBox

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