Version: 2.9.4
Public Member Functions | Public Attributes
wxRichTextAttr Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/richtext/richtextbuffer.h>

Inheritance diagram for wxRichTextAttr:

Detailed Description

A class representing enhanced attributes for rich text objects.

This adds a wxTextBoxAttr member to the basic wxTextAttr class.

Library:  wxRichText
Category:  Rich Text
参照:
wxRichTextAttr, wxTextBoxAttr, wxRichTextCtrl

Public Member Functions

 wxRichTextAttr (const wxTextAttr &attr)
 Constructor taking a wxTextAttr.
 wxRichTextAttr (const wxRichTextAttr &attr)
 Copy constructor.
 wxRichTextAttr ()
 Default constructor.
void Copy (const wxRichTextAttr &attr)
 Copy function.
void operator= (const wxRichTextAttr &attr)
 Assignment operator.
void operator= (const wxTextAttr &attr)
 Assignment operator.
bool operator== (const wxRichTextAttr &attr) const
 Equality test.
bool EqPartial (const wxRichTextAttr &attr, bool weakTest=true) const
 Partial equality test.
bool Apply (const wxRichTextAttr &style, const wxRichTextAttr *compareWith=NULL)
 Merges the given attributes.
void CollectCommonAttributes (const wxRichTextAttr &attr, wxRichTextAttr &clashingAttr, wxRichTextAttr &absentAttr)
 Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects.
bool RemoveStyle (const wxRichTextAttr &attr)
 Removes the specified attributes from this object.
wxTextBoxAttrGetTextBoxAttr ()
 Returns the text box attributes.
const wxTextBoxAttrGetTextBoxAttr () const
void SetTextBoxAttr (const wxTextBoxAttr &attr)
 Set the text box attributes.

Public Attributes

wxTextBoxAttr m_textBoxAttr

List of all members.


Constructor & Destructor Documentation

wxRichTextAttr::wxRichTextAttr ( const wxTextAttr attr) [inline]

Constructor taking a wxTextAttr.

wxRichTextAttr::wxRichTextAttr ( const wxRichTextAttr attr) [inline]

Copy constructor.

wxRichTextAttr::wxRichTextAttr ( ) [inline]

Default constructor.


Member Function Documentation

bool wxRichTextAttr::Apply ( const wxRichTextAttr style,
const wxRichTextAttr compareWith = NULL 
)

Merges the given attributes.

If compareWith is non-NULL, then it will be used to mask out those attributes that are the same in style and compareWith, for situations where we don't want to explicitly set inherited attributes.

void wxRichTextAttr::CollectCommonAttributes ( const wxRichTextAttr attr,
wxRichTextAttr clashingAttr,
wxRichTextAttr absentAttr 
)

Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects.

void wxRichTextAttr::Copy ( const wxRichTextAttr attr)

Copy function.

bool wxRichTextAttr::EqPartial ( const wxRichTextAttr attr,
bool  weakTest = true 
) const

Partial equality test.

If weakTest is true, attributes of this object do not have to be present if those attributes of attr are present. If weakTest is false, the function will fail if an attribute is present in attr but not in this object.

wxTextBoxAttr& wxRichTextAttr::GetTextBoxAttr ( ) [inline]

Returns the text box attributes.

const wxTextBoxAttr& wxRichTextAttr::GetTextBoxAttr ( ) const [inline]
void wxRichTextAttr::operator= ( const wxTextAttr attr) [inline]

Assignment operator.

Reimplemented from wxTextAttr.

void wxRichTextAttr::operator= ( const wxRichTextAttr attr) [inline]

Assignment operator.

bool wxRichTextAttr::operator== ( const wxRichTextAttr attr) const

Equality test.

bool wxRichTextAttr::RemoveStyle ( const wxRichTextAttr attr)

Removes the specified attributes from this object.

void wxRichTextAttr::SetTextBoxAttr ( const wxTextBoxAttr attr) [inline]

Set the text box attributes.


Member Data Documentation

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines