1 \section{\class{wxRichTextRange
}}\label{wxrichtextrange
}
3 This class stores beginning and end positions for a range of data.
5 \wxheading{Derived from
}
9 \wxheading{Include files
}
11 <wx/richtext/richtextbuffer.h>
15 \helpref{wxRichtext
}{librarieslist
}
17 \wxheading{Data structures
}
19 \latexignore{\rtfignore{\wxheading{Members
}}}
21 \membersection{wxRichTextRange::wxRichTextRange
}\label{wxrichtextrangewxrichtextrange
}
23 \func{}{wxRichTextRange
}{\param{long
}{start
},
\param{long
}{end
}}
25 \func{}{wxRichTextRange
}{\param{const wxRichTextRange\&
}{range
}}
27 \func{}{wxRichTextRange
}{\void}
31 \membersection{wxRichTextRange::
\destruct{wxRichTextRange
}}\label{wxrichtextrangedtor
}
33 \func{}{\destruct{wxRichTextRange
}}{\void}
37 \membersection{wxRichTextRange::Contains
}\label{wxrichtextrangecontains
}
39 \constfunc{bool
}{Contains
}{\param{long
}{pos
}}
41 Returns
\true if the given position is within this range. Does not
42 match if the range is empty.
44 \membersection{wxRichTextRange::GetEnd
}\label{wxrichtextrangegetend
}
46 \constfunc{long
}{GetEnd
}{\void}
48 Returns the end position.
50 \membersection{wxRichTextRange::GetLength
}\label{wxrichtextrangegetlength
}
52 \constfunc{long
}{GetLength
}{\void}
54 Returns the length of the range.
56 \membersection{wxRichTextRange::GetStart
}\label{wxrichtextrangegetstart
}
58 \constfunc{long
}{GetStart
}{\void}
60 Returns the start of the range.
62 \membersection{wxRichTextRange::FromInternal
}\label{wxrichtextrangefrominternal
}
64 \constfunc{wxRichTextRange
}{FromInternal
}{\void}
66 Converts the internal range, which uses the first and last character positions of the range,
67 to the API-standard range, whose end is one past the last character in the range.
68 In other words, one is added to the end position.
70 \membersection{wxRichTextRange::IsOutside
}\label{wxrichtextrangeisoutside
}
72 \constfunc{bool
}{IsOutside
}{\param{const wxRichTextRange\&
}{range
}}
74 Returns
\true if this range is completely outside
{\it range
}.
76 \membersection{wxRichTextRange::IsWithin
}\label{wxrichtextrangeiswithin
}
78 \constfunc{bool
}{IsWithin
}{\param{const wxRichTextRange\&
}{range
}}
80 Returns
\true if this range is completely within
{\it range
}.
82 \membersection{wxRichTextRange::LimitTo
}\label{wxrichtextrangelimitto
}
84 \func{bool
}{LimitTo
}{\param{const wxRichTextRange\&
}{range
}}
86 Limits this range to be within
{\it range
}.
88 \membersection{wxRichTextRange::SetEnd
}\label{wxrichtextrangesetend
}
90 \func{void
}{SetEnd
}{\param{long
}{end
}}
92 Sets the end of the range.
94 \membersection{wxRichTextRange::SetRange
}\label{wxrichtextrangesetrange
}
96 \func{void
}{SetRange
}{\param{long
}{start
},
\param{long
}{end
}}
100 \membersection{wxRichTextRange::SetStart
}\label{wxrichtextrangesetstart
}
102 \func{void
}{SetStart
}{\param{long
}{start
}}
104 Sets the start of the range.
106 \membersection{wxRichTextRange::Swap
}\label{wxrichtextrangeswap
}
108 \func{void
}{Swap
}{\void}
110 Swaps the start and end.
112 \membersection{wxRichTextRange::ToInternal
}\label{wxrichtextrangetointernal
}
114 \constfunc{wxRichTextRange
}{ToInternal
}{\void}
116 Converts the API-standard range, whose end is one past the last character in the range,
117 to the internal form, which uses the first and last character positions of the range.
118 In other words, one is subtracted from the end position.
120 \membersection{wxRichTextRange::operator+
}\label{wxrichtextrangeoperatorplus
}
122 \constfunc{wxRichTextRange
}{operator+
}{\param{const wxRichTextRange\&
}{range
}}
124 Adds
{\it range
} to this range.
126 \membersection{wxRichTextRange::operator-
}\label{wxrichtextrangeoperatorminus
}
128 \constfunc{wxRichTextRange
}{operator-
}{\param{const wxRichTextRange\&
}{range
}}
130 Subtracts
{\it range
} from this range.
132 \membersection{wxRichTextRange::operator=
}\label{wxrichtextrangeoperatorassign
}
134 \func{void
}{operator=
}{\param{const wxRichTextRange\&
}{range
}}
136 Assigns
{\it range
} to this range.
138 \membersection{wxRichTextRange::operator==
}\label{wxrichtextrangeoperatorequal
}
140 \constfunc{bool
}{operator==
}{\param{const wxRichTextRange\&
}{range
}}
142 Returns
\true if
{\it range
} is the same as this range.