Chicane

Text

Header
Includes/Chicane/Grid/Component/Input/Text.hpp
Namespace
Chicane::Grid::InputText

Constructors

NameDescription
InputText(
const  XmlNode& inNode
)

Override Functions

AccessReturnModifierNameDescription
public
bool
const
isFocusable()
public
bool
onEvent(
const  WindowEvent& inEvent
)
protected
void
onRefresh()
protected
void
onFocus()
protected
void
onBlur()
protected
void
refreshSize()
protected
void
refreshPosition()

Functions

AccessReturnModifierNameDescription
private
bool
const
hasSelection()
private
void
refreshValue()
private
void
refreshChrome()
private
void
hoistChrome()
private
void
insert(
const  String& inText
)
private
void
erase()
private
void
eraseForward()
private
void
commit()
private
void
emitInput()
private
void
setTextInputActive(
bool inValue
)
private
void
setCaret(
std::size_t inIndex
bool inShouldSelect
)
private
bool
moveCaret(
int inDelta
bool inShouldSelect
)
private
std::size_t
const
codepointCount()
private
const
toContentPoint(
const  Vec2& inLocation
)
private
std::size_t
const
hitIndex(
const  Vec2& inLocation
)
private
void
selectAll()
private
void
collapseSelection()
private
void
deleteSelection()
private
bool
beginSelect(
const  Vec2& inLocation
bool inShouldExtend
)
private
bool
updateSelect(
const  Vec2& inLocation
)

Members

AccessTypeModifierNameDescription
public
const  char*
static, constexpr
TAG_ID
public
const  char*
static, constexpr
VALUE_ATTRIBUTE_NAME
public
const  char*
static, constexpr
ON_INPUT_ATTRIBUTE_NAME
public
value
public
caret
public
selection
public
float
selectionWidth
public
caretColor
private
bool
m_bIsEdited
private
bool
m_bIsSelecting
private
m_pendingText
private
std::size_t
m_caret
private
std::size_t
m_anchor