Files
sbox-public/engine/Definitions/tools/QtMisc/QTextCursor.def
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

38 lines
837 B
Modula-2

native enum QTextCursor::SelectionType as QTextCursorSelectionType;
[SharedDataPointer]
native class QTextCursor as Editor.TextCursor
{
static TextCursor CreateFromBlock( cref QTextBlock block ); [new]
void Dispose(); [delete]
int blockNumber();
int columnNumber();
QString selectedText();
bool atBlockStart();
bool atBlockEnd();
bool atStart();
bool atEnd();
void insertHtml( QString html );
void insertText( QString text );
bool hasSelection();
bool hasComplexSelection();
void removeSelectedText();
void clearSelection();
int selectionStart();
int selectionEnd();
int position();
int positionInBlock();
void setPosition( int pos );
void deleteChar();
void deletePreviousChar();
void select(QTextCursorSelectionType selection);
}