mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-24 06:09:48 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
38 lines
837 B
Modula-2
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);
|
|
} |