DDraceNetwork Docs
CLineInputNumber Class Reference

#include <lineinput.h>

Inheritance diagram for CLineInputNumber:
[legend]
Collaboration diagram for CLineInputNumber:
[legend]

Public Member Functions

 CLineInputNumber ()
 
 CLineInputNumber (int Number)
 
 CLineInputNumber (float Number)
 
void SetInteger (int Number, int Base=10, int HexPrefix=6)
 
int GetInteger (int Base=10) const
 
void SetInteger64 (int64_t Number, int Base=10, int HexPrefix=6)
 
int64_t GetInteger64 (int Base=10) const
 
void SetFloat (float Number)
 
float GetFloat () const
 
- Public Member Functions inherited from CLineInputBuffered< 32 >
 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
 

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

◆ CLineInputNumber() [1/3]

CLineInputNumber::CLineInputNumber ( )
inline

◆ CLineInputNumber() [2/3]

CLineInputNumber::CLineInputNumber ( int  Number)
inline

◆ CLineInputNumber() [3/3]

CLineInputNumber::CLineInputNumber ( float  Number)
inline

Member Function Documentation

◆ GetFloat()

float CLineInputNumber::GetFloat ( ) const

◆ GetInteger()

int CLineInputNumber::GetInteger ( int  Base = 10) const

◆ GetInteger64()

int64_t CLineInputNumber::GetInteger64 ( int  Base = 10) const

◆ SetFloat()

void CLineInputNumber::SetFloat ( float  Number)

◆ SetInteger()

void CLineInputNumber::SetInteger ( int  Number,
int  Base = 10,
int  HexPrefix = 6 
)

◆ SetInteger64()

void CLineInputNumber::SetInteger64 ( int64_t  Number,
int  Base = 10,
int  HexPrefix = 6 
)

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