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::IsOutside
}\label{wxrichtextrangeisoutside
}
60 \constfunc{bool
}{IsOutside
}{\param{const wxRichTextRange\&
}{range
}}
62 Returns
\true if this range is completely outside
{\it range
}.
64 \membersection{wxRichTextRange::IsWithin
}\label{wxrichtextrangeiswithin
}
66 \constfunc{bool
}{IsWithin
}{\param{const wxRichTextRange\&
}{range
}}
68 Returns
\true if this range is completely within
{\it range
}.
70 \membersection{wxRichTextRange::LimitTo
}\label{wxrichtextrangelimitto
}
72 \func{bool
}{LimitTo
}{\param{const wxRichTextRange\&
}{range
}}
74 Limits this range to be within
{\it range
}.
76 \membersection{wxRichTextRange::SetEnd
}\label{wxrichtextrangesetend
}
78 \func{void
}{SetEnd
}{\param{long
}{end
}}
80 Sets the end of the range.
82 \membersection{wxRichTextRange::SetRange
}\label{wxrichtextrangesetrange
}
84 \func{void
}{SetRange
}{\param{long
}{start
},
\param{long
}{end
}}
88 \membersection{wxRichTextRange::SetStart
}\label{wxrichtextrangesetstart
}
90 \func{void
}{SetStart
}{\param{long
}{start
}}
92 Sets the start of the range.
94 \membersection{wxRichTextRange::Swap
}\label{wxrichtextrangeswap
}
96 \func{void
}{Swap
}{\void}
98 Swaps the start and end.
100 \membersection{wxRichTextRange::operator+
}\label{wxrichtextrangeoperatorplus
}
102 \constfunc{wxRichTextRange
}{operator+
}{\param{const wxRichTextRange\&
}{range
}}
104 Adds
{\it range
} to this range.
106 \membersection{wxRichTextRange::operator-
}\label{wxrichtextrangeoperatorminus
}
108 \constfunc{wxRichTextRange
}{operator-
}{\param{const wxRichTextRange\&
}{range
}}
110 Subtracs
{\it range
} from this range.
112 \membersection{wxRichTextRange::operator=
}\label{wxrichtextrangeoperatorassign
}
114 \func{void
}{operator=
}{\param{const wxRichTextRange\&
}{range
}}
116 Assigns
{\it range
} to this range.
118 \membersection{wxRichTextRange::operator==
}\label{wxrichtextrangeoperatorequal
}
120 \constfunc{bool
}{operator==
}{\param{const wxRichTextRange\&
}{range
}}
122 Returns
\true if
{\it range
} is the same as this range.