7#pragma push_macro("None")
537#pragma pop_macro("None")
#define UExport
Definition Exports.h:22
An RGBA color value in a certain color space (with CSS parsing helpers).
Definition Color.h:69
Text-editing interface for a View.
Definition Editor.h:332
virtual bool CommitComposition(const String &text)=0
Replace the active composition with the input method's final text.
virtual bool CancelComposition()=0
Cancel the active composition and remove its text.
virtual bool ReplaceTextInRange(uint32_t start, uint32_t end, const String &text)=0
Replace part of the focused element's text (see GetSelectionOffsets() for the offsets).
virtual bool GetCompositionOffsets(uint32_t &start, uint32_t &end)=0
Get the active composition's offsets within the focused element's text (see GetSelectionOffsets() for...
virtual bool CanExecute(EditorCommand command) const =0
Whether or not a command would do anything right now.
virtual Rect GetCompositionBounds()=0
Get the bounds of the active composition's text, in viewport CSS pixels.
virtual Rect GetCompositionCharacterBounds(uint32_t index)=0
Get the bounds of one character of the active composition's text, in viewport CSS pixels.
virtual bool HasComposition() const =0
Whether or not a composition is active.
virtual bool SetComposition(const String &text, const CompositionSegment *segments, size_t num_segments, const CompositionRange &selection)=0
Set or update the in-progress text of an input method's composition.
virtual Rect GetCaretBounds()=0
Get the bounds of the caret.
virtual bool InsertText(const String &text)=0
Insert text at the caret, replacing the selection (the same as typing it).
virtual uint32_t GetCompositionCharacterCount()=0
Get the length of the active composition's text, in UTF-16 code units (0 when none is active).
virtual bool GetSelectionOffsets(uint32_t &start, uint32_t &end)=0
Get the selection's offsets within the focused element's text.
virtual bool FinishComposition()=0
Keep the active composition's in-progress text as final text.
virtual String GetTextInRange(uint32_t start, uint32_t end)=0
Get part of the focused element's text (see GetSelectionOffsets() for the offsets).
virtual bool Execute(EditorCommand command)=0
Run an editing command.
virtual ~Editor()=default
Unicode string container with conversions for UTF-8, UTF-16, and UTF-32.
Definition String.h:31
Root namespace for every public Ultralight type, function, and enumeration.
InputMode
The focused element's inputmode hint (what kind of virtual keyboard the page asks for).
Definition Editor.h:106
@ Url
Definition Editor.h:111
@ Search
Definition Editor.h:115
@ Unspecified
Definition Editor.h:107
@ Numeric
Definition Editor.h:113
@ Decimal
Definition Editor.h:114
@ Telephone
Definition Editor.h:110
@ Email
Definition Editor.h:112
EnterKeyHint
The focused element's enterkeyhint (what label or icon the Enter key should present).
Definition Editor.h:123
@ Next
Definition Editor.h:128
@ Go
Definition Editor.h:127
@ Unspecified
Definition Editor.h:124
@ Send
Definition Editor.h:131
@ Previous
Definition Editor.h:129
@ Enter
Definition Editor.h:125
@ Done
Definition Editor.h:126
EditableType
The kind of element that holds keyboard focus (see EditableState).
Definition Editor.h:92
@ TextArea
A multi-line text area.
Definition Editor.h:96
@ ContentEditable
An editable (contenteditable) region.
Definition Editor.h:97
@ Other
A focused element that is not a text-editing target (eg, a select).
Definition Editor.h:98
@ None
No element holds keyboard focus.
Definition Editor.h:93
@ Password
A password field.
Definition Editor.h:95
@ None
Definition Anchor.h:36
EditorCommand
The editing commands you can run with Editor::Execute().
Definition Editor.h:26
@ MoveWordLeft
Move the caret one word left.
Definition Editor.h:41
@ DeleteToBeginningOfLine
Delete to the start of the line.
Definition Editor.h:79
@ MoveToBeginningOfParagraph
Move the caret to the start of the paragraph.
Definition Editor.h:45
@ MoveToEndOfDocument
Move the caret to the end of the text.
Definition Editor.h:48
@ Undo
Undo the last edit.
Definition Editor.h:33
@ MovePageUpAndModifySelection
Select one page up.
Definition Editor.h:65
@ PasteAsPlainText
Paste the clipboard's text without its formatting.
Definition Editor.h:31
@ MoveToBeginningOfLine
Move the caret to the start of the line.
Definition Editor.h:43
@ Paste
Paste the clipboard's contents.
Definition Editor.h:30
@ MoveWordRightAndModifySelection
Select one word right.
Definition Editor.h:58
@ MovePageUp
Move the caret one page up.
Definition Editor.h:49
@ InsertBacktab
Insert a backtab (Shift+Tab).
Definition Editor.h:86
@ DeleteWordForward
Delete the word after the caret.
Definition Editor.h:78
@ Unselect
Clear the selection (no caret remains).
Definition Editor.h:72
@ MoveWordLeftAndModifySelection
Select one word left.
Definition Editor.h:57
@ MoveUpAndModifySelection
Select one line up.
Definition Editor.h:55
@ Redo
Redo the last undone edit.
Definition Editor.h:34
@ Copy
Copy the selection to the clipboard.
Definition Editor.h:29
@ MoveDownAndModifySelection
Select one line down.
Definition Editor.h:56
@ InsertLineBreak
Insert a line break in the paragraph (Shift+Enter).
Definition Editor.h:84
@ SelectLine
Select the line at the caret.
Definition Editor.h:70
@ MoveToEndOfLineAndModifySelection
Select to line end.
Definition Editor.h:60
@ DeleteWordBackward
Delete the word before the caret.
Definition Editor.h:77
@ SelectAll
Select all the text (or the whole page).
Definition Editor.h:32
@ DeleteToEndOfLine
Delete to the end of the line.
Definition Editor.h:80
@ DeleteForward
Delete the selection or the next character.
Definition Editor.h:76
@ MoveRight
Move the caret one character right.
Definition Editor.h:38
@ MovePageDownAndModifySelection
Select one page down.
Definition Editor.h:66
@ InsertNewline
Insert a new paragraph (the Enter key).
Definition Editor.h:83
@ InsertTab
Insert a tab.
Definition Editor.h:85
@ MoveDown
Move the caret one line down.
Definition Editor.h:40
@ SelectParagraph
Select the paragraph at the caret.
Definition Editor.h:71
@ MoveRightAndModifySelection
Select one character right.
Definition Editor.h:54
@ MoveToEndOfParagraph
Move the caret to the end of the paragraph.
Definition Editor.h:46
@ SelectWord
Select the word at the caret.
Definition Editor.h:69
@ MoveToBeginningOfDocumentAndModifySelection
Select to text start.
Definition Editor.h:63
@ MoveUp
Move the caret one line up.
Definition Editor.h:39
@ MoveToEndOfDocumentAndModifySelection
Select to text end.
Definition Editor.h:64
@ MoveToEndOfParagraphAndModifySelection
Select to paragraph end.
Definition Editor.h:62
@ MoveToBeginningOfDocument
Move the caret to the start of the text.
Definition Editor.h:47
@ MoveWordRight
Move the caret one word right.
Definition Editor.h:42
@ MoveToEndOfLine
Move the caret to the end of the line.
Definition Editor.h:44
@ MoveLeftAndModifySelection
Select one character left.
Definition Editor.h:53
@ MoveLeft
Move the caret one character left.
Definition Editor.h:37
@ MoveToBeginningOfLineAndModifySelection
Select to line start.
Definition Editor.h:59
@ Cut
Cut the selection to the clipboard.
Definition Editor.h:28
@ DeleteBackward
Delete the selection or the previous character.
Definition Editor.h:75
@ MoveToBeginningOfParagraphAndModifySelection
Select to paragraph start.
Definition Editor.h:61
@ MovePageDown
Move the caret one page down.
Definition Editor.h:50
A range of characters within a composition's text (see CompositionSegment and Editor::SetComposition(...
Definition Editor.h:183
uint32_t end
The ending offset of the range (exclusive), in UTF-16 code units.
Definition Editor.h:192
uint32_t start
The starting offset of the range, in UTF-16 code units.
Definition Editor.h:187
Styling for one segment of a composition's text (see Editor::SetComposition()).
Definition Editor.h:201
CompositionRange range
The range of composition text this segment styles.
Definition Editor.h:205
Color background_color
A highlight fill drawn behind the segment's text.
Definition Editor.h:215
Color underline_color
The underline color.
Definition Editor.h:210
bool thick
Whether the underline is drawn thick (the convention for the active clause).
Definition Editor.h:220
The conditions that decide whether an input method should be active.
Definition Editor.h:145
bool view_has_focus
Whether or not the View itself has input focus (see View::Focus() and View::Unfocus()).
Definition Editor.h:160
bool is_mutable
Whether or not the focused element accepts typed text (false for a read-only or disabled text control...
Definition Editor.h:155
EditableType type
The kind of element that holds keyboard focus.
Definition Editor.h:149
InputMode input_mode
The focused element's inputmode hint.
Definition Editor.h:165
EnterKeyHint enter_key_hint
The focused element's enterkeyhint.
Definition Editor.h:170
Rect bounds
The focused element's bounds in viewport CSS pixels (the same space as View::FireMouseEvent()).
Definition Editor.h:176
Float Rectangle Helper.
Definition Geometry.h:416