![]() |
DDNet documentation
|
#include <lineinput.h>
Public Member Functions | |
| CLineInputNumber ()=default | |
| 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 (const FClipboardLineCallback &pfnClipboardLineCallback) |
| void | SetDisplayTextCallback (const FDisplayTextCallback &pfnDisplayTextCallback) |
| void | SetCalculateOffsetCallback (const 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={}) |
| SMouseSelection * | GetMouseSelection () |
| 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 CLineInput * | GetActiveInput () |
|
default |
|
inline |
|
inline |
| float CLineInputNumber::GetFloat | ( | ) | const |
| int CLineInputNumber::GetInteger | ( | int | Base = 10 | ) | const |
| int64_t CLineInputNumber::GetInteger64 | ( | int | Base = 10 | ) | const |
| void CLineInputNumber::SetFloat | ( | float | Number | ) |
| void CLineInputNumber::SetInteger | ( | int | Number, |
| int | Base = 10, | ||
| int | HexPrefix = 6 ) |
| void CLineInputNumber::SetInteger64 | ( | int64_t | Number, |
| int | Base = 10, | ||
| int | HexPrefix = 6 ) |