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.
|