![]() |
DDNet documentation
|
#include <textrender.h>
Public Member Functions | |
| float | Height () const |
| STextBoundingBox | BoundingBox () const |
| void | SetPosition (vec2 Position) |
Public Attributes | |
| int | m_Flags = TEXTFLAG_RENDER |
| int | m_LineCount = 1 |
| int | m_GlyphCount = 0 |
| int | m_CharCount = 0 |
| int | m_MaxLines = 0 |
| float | m_StartX = 0.0f |
| float | m_StartY = 0.0f |
| float | m_LineWidth = -1.0f |
| float | m_X = 0.0f |
| float | m_Y = 0.0f |
| float | m_MaxCharacterHeight = 0.0f |
| float | m_LongestLineWidth = 0.0f |
| float | m_FontSize = 0.0f |
| float | m_AlignedFontSize = 0.0f |
| float | m_LineSpacing = 0.0f |
| float | m_AlignedLineSpacing = 0.0f |
| ETextCursorSelectionMode | m_CalculateSelectionMode = TEXT_CURSOR_SELECTION_MODE_NONE |
| float | m_SelectionHeightFactor = 1.0f |
| vec2 | m_PressMouse = vec2(0.0f, 0.0f) |
| vec2 | m_ReleaseMouse = vec2(0.0f, 0.0f) |
| int | m_SelectionStart = 0 |
| int | m_SelectionEnd = 0 |
| ETextCursorCursorMode | m_CursorMode = TEXT_CURSOR_CURSOR_MODE_NONE |
| bool | m_ForceCursorRendering = false |
| int | m_CursorCharacter = -1 |
| vec2 | m_CursorRenderedPosition = vec2(-1.0f, -1.0f) |
| bool | m_Truncated = false |
| std::vector< STextColorSplit > | m_vColorSplits |
| STextBoundingBox CTextCursor::BoundingBox | ( | ) | const |
| float CTextCursor::Height | ( | ) | const |
| void CTextCursor::SetPosition | ( | vec2 | Position | ) |
| float CTextCursor::m_AlignedFontSize = 0.0f |
| float CTextCursor::m_AlignedLineSpacing = 0.0f |
| ETextCursorSelectionMode CTextCursor::m_CalculateSelectionMode = TEXT_CURSOR_SELECTION_MODE_NONE |
| int CTextCursor::m_CharCount = 0 |
| int CTextCursor::m_CursorCharacter = -1 |
| ETextCursorCursorMode CTextCursor::m_CursorMode = TEXT_CURSOR_CURSOR_MODE_NONE |
| int CTextCursor::m_Flags = TEXTFLAG_RENDER |
| float CTextCursor::m_FontSize = 0.0f |
| bool CTextCursor::m_ForceCursorRendering = false |
| int CTextCursor::m_GlyphCount = 0 |
| int CTextCursor::m_LineCount = 1 |
| float CTextCursor::m_LineSpacing = 0.0f |
| float CTextCursor::m_LineWidth = -1.0f |
| float CTextCursor::m_LongestLineWidth = 0.0f |
| float CTextCursor::m_MaxCharacterHeight = 0.0f |
| int CTextCursor::m_MaxLines = 0 |
| int CTextCursor::m_SelectionEnd = 0 |
| float CTextCursor::m_SelectionHeightFactor = 1.0f |
| int CTextCursor::m_SelectionStart = 0 |
| float CTextCursor::m_StartX = 0.0f |
| float CTextCursor::m_StartY = 0.0f |
| bool CTextCursor::m_Truncated = false |
Whether the text was truncated with TEXTFLAG_STOP_AT_END or TEXTFLAG_ELLIPSIS_AT_END being set.
| std::vector<STextColorSplit> CTextCursor::m_vColorSplits |
| float CTextCursor::m_X = 0.0f |
| float CTextCursor::m_Y = 0.0f |