cohtml.Net.ITextInputHandler
Notifies of changes to input elements.
Inherits from SystemIDisposable
Inherited by cohtml.TextInputHandler
Public Functions
Section titled “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
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function ITextInputHandler
Section titled “function ITextInputHandler”ITextInputHandler()function OnSelectionChanged
Section titled “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
Section titled “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
Section titled “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
Section titled “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
Section titled “function SwigDelegateITextInputHandler_0”delegate void SwigDelegateITextInputHandler_0( global.System.IntPtr proxy, global.System.IntPtr selection, global.System.IntPtr swigId)function SwigDelegateITextInputHandler_1
Section titled “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
Section titled “function SwigDelegateITextInputHandler_2”delegate void SwigDelegateITextInputHandler_2( global.System.IntPtr proxy, global.System.IntPtr swigId)function SwigDelegateITextInputHandler_3
Section titled “function SwigDelegateITextInputHandler_3”delegate void SwigDelegateITextInputHandler_3( global.System.IntPtr proxy, global.System.IntPtr swigId)Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.