#include <wx/richtext/richtextbuffer.h>
This object represents a line in a paragraph, and stores offsets from the start of the paragraph representing the start and end positions of the line.
Public Member Functions | |
wxRichTextLine (wxRichTextParagraph *parent) | |
wxRichTextLine (const wxRichTextLine &obj) | |
virtual | ~wxRichTextLine () |
void | SetRange (const wxRichTextRange &range) |
Sets the range associated with this line. More... | |
void | SetRange (long from, long to) |
Sets the range associated with this line. More... | |
wxRichTextParagraph * | GetParent () |
Returns the parent paragraph. More... | |
const wxRichTextRange & | GetRange () const |
Returns the range. More... | |
wxRichTextRange & | GetRange () |
Returns the range. More... | |
wxRichTextRange | GetAbsoluteRange () const |
Returns the absolute range. More... | |
virtual wxSize | GetSize () const |
Returns the line size as calculated by Layout. More... | |
virtual void | SetSize (const wxSize &sz) |
Sets the line size as calculated by Layout. More... | |
virtual wxPoint | GetPosition () const |
Returns the object position relative to the parent. More... | |
virtual void | SetPosition (const wxPoint &pos) |
Sets the object position relative to the parent. More... | |
virtual wxPoint | GetAbsolutePosition () const |
Returns the absolute object position. More... | |
virtual wxRect | GetRect () const |
Returns the rectangle enclosing the line. More... | |
void | SetDescent (int descent) |
Sets the stored descent. More... | |
int | GetDescent () const |
Returns the stored descent. More... | |
void | Init (wxRichTextParagraph *parent) |
Initialises the object. More... | |
void | Copy (const wxRichTextLine &obj) |
Copies from obj. More... | |
virtual wxRichTextLine * | Clone () const |
Protected Attributes | |
wxRichTextRange | m_range |
wxPoint | m_pos |
wxSize | m_size |
int | m_descent |
wxRichTextParagraph * | m_parent |
wxRichTextLine::wxRichTextLine | ( | wxRichTextParagraph * | parent | ) |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
void wxRichTextLine::Copy | ( | const wxRichTextLine & | obj | ) |
Copies from obj.
|
virtual |
Returns the absolute object position.
wxRichTextRange wxRichTextLine::GetAbsoluteRange | ( | ) | const |
Returns the absolute range.
|
inline |
Returns the stored descent.
|
inline |
Returns the parent paragraph.
|
inlinevirtual |
Returns the object position relative to the parent.
|
inline |
Returns the range.
|
inline |
Returns the range.
|
inlinevirtual |
Returns the rectangle enclosing the line.
|
inlinevirtual |
Returns the line size as calculated by Layout.
void wxRichTextLine::Init | ( | wxRichTextParagraph * | parent | ) |
Initialises the object.
|
inline |
Sets the stored descent.
|
inlinevirtual |
Sets the object position relative to the parent.
|
inline |
Sets the range associated with this line.
|
inline |
Sets the range associated with this line.
|
inlinevirtual |
Sets the line size as calculated by Layout.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |