#include <wx/richtext/richtextbuffer.h>
A class for representing width and height.
- See also
- wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimension
|
| wxTextAttrSize () |
| Default constructor.
|
|
void | Reset () |
| Resets the width and height dimensions.
|
|
bool | operator== (const wxTextAttrSize &size) const |
| Equality operator.
|
|
bool | EqPartial (const wxTextAttrSize &size, bool weakTest=true) const |
| Partial equality test.
|
|
bool | Apply (const wxTextAttrSize &dims, const wxTextAttrSize *compareWith=NULL) |
| Apply to this object, but not if the same as compareWith.
|
|
void | CollectCommonAttributes (const wxTextAttrSize &attr, wxTextAttrSize &clashingAttr, wxTextAttrSize &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 wxTextAttrSize &attr) |
| Removes the specified attributes from this object.
|
|
wxTextAttrDimension & | GetWidth () |
| Returns the width.
|
|
const wxTextAttrDimension & | GetWidth () const |
|
void | SetWidth (int value, wxTextAttrDimensionFlags flags) |
| Sets the width.
|
|
void | SetWidth (int value, wxTextAttrUnits units) |
| Sets the width.
|
|
void | SetWidth (const wxTextAttrDimension &dim) |
| Sets the width.
|
|
wxTextAttrDimension & | GetHeight () |
| Gets the height.
|
|
const wxTextAttrDimension & | GetHeight () const |
|
void | SetHeight (int value, wxTextAttrDimensionFlags flags) |
| Sets the height.
|
|
void | SetHeight (int value, wxTextAttrUnits units) |
| Sets the height.
|
|
void | SetHeight (const wxTextAttrDimension &dim) |
| Sets the height.
|
|
bool | IsValid () const |
| Is the size valid?
|
|
◆ wxTextAttrSize()
wxTextAttrSize::wxTextAttrSize |
( |
| ) |
|
|
inline |
◆ Apply()
Apply to this object, but not if the same as compareWith.
◆ CollectCommonAttributes()
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.
◆ EqPartial()
bool wxTextAttrSize::EqPartial |
( |
const wxTextAttrSize & | size, |
|
|
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 size are present. If weakTest is false , the function will fail if an attribute is present in size but not in this object.
◆ GetHeight() [1/2]
◆ GetHeight() [2/2]
◆ GetWidth() [1/2]
◆ GetWidth() [2/2]
◆ IsValid()
bool wxTextAttrSize::IsValid |
( |
| ) |
const |
|
inline |
◆ operator==()
◆ RemoveStyle()
Removes the specified attributes from this object.
◆ Reset()
void wxTextAttrSize::Reset |
( |
| ) |
|
|
inline |
Resets the width and height dimensions.
◆ SetHeight() [1/3]
◆ SetHeight() [2/3]
◆ SetHeight() [3/3]
◆ SetWidth() [1/3]
◆ SetWidth() [2/3]
◆ SetWidth() [3/3]
◆ m_height
◆ m_width