#include <wx/richtext/richtextbuffer.h>
This stores beginning and end positions for a range of data.
<>< =''>:</>&;&;< =''>\ </></>
- See also
- wxRichTextBuffer, wxRichTextCtrl
◆ wxRichTextRange() [1/3]
wxRichTextRange::wxRichTextRange |
( |
| ) |
|
|
inline |
◆ wxRichTextRange() [2/3]
wxRichTextRange::wxRichTextRange |
( |
long |
start, |
|
|
long |
end |
|
) |
| |
|
inline |
Constructor taking start and end positions.
◆ wxRichTextRange() [3/3]
◆ ~wxRichTextRange()
wxRichTextRange::~wxRichTextRange |
( |
| ) |
|
|
inline |
◆ Contains()
bool wxRichTextRange::Contains |
( |
long |
pos | ) |
const |
|
inline |
Returns true if pos was within the range.
Does not match if the range is empty.
◆ FromInternal()
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. (n, n+1) is the range of a single character.
◆ GetEnd()
long wxRichTextRange::GetEnd |
( |
| ) |
const |
|
inline |
◆ GetLength()
long wxRichTextRange::GetLength |
( |
| ) |
const |
|
inline |
Gets the length of the range.
◆ GetStart()
long wxRichTextRange::GetStart |
( |
| ) |
const |
|
inline |
Returns the start position.
◆ IsOutside()
Returns true if this range is completely outside range.
◆ IsWithin()
Returns true if this range is completely within range.
◆ LimitTo()
Limit this range to be within range.
◆ operator!=()
◆ operator+()
Adds a range to this range.
◆ operator-()
Subtracts a range from this range.
◆ operator=()
Assigns range to this range.
◆ operator==()
Equality operator.
Returns true if range is the same as this range.
◆ SetEnd()
void wxRichTextRange::SetEnd |
( |
long |
end | ) |
|
|
inline |
◆ SetRange()
void wxRichTextRange::SetRange |
( |
long |
start, |
|
|
long |
end |
|
) |
| |
|
inline |
Sets the range start and end positions.
◆ SetStart()
void wxRichTextRange::SetStart |
( |
long |
start | ) |
|
|
inline |
◆ Swap()
void wxRichTextRange::Swap |
( |
| ) |
|
|
inline |
◆ ToInternal()
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. (n, n) is the range of a single character.
◆ m_end
long wxRichTextRange::m_end |
|
protected |
◆ m_start
long wxRichTextRange::m_start |
|
protected |