geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include <Selection.h>
Public Member Functions | |
SelectionRange () noexcept | |
SelectionRange (SelectionPosition single) noexcept | |
SelectionRange (Sci::Position single) noexcept | |
SelectionRange (SelectionPosition caret_, SelectionPosition anchor_) noexcept | |
SelectionRange (Sci::Position caret_, Sci::Position anchor_) noexcept | |
bool | Empty () const noexcept |
Sci::Position | Length () const noexcept |
bool | operator== (const SelectionRange &other) const noexcept |
bool | operator< (const SelectionRange &other) const noexcept |
void | Reset () noexcept |
void | ClearVirtualSpace () noexcept |
void | MoveForInsertDelete (bool insertion, Sci::Position startChange, Sci::Position length) noexcept |
bool | Contains (Sci::Position pos) const noexcept |
bool | Contains (SelectionPosition sp) const noexcept |
bool | ContainsCharacter (Sci::Position posCharacter) const noexcept |
SelectionSegment | Intersect (SelectionSegment check) const noexcept |
SelectionPosition | Start () const noexcept |
SelectionPosition | End () const noexcept |
void | Swap () noexcept |
bool | Trim (SelectionRange range) noexcept |
void | MinimizeVirtualSpace () noexcept |
Public Attributes | |
SelectionPosition | caret |
SelectionPosition | anchor |
Definition at line 86 of file Selection.h.
|
inlinenoexcept |
Definition at line 90 of file Selection.h.
|
inlineexplicitnoexcept |
Definition at line 92 of file Selection.h.
|
inlineexplicitnoexcept |
Definition at line 94 of file Selection.h.
|
inlinenoexcept |
Definition at line 96 of file Selection.h.
|
inlinenoexcept |
Definition at line 98 of file Selection.h.
|
inlinenoexcept |
Definition at line 115 of file Selection.h.
References anchor, caret, and Scintilla::SelectionPosition::SetVirtualSpace().
Referenced by Scintilla::ScintillaBase::AutoCompleteInsert(), Scintilla::Editor::ChangeCaseOfSelection(), Scintilla::Editor::Clear(), Scintilla::Editor::ClearBeforeTentativeStart(), Scintilla::Editor::DelCharBack(), Scintilla::Editor::DelWordOrLine(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::InsertPaste(), Scintilla::Editor::NewLine(), and Scintilla::Editor::SetRectangularRange().
|
noexcept |
Definition at line 105 of file Selection.cxx.
References pos.
Referenced by Scintilla::Editor::PointInSelection(), and Scintilla::Editor::PositionInSelection().
|
noexcept |
Definition at line 112 of file Selection.cxx.
|
noexcept |
Definition at line 119 of file Selection.cxx.
Referenced by DrawTranslucentSelection().
|
inlinenoexcept |
Definition at line 100 of file Selection.h.
Referenced by Scintilla::Editor::ClearBeforeTentativeStart(), Scintilla::Editor::ClearSelection(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::InsertPaste(), and Scintilla::ScintillaGTKAccessible::UpdateCursor().
|
inlinenoexcept |
Definition at line 127 of file Selection.h.
Referenced by Scintilla::ScintillaBase::AutoCompleteInsert(), Scintilla::Editor::ChangeCaseOfSelection(), Scintilla::Editor::ClearBeforeTentativeStart(), Scintilla::Editor::ClearSelection(), Scintilla::ScintillaGTK::DragDataGet(), Scintilla::Editor::DropAt(), Scintilla::Editor::Duplicate(), Scintilla::ScintillaGTKAccessible::GetSelection(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::InsertPaste(), Scintilla::Editor::InvalidateSelection(), Scintilla::Editor::LineReverse(), Scintilla::Editor::MultipleSelectAdd(), Scintilla::Editor::PointInSelection(), Scintilla::Editor::SelectionContainsProtected(), Scintilla::Editor::SelectionEnd(), Scintilla::Editor::SetSelectionNMessage(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 126 of file Selection.cxx.
References Scintilla::SelectionSegment::end, and Scintilla::SelectionSegment::start.
Referenced by Scintilla::BreakFinder::BreakFinder(), Scintilla::EditView::DrawEOL(), DrawTranslucentSelection(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 83 of file Selection.cxx.
References anchor, caret, and Scintilla::SelectionPosition::Position().
Referenced by Scintilla::Editor::ChangeCaseOfSelection(), Scintilla::Editor::ClearBeforeTentativeStart(), Scintilla::Editor::ClearSelection(), Scintilla::ScintillaGTK::DragDataGet(), Scintilla::Editor::DropAt(), Scintilla::Editor::Indent(), Scintilla::Editor::InsertCharacter(), and Scintilla::Editor::InsertPaste().
|
noexcept |
Definition at line 183 of file Selection.cxx.
References anchor, caret, Scintilla::SelectionPosition::Position(), Scintilla::SelectionPosition::SetVirtualSpace(), and Scintilla::SelectionPosition::VirtualSpace().
Referenced by Scintilla::Editor::ClearBeforeTentativeStart(), Scintilla::Editor::InsertCharacter(), and Scintilla::Editor::InsertPaste().
|
noexcept |
Definition at line 91 of file Selection.cxx.
|
inlinenoexcept |
Definition at line 108 of file Selection.h.
|
inlinenoexcept |
Definition at line 105 of file Selection.h.
|
inlinenoexcept |
Definition at line 111 of file Selection.h.
References anchor, caret, and Scintilla::SelectionPosition::Reset().
Referenced by Scintilla::Selection::Clear().
|
inlinenoexcept |
Definition at line 124 of file Selection.h.
Referenced by Scintilla::ScintillaBase::AutoCompleteInsert(), Scintilla::Editor::ChangeCaseOfSelection(), Scintilla::Editor::Clear(), Scintilla::Editor::ClearBeforeTentativeStart(), Scintilla::Editor::ClearSelection(), Scintilla::ScintillaGTK::DragDataGet(), Scintilla::ScintillaGTK::DrawImeIndicator(), Scintilla::Editor::DropAt(), Scintilla::Editor::Duplicate(), Scintilla::ScintillaGTKAccessible::GetSelection(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::Indent(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::InsertPaste(), Scintilla::Editor::InvalidateSelection(), Scintilla::Editor::LineReverse(), Scintilla::ScintillaGTK::MoveImeCarets(), Scintilla::Editor::MultipleSelectAdd(), Scintilla::Editor::PointInSelection(), Scintilla::Editor::SelectionContainsProtected(), Scintilla::Editor::SelectionStart(), Scintilla::Editor::SetSelectionNMessage(), Scintilla::Selection::Start(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 143 of file Selection.cxx.
Referenced by Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 147 of file Selection.cxx.
References PLATFORM_ASSERT.
SelectionPosition Scintilla::SelectionRange::anchor |
Definition at line 88 of file Selection.h.
Referenced by Scintilla::ScintillaBase::AutoCompleteInsert(), Scintilla::Editor::ButtonDownWithModifiers(), Scintilla::Editor::ButtonMoveWithModifiers(), Scintilla::Editor::ButtonUpWithModifiers(), Scintilla::Editor::ChangeCaseOfSelection(), Scintilla::Editor::Clear(), ClearVirtualSpace(), Scintilla::Editor::CursorUpOrDown(), Scintilla::Editor::DelCharBack(), Scintilla::EditView::DrawCarets(), Scintilla::Editor::Duplicate(), Empty(), End(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::Indent(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::InsertPaste(), Scintilla::Editor::InvalidateSelection(), Length(), MinimizeVirtualSpace(), Scintilla::ScintillaGTK::MoveImeCarets(), operator<(), operator==(), Reset(), Scintilla::Editor::SetRectangularRange(), Scintilla::Editor::SetSelection(), Scintilla::Editor::SetSelectionNMessage(), Start(), Swap(), Scintilla::Editor::ThinRectangularRange(), Scintilla::Editor::WndProc(), and Scintilla::Editor::XYScrollToMakeVisible().
SelectionPosition Scintilla::SelectionRange::caret |
Definition at line 87 of file Selection.h.
Referenced by Scintilla::ScintillaBase::AutoCompleteInsert(), Scintilla::Editor::ChangeCaseOfSelection(), Scintilla::Editor::Clear(), Scintilla::Editor::ClearBeforeTentativeStart(), ClearVirtualSpace(), Scintilla::Editor::CursorUpOrDown(), Scintilla::Editor::DelCharBack(), Scintilla::Editor::DelWordOrLine(), Scintilla::EditView::DrawCarets(), Scintilla::Editor::Duplicate(), Empty(), End(), Scintilla::Editor::EnsureCaretVisible(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::Indent(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::InsertPaste(), Scintilla::Editor::InvalidateCaret(), Scintilla::Editor::InvalidateSelection(), Length(), MinimizeVirtualSpace(), Scintilla::ScintillaGTK::MoveImeCarets(), Scintilla::Editor::NewLine(), operator<(), operator==(), Scintilla::EditView::PaintText(), Scintilla::Editor::PasteRectangular(), Scintilla::Editor::PointMainCaret(), Reset(), Scintilla::Editor::SetRectangularRange(), Scintilla::Editor::SetSelection(), Scintilla::Editor::SetSelectionNMessage(), Start(), Swap(), Scintilla::Editor::ThinRectangularRange(), Scintilla::Editor::VerticalCentreCaret(), Scintilla::Editor::WndProc(), and Scintilla::Editor::XYScrollToMakeVisible().