wxRichTextRangeThis 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::wxRichTextRangewxRichTextRange(long start, long end) wxRichTextRange(const wxRichTextRange& range) wxRichTextRange() Constructors.
wxRichTextRange::~wxRichTextRange~wxRichTextRange() Destructor.
wxRichTextRange::Containsbool Contains(long pos) const Returns true if the given position is within this range. Does not match if the range is empty.
wxRichTextRange::GetEndlong GetEnd() const Returns the end position.
wxRichTextRange::GetLengthlong GetLength() const Returns the length of the range.
wxRichTextRange::GetStartlong GetStart() const Returns the start of the range.
wxRichTextRange::FromInternalwxRichTextRange 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.
wxRichTextRange::IsOutsidebool IsOutside(const wxRichTextRange& range) const Returns true if this range is completely outside range.
wxRichTextRange::IsWithinbool IsWithin(const wxRichTextRange& range) const Returns true if this range is completely within range.
wxRichTextRange::LimitTobool LimitTo(const wxRichTextRange& range) Limits this range to be within range.
wxRichTextRange::SetEndvoid SetEnd(long end) Sets the end of the range.
wxRichTextRange::SetRangevoid SetRange(long start, long end) Sets the range.
wxRichTextRange::SetStartvoid SetStart(long start) Sets the start of the range.
wxRichTextRange::Swapvoid Swap() Swaps the start and end.
wxRichTextRange::ToInternalwxRichTextRange 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+wxRichTextRange operator+(const wxRichTextRange& range) const Adds range to this range.
wxRichTextRange::operator-wxRichTextRange operator-(const wxRichTextRange& range) const Subtracts range from this range.
wxRichTextRange::operator=void operator=(const wxRichTextRange& range) Assigns range to this range.
wxRichTextRange::operator==bool operator==(const wxRichTextRange& range) const Returns true if range is the same as this range.
|