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
![]() ![]() |
The range class represents a range of text in a document. More...
#include <Document.h>
Public Member Functions | |
Range (Sci::Position pos=0) noexcept | |
Range (Sci::Position start_, Sci::Position end_) noexcept | |
bool | operator== (const Range &other) const noexcept |
bool | Valid () const noexcept |
Sci::Position | First () const noexcept |
Sci::Position | Last () const noexcept |
bool | Contains (Sci::Position pos) const noexcept |
bool | ContainsCharacter (Sci::Position pos) const noexcept |
bool | Contains (Range other) const noexcept |
bool | Overlaps (Range other) const noexcept |
Public Attributes | |
Sci::Position | start |
Sci::Position | end |
The range class represents a range of text in a document.
The two values are not sorted as one end may be more significant than the other as is the case for the selection where the end position is the position of the caret. If either position is invalidPosition then the range is invalid and most operations will fail.
Definition at line 29 of file Document.h.
|
inlineexplicitnoexcept |
Definition at line 34 of file Document.h.
|
inlinenoexcept |
Definition at line 37 of file Document.h.
|
inlinenoexcept |
Definition at line 75 of file Document.h.
References Contains().
|
inlinenoexcept |
Definition at line 58 of file Document.h.
References end, pos, and start.
Referenced by Contains(), and Overlaps().
|
inlinenoexcept |
Definition at line 67 of file Document.h.
References end, pos, and start.
Referenced by Scintilla::EditView::DrawBackground(), Scintilla::EditView::DrawForeground(), DrawIndicators(), Scintilla::LineLayout::RestoreBracesHighlight(), and Scintilla::LineLayout::SetBracesHighlight().
|
inlinenoexcept |
Definition at line 49 of file Document.h.
Referenced by DrawIndicators(), and Scintilla::Editor::RectangleFromRange().
|
inlinenoexcept |
Definition at line 53 of file Document.h.
Referenced by Scintilla::Editor::RectangleFromRange().
|
inlinenoexcept |
Definition at line 41 of file Document.h.
|
inlinenoexcept |
Definition at line 79 of file Document.h.
References Contains(), end, and start.
Referenced by Scintilla::Editor::MultipleSelectAdd().
|
inlinenoexcept |
Definition at line 45 of file Document.h.
References end, Sci::invalidPosition, and start.
Referenced by Scintilla::Editor::ButtonMoveWithModifiers(), Scintilla::Editor::CheckForChangeOutsidePaint(), Scintilla::EditView::DrawBackground(), Scintilla::EditView::DrawForeground(), and Scintilla::Editor::SetHotSpotRange().
Sci::Position Scintilla::Range::end |
Definition at line 32 of file Document.h.
Referenced by Scintilla::BreakFinder::BreakFinder(), Contains(), ContainsCharacter(), Scintilla::Editor::DelWordOrLine(), DrawIndicators(), Scintilla::EditView::DrawLine(), DrawTranslucentSelection(), First(), Last(), Scintilla::BreakFinder::More(), Scintilla::Editor::MultipleSelectAdd(), Scintilla::BreakFinder::Next(), operator==(), Overlaps(), Scintilla::LineLayout::PointFromPosition(), Scintilla::EditView::RangeDisplayLine(), Scintilla::LineLayout::SetBracesHighlight(), Scintilla::Editor::SetHotSpotRange(), Scintilla::EditView::SPositionFromLineX(), Scintilla::EditView::SPositionFromLocation(), and Valid().
Sci::Position Scintilla::Range::start |
Definition at line 31 of file Document.h.
Referenced by Scintilla::BreakFinder::BreakFinder(), Contains(), ContainsCharacter(), Scintilla::Editor::DelWordOrLine(), Scintilla::EditView::DrawBackground(), DrawEdgeLine(), Scintilla::EditView::DrawForeground(), Scintilla::EditView::DrawLine(), DrawTranslucentSelection(), First(), Last(), Scintilla::Editor::MultipleSelectAdd(), operator==(), Overlaps(), Scintilla::LineLayout::PointFromPosition(), Scintilla::EditView::RangeDisplayLine(), Scintilla::LineLayout::RestoreBracesHighlight(), Scintilla::LineLayout::SetBracesHighlight(), Scintilla::Editor::SetHotSpotRange(), Scintilla::EditView::SPositionFromLineX(), Scintilla::EditView::SPositionFromLocation(), and Valid().