cohtml.Net.ITextInputHandler
Notifies of changes to input elements.
Inherits from SystemIDisposable
Inherited by cohtml.TextInputHandler
Public Functions
Name | |
---|---|
virtual void | Dispose() |
ITextInputHandler() | |
virtual void | OnSelectionChanged(IInputProxy proxy, Selection selection) Notifies that the selection in an input element has changed, including change of the caret position. |
virtual void | OnTextChanged(IInputProxy proxy, string addedChars, uint addedCount, string removedChars, uint removedCount, uint index) Notifies that the text in an input element has changed. |
virtual void | OnFocus(IInputProxy proxy) Called when the element is focused. |
virtual void | OnBlur(IInputProxy proxy) Called when the element loses focus proxy the affected element. |
delegate void | SwigDelegateITextInputHandler_0(global.System.IntPtr proxy, global.System.IntPtr selection, global.System.IntPtr swigId) |
delegate void | SwigDelegateITextInputHandler_1(global.System.IntPtr proxy, string addedChars, uint addedCount, string removedChars, uint removedCount, uint index, global.System.IntPtr swigId) |
delegate void | SwigDelegateITextInputHandler_2(global.System.IntPtr proxy, global.System.IntPtr swigId) |
delegate void | SwigDelegateITextInputHandler_3(global.System.IntPtr proxy, global.System.IntPtr swigId) |
Protected Attributes
Name | |
---|---|
bool | swigCMemOwn |
Public Functions Documentation
function Dispose
virtual void Dispose()
function ITextInputHandler
ITextInputHandler()
function OnSelectionChanged
virtual void OnSelectionChanged(
IInputProxy proxy,
Selection selection
)
Notifies that the selection in an input element has changed, including change of the caret position.
Parameters:
- proxy the affected element
- selection the new selection
Reimplemented by: cohtml.TextInputHandler.OnSelectionChanged
function OnTextChanged
virtual void OnTextChanged(
IInputProxy proxy,
string addedChars,
uint addedCount,
string removedChars,
uint removedCount,
uint index
)
Notifies that the text in an input element has changed.
Parameters:
- 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
function OnFocus
virtual void OnFocus(
IInputProxy proxy
)
Called when the element is focused.
Parameters:
- proxy the affected element
Reimplemented by: cohtml.TextInputHandler.OnFocus
function OnBlur
virtual void OnBlur(
IInputProxy proxy
)
Called when the element loses focus proxy the affected element.
Reimplemented by: cohtml.TextInputHandler.OnBlur
function SwigDelegateITextInputHandler_0
delegate void SwigDelegateITextInputHandler_0(
global.System.IntPtr proxy,
global.System.IntPtr selection,
global.System.IntPtr swigId
)
function SwigDelegateITextInputHandler_1
delegate void SwigDelegateITextInputHandler_1(
global.System.IntPtr proxy,
string addedChars,
uint addedCount,
string removedChars,
uint removedCount,
uint index,
global.System.IntPtr swigId
)
function SwigDelegateITextInputHandler_2
delegate void SwigDelegateITextInputHandler_2(
global.System.IntPtr proxy,
global.System.IntPtr swigId
)
function SwigDelegateITextInputHandler_3
delegate void SwigDelegateITextInputHandler_3(
global.System.IntPtr proxy,
global.System.IntPtr swigId
)
Protected Attributes Documentation
variable swigCMemOwn
bool swigCMemOwn;