TSdlTextEditingEvent
Keyboard text editing event structure (Event.TextEdit.* )
The start cursor is the position, in UTF-8 characters, where new typing will be inserted into the editing text. The length is the number of UTF-8 characters that will be replaced by new typing.
Definition
Unit: Neslib.Sdl3.Events
Properties
Name | Description |
---|---|
Kind | Event kind (TSdlEventKind.TextEditing) |
Length | The length of selected editing text, or -1 if not set |
Start | The start cursor of selected editing text, or -1 if not set |
Text | The editing text |
TextPtr | Pointer to the editing text |
Timestamp | In nanoseconds, populated using SdlGetTicksNS |
Window | The window with keyboard focus, if any |
WindowID | The ID of the window with keyboard focus, if any |
Property Descriptions
Kind
Event kind (TSdlEventKind.TextEditing)
property Kind: TSdlEventKind read GetKind
Type: TSdlEventKind
Length
The length of selected editing text, or -1 if not set
property Length: Integer read FHandle.length
Type: Integer
Start
The start cursor of selected editing text, or -1 if not set
property Start: Integer read FHandle.start
Type: Integer
Text
The editing text
property Text: String read GetText
Type: String
TextPtr
Pointer to the editing text
property TextPtr: PUTF8Char read FHandle.text
Type: PUTF8Char
Timestamp
In nanoseconds, populated using SdlGetTicksNS
property Timestamp: UInt64 read FHandle.timestamp
Type: UInt64
Window
The window with keyboard focus, if any
property Window: TSdlWindow read GetWindow
Type: TSdlWindow
WindowID
The ID of the window with keyboard focus, if any
property WindowID: TSdlWindowID read FHandle.windowID
Type: TSdlWindowID