DDraceNetwork Docs
CLineInputBuffered< MaxSize, MaxChars > Class Template Reference

#include <lineinput.h>

Inheritance diagram for CLineInputBuffered< MaxSize, MaxChars >:
[legend]
Collaboration diagram for CLineInputBuffered< MaxSize, MaxChars >:
[legend]

Public Member Functions

 CLineInputBuffered ()
 
- Public Member Functions inherited from CLineInput
 CLineInput ()
 
 CLineInput (char *pStr, size_t MaxSize)
 
 CLineInput (char *pStr, size_t MaxSize, size_t MaxChars)
 
void SetBuffer (char *pStr, size_t MaxSize)
 
void SetBuffer (char *pStr, size_t MaxSize, size_t MaxChars)
 
void Clear ()
 
void Set (const char *pString)
 
void SetRange (const char *pString, size_t Begin, size_t End)
 
void Insert (const char *pString, size_t Begin)
 
void Append (const char *pString)
 
const char * GetString () const
 
const char * GetDisplayedString ()
 
size_t GetMaxSize () const
 
size_t GetMaxChars () const
 
size_t GetLength () const
 
size_t GetNumChars () const
 
bool IsEmpty () const
 
size_t GetCursorOffset () const
 
void SetCursorOffset (size_t Offset)
 
size_t GetSelectionStart () const
 
size_t GetSelectionEnd () const
 
size_t GetSelectionLength () const
 
bool HasSelection () const
 
void SetSelection (size_t Start, size_t End)
 
void SelectNothing ()
 
void SelectAll ()
 
size_t OffsetFromActualToDisplay (size_t ActualOffset)
 
size_t OffsetFromDisplayToActual (size_t DisplayOffset)
 
float GetScrollOffset () const
 
void SetScrollOffset (float ScrollOffset)
 
float GetScrollOffsetChange () const
 
void SetScrollOffsetChange (float ScrollOffsetChange)
 
vec2 GetCaretPosition () const
 
bool IsHidden () const
 
void SetHidden (bool Hidden)
 
const char * GetEmptyText () const
 
void SetEmptyText (const char *pText)
 
void SetClipboardLineCallback (FClipboardLineCallback pfnClipboardLineCallback)
 
void SetDisplayTextCallback (FDisplayTextCallback pfnDisplayTextCallback)
 
void SetCalculateOffsetCallback (FCalculateOffsetCallback pfnCalculateOffsetCallback)
 
bool ProcessInput (const IInput::CEvent &Event)
 
bool WasChanged ()
 
bool WasCursorChanged ()
 
STextBoundingBox Render (const CUIRect *pRect, float FontSize, int Align, bool Changed, float LineWidth, float LineSpacing, const std::vector< STextColorSplit > &vColorSplits={})
 
SMouseSelectionGetMouseSelection ()
 
const void * GetClearButtonId () const
 
bool IsActive () const
 
void Activate (EInputPriority Priority)
 
void Deactivate () const
 

Private Attributes

char m_aBuffer [MaxSize]
 

Additional Inherited Members

- Public Types inherited from CLineInput
typedef std::function< void(const char *pLine)> FClipboardLineCallback
 
typedef std::function< const char *(char *pCurrentText, size_t NumChars)> FDisplayTextCallback
 
typedef std::function< bool()> FCalculateOffsetCallback
 
- Static Public Member Functions inherited from CLineInput
static void Init (IClient *pClient, IGraphics *pGraphics, IInput *pInput, ITextRender *pTextRender)
 
static void RenderCandidates ()
 
static CLineInputGetActiveInput ()
 

Constructor & Destructor Documentation

◆ CLineInputBuffered()

template<size_t MaxSize, size_t MaxChars = MaxSize>
CLineInputBuffered< MaxSize, MaxChars >::CLineInputBuffered ( )
inline

Member Data Documentation

◆ m_aBuffer

template<size_t MaxSize, size_t MaxChars = MaxSize>
char CLineInputBuffered< MaxSize, MaxChars >::m_aBuffer[MaxSize]
private

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