3#include <Core/Console/Console.h>
33 virtual void EnableLogOutput(
bool bEnable);
75 void AddInputCharacter(plUInt32 uiChar);
78 void ClearInputLine();
87 void MoveCaret(plInt32 iMoveOffset);
90 void DeleteNextCharacter();
93 void Scroll(plInt32 iLines);
109 virtual void DoDefaultInputHandling(
bool bConsoleOpen);
123 void ClearConsoleStrings();
142 void RemoveCharacter(plUInt32 uiInputLinePosition);
145 void ClampCaretPosition();
151 plInt32 m_iCaretPosition;
154 virtual bool ProcessInputCharacter(plUInt32 uiChar);
155 virtual bool FilterInputCharacter(plUInt32 uiChar);
156 virtual void InputStringChanged();
159 bool m_bUseFilteredStrings =
false;
161 plUInt32 m_uiMaxConsoleStrings;
162 plInt32 m_iScrollPosition;
163 bool m_bLogOutputEnabled;
164 bool m_bDefaultInputHandlingInitialized;
CVars are global variables that are used for configuring the engine.
Definition CVar.h:109
virtual void AddConsoleString(plStringView sText, plConsoleString::Type type=plConsoleString::Type::Default)
Adds a string to the console.
Definition Console.cpp:336
virtual void ExecuteCommand(plStringView sInput)
Executes the given input string.
Definition Console.cpp:312
A Quake-style console for in-game configuration of plCVar and plConsoleFunction.
Definition QuakeConsole.h:16
plStringView GetInputLine() const
Returns the current content of the input line.
Definition QuakeConsole.h:81
plUInt32 GetMaxConsoleStrings() const
Returns how many strings the console will keep in memory at maximum.
Definition QuakeConsole.h:30
plUInt32 GetScrollPosition() const
Returns the current scroll position. This must be used during rendering to start with the proper line...
Definition QuakeConsole.h:96
plInt32 GetCaretPosition() const
Returns the position (in characters) of the caret.
Definition QuakeConsole.h:84
void SetMaxConsoleStrings(plUInt32 uiMax)
Adjusts how many strings the console will keep in memory at maximum.
Definition QuakeConsole.h:27
Interface for binary in (read) streams.
Definition Stream.h:22
Interface for binary out (write) streams.
Definition Stream.h:107
plStringBuilder is a class that is meant for creating and modifying strings.
Definition StringBuilder.h:35
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
constexpr PL_ALWAYS_INLINE T Clamp(T value, T min_val, T max_val)
Clamps "value" to the range [min; max]. Returns "value", if it is inside the range already.
Definition Math_inl.h:51
The data that is sent through plLogInterface.
Definition Log.h:50