Notifies of changes to input elements. More...
Public Member Functions | |
ITextInputHandler () | |
virtual | ~ITextInputHandler () |
virtual void | OnSelectionChanged (IInputProxy *proxy, TextInput::Selection selection) |
Notifies that the selection in an input element has changed, including change of the caret position. More... | |
virtual void | OnTextChanged (IInputProxy *proxy, const char *addedChars, unsigned addedCount, const char *removedChars, unsigned removedCount, unsigned index) |
Notifies that the text in an input element has changed. More... | |
virtual void | OnFocus (IInputProxy *proxy) |
Called when the element is focused. More... | |
virtual void | OnBlur (IInputProxy *proxy) |
Called when the element loses focus proxy the affected element. More... | |
Notifies of changes to input elements.
cohtml::ITextInputHandler::ITextInputHandler | ( | ) |
|
virtual |
|
inlinevirtual |
Called when the element loses focus proxy the affected element.
|
inlinevirtual |
Called when the element is focused.
proxy | the affected element |
|
inlinevirtual |
Notifies that the selection in an input element has changed, including change of the caret position.
proxy | the affected element |
selection | the new selection |
|
inlinevirtual |
Notifies that the text in an input element has changed.
proxy | the affected element |
addedChars | the newly added characters, can be nullptr |
addedCount | the count of newly added characters |
removedChars | the newly removed/replaced characters, can be nullptr |
removedCount | count the count of the newly removed/replaced characters |
index | the index at which the characters are added and/or removed |