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>
13 \wxheading{Data structures
}
15 \latexignore{\rtfignore{\wxheading{Members
}}}
17 \membersection{wxRichTextRange::wxRichTextRange
}\label{wxrichtextrangewxrichtextrange
}
19 \func{}{wxRichTextRange
}{\param{long
}{start
},
\param{long
}{end
}}
21 \func{}{wxRichTextRange
}{\param{const wxRichTextRange\&
}{range
}}
23 \func{}{wxRichTextRange
}{\void}
27 \membersection{wxRichTextRange::
\destruct{wxRichTextRange
}}\label{wxrichtextrangedtor
}
29 \func{}{\destruct{wxRichTextRange
}}{\void}
33 \membersection{wxRichTextRange::Contains
}\label{wxrichtextrangecontains
}
35 \constfunc{bool
}{Contains
}{\param{long
}{pos
}}
37 Returns
\true if the given position is within this range. Does not
38 match if the range is empty.
40 \membersection{wxRichTextRange::GetEnd
}\label{wxrichtextrangegetend
}
42 \constfunc{long
}{GetEnd
}{\void}
44 Returns the end position.
46 \membersection{wxRichTextRange::GetLength
}\label{wxrichtextrangegetlength
}
48 \constfunc{long
}{GetLength
}{\void}
50 Returns the length of the range.
52 \membersection{wxRichTextRange::GetStart
}\label{wxrichtextrangegetstart
}
54 \constfunc{long
}{GetStart
}{\void}
56 Returns the start of the range.
58 \membersection{wxRichTextRange::FromInternal
}\label{wxrichtextrangefrominternal
}
60 \constfunc{wxRichTextRange
}{FromInternal
}{\void}
62 Converts the internal range, which uses the first and last character positions of the range,
63 to the API-standard range, whose end is one past the last character in the range.
64 In other words, one is added to the end position.
66 \membersection{wxRichTextRange::IsOutside
}\label{wxrichtextrangeisoutside
}
68 \constfunc{bool
}{IsOutside
}{\param{const wxRichTextRange\&
}{range
}}
70 Returns
\true if this range is completely outside
{\it range
}.
72 \membersection{wxRichTextRange::IsWithin
}\label{wxrichtextrangeiswithin
}
74 \constfunc{bool
}{IsWithin
}{\param{const wxRichTextRange\&
}{range
}}
76 Returns
\true if this range is completely within
{\it range
}.
78 \membersection{wxRichTextRange::LimitTo
}\label{wxrichtextrangelimitto
}
80 \func{bool
}{LimitTo
}{\param{const wxRichTextRange\&
}{range
}}
82 Limits this range to be within
{\it range
}.
84 \membersection{wxRichTextRange::SetEnd
}\label{wxrichtextrangesetend
}
86 \func{void
}{SetEnd
}{\param{long
}{end
}}
88 Sets the end of the range.
90 \membersection{wxRichTextRange::SetRange
}\label{wxrichtextrangesetrange
}
92 \func{void
}{SetRange
}{\param{long
}{start
},
\param{long
}{end
}}
96 \membersection{wxRichTextRange::SetStart
}\label{wxrichtextrangesetstart
}
98 \func{void
}{SetStart
}{\param{long
}{start
}}
100 Sets the start of the range.
102 \membersection{wxRichTextRange::Swap
}\label{wxrichtextrangeswap
}
104 \func{void
}{Swap
}{\void}
106 Swaps the start and end.
108 \membersection{wxRichTextRange::ToInternal
}\label{wxrichtextrangetointernal
}
110 \constfunc{wxRichTextRange
}{ToInternal
}{\void}
112 Converts the API-standard range, whose end is one past the last character in the range,
113 to the internal form, which uses the first and last character positions of the range.
114 In other words, one is subtracted from the end position.
116 \membersection{wxRichTextRange::operator+
}\label{wxrichtextrangeoperatorplus
}
118 \constfunc{wxRichTextRange
}{operator+
}{\param{const wxRichTextRange\&
}{range
}}
120 Adds
{\it range
} to this range.
122 \membersection{wxRichTextRange::operator-
}\label{wxrichtextrangeoperatorminus
}
124 \constfunc{wxRichTextRange
}{operator-
}{\param{const wxRichTextRange\&
}{range
}}
126 Subtracts
{\it range
} from this range.
128 \membersection{wxRichTextRange::operator=
}\label{wxrichtextrangeoperatorassign
}
130 \func{void
}{operator=
}{\param{const wxRichTextRange\&
}{range
}}
132 Assigns
{\it range
} to this range.
134 \membersection{wxRichTextRange::operator==
}\label{wxrichtextrangeoperatorequal
}
136 \constfunc{bool
}{operator==
}{\param{const wxRichTextRange\&
}{range
}}
138 Returns
\true if
{\it range
} is the same as this range.