This class stores beginning and end positions for a range of data.
Derived from
No base class
Include files
<wx/richtext/richtextbuffer.h>
Data structures
Members
wxRichTextRange::wxRichTextRange
wxRichTextRange::~wxRichTextRange
wxRichTextRange::Contains
wxRichTextRange::GetEnd
wxRichTextRange::GetLength
wxRichTextRange::GetStart
wxRichTextRange::FromInternal
wxRichTextRange::IsOutside
wxRichTextRange::IsWithin
wxRichTextRange::LimitTo
wxRichTextRange::SetEnd
wxRichTextRange::SetRange
wxRichTextRange::SetStart
wxRichTextRange::Swap
wxRichTextRange::ToInternal
wxRichTextRange::operator+
wxRichTextRange::operator-
wxRichTextRange::operator=
wxRichTextRange::operator==
wxRichTextRange(long start, long end)
wxRichTextRange(const wxRichTextRange& range)
wxRichTextRange()
Constructors.
~wxRichTextRange()
Destructor.
bool Contains(long pos) const
Returns true if the given position is within this range. Does not match if the range is empty.
long GetEnd() const
Returns the end position.
long GetLength() const
Returns the length of the range.
long GetStart() const
Returns the start of the range.
wxRichTextRange FromInternal() const
Converts the internal range, which uses the first and last character positions of the range, to the API-standard range, whose end is one past the last character in the range. In other words, one is added to the end position.
bool IsOutside(const wxRichTextRange& range) const
Returns true if this range is completely outside range.
bool IsWithin(const wxRichTextRange& range) const
Returns true if this range is completely within range.
bool LimitTo(const wxRichTextRange& range)
Limits this range to be within range.
void SetEnd(long end)
Sets the end of the range.
void SetRange(long start, long end)
Sets the range.
void SetStart(long start)
Sets the start of the range.
void Swap()
Swaps the start and end.
wxRichTextRange ToInternal() const
Converts the API-standard range, whose end is one past the last character in the range, to the internal form, which uses the first and last character positions of the range. In other words, one is subtracted from the end position.
wxRichTextRange operator+(const wxRichTextRange& range) const
Adds range to this range.
wxRichTextRange operator-(const wxRichTextRange& range) const
Subtracts range from this range.
void operator=(const wxRichTextRange& range)
Assigns range to this range.
bool operator==(const wxRichTextRange& range) const
Returns true if range is the same as this range.