Lines Matching defs:m_end
310 wxRichTextRange() { m_start = 0; m_end = 0; }
311 wxRichTextRange(long start, long end) { m_start = start; m_end = end; }
312 wxRichTextRange(const wxRichTextRange& range) { m_start = range.m_start; m_end = range.m_end; }
315 void operator =(const wxRichTextRange& range) { m_start = range.m_start; m_end = range.m_end; }
316 bool operator ==(const wxRichTextRange& range) const { return (m_start == range.m_start && m_end == range.m_end); }
317 bool operator !=(const wxRichTextRange& range) const { return (m_start != range.m_start || m_end != range.m_end); }
318 wxRichTextRange operator -(const wxRichTextRange& range) const { return wxRichTextRange(m_start - range.m_start, m_end - range.m_end); }
319 wxRichTextRange operator +(const wxRichTextRange& range) const { return wxRichTextRange(m_start + range.m_start, m_end + range.m_end); }
321 void SetRange(long start, long end) { m_start = start; m_end = end; }
326 void SetEnd(long end) { m_end = end; }
327 long GetEnd() const { return m_end; }
330 bool IsOutside(const wxRichTextRange& range) const { return range.m_start > m_end || range.m_end < m_start; }
333 bool IsWithin(const wxRichTextRange& range) const { return m_start >= range.m_start && m_end <= range.m_end; }
338 // bool Contains(long pos) const { return pos >= m_start && (pos <= m_end || GetLength() == 0); }
339 bool Contains(long pos) const { return pos >= m_start && pos <= m_end ; }
345 long GetLength() const { return m_end - m_start + 1; }
348 void Swap() { long tmp = m_start; m_start = m_end; m_end = tmp; }
351 wxRichTextRange ToInternal() const { return wxRichTextRange(m_start, m_end-1); }
354 wxRichTextRange FromInternal() const { return wxRichTextRange(m_start, m_end+1); }
358 long m_end;