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
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Scintilla::SelectionRange Struct Reference

#include <Selection.h>

Collaboration diagram for Scintilla::SelectionRange:
[legend]

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
 

Detailed Description

Definition at line 86 of file Selection.h.

Constructor & Destructor Documentation

◆ SelectionRange() [1/5]

Scintilla::SelectionRange::SelectionRange ( )
inlinenoexcept

Definition at line 90 of file Selection.h.

◆ SelectionRange() [2/5]

Scintilla::SelectionRange::SelectionRange ( SelectionPosition  single)
inlineexplicitnoexcept

Definition at line 92 of file Selection.h.

◆ SelectionRange() [3/5]

Scintilla::SelectionRange::SelectionRange ( Sci::Position  single)
inlineexplicitnoexcept

Definition at line 94 of file Selection.h.

◆ SelectionRange() [4/5]

Scintilla::SelectionRange::SelectionRange ( SelectionPosition  caret_,
SelectionPosition  anchor_ 
)
inlinenoexcept

Definition at line 96 of file Selection.h.

◆ SelectionRange() [5/5]

Scintilla::SelectionRange::SelectionRange ( Sci::Position  caret_,
Sci::Position  anchor_ 
)
inlinenoexcept

Definition at line 98 of file Selection.h.

Member Function Documentation

◆ ClearVirtualSpace()

◆ Contains() [1/2]

bool SelectionRange::Contains ( Sci::Position  pos) const
noexcept

Definition at line 105 of file Selection.cxx.

References pos.

Referenced by Scintilla::Editor::PointInSelection(), and Scintilla::Editor::PositionInSelection().

◆ Contains() [2/2]

bool SelectionRange::Contains ( SelectionPosition  sp) const
noexcept

Definition at line 112 of file Selection.cxx.

◆ ContainsCharacter()

bool SelectionRange::ContainsCharacter ( Sci::Position  posCharacter) const
noexcept

Definition at line 119 of file Selection.cxx.

Referenced by DrawTranslucentSelection().

◆ Empty()

◆ End()

◆ Intersect()

◆ Length()

◆ MinimizeVirtualSpace()

◆ MoveForInsertDelete()

void SelectionRange::MoveForInsertDelete ( bool  insertion,
Sci::Position  startChange,
Sci::Position  length 
)
noexcept

Definition at line 91 of file Selection.cxx.

◆ operator<()

bool Scintilla::SelectionRange::operator< ( const SelectionRange other) const
inlinenoexcept

Definition at line 108 of file Selection.h.

References anchor, and caret.

◆ operator==()

bool Scintilla::SelectionRange::operator== ( const SelectionRange other) const
inlinenoexcept

Definition at line 105 of file Selection.h.

References anchor, and caret.

◆ Reset()

void Scintilla::SelectionRange::Reset ( )
inlinenoexcept

Definition at line 111 of file Selection.h.

References anchor, caret, and Scintilla::SelectionPosition::Reset().

Referenced by Scintilla::Selection::Clear().

◆ Start()

◆ Swap()

void SelectionRange::Swap ( )
noexcept

Definition at line 143 of file Selection.cxx.

References anchor, and caret.

Referenced by Scintilla::Editor::WndProc().

◆ Trim()

bool SelectionRange::Trim ( SelectionRange  range)
noexcept

Definition at line 147 of file Selection.cxx.

References PLATFORM_ASSERT.

Member Data Documentation

◆ anchor

◆ caret


The documentation for this struct was generated from the following files: