#include <wx/richtext/richtextbuffer.h>
A class representing a rich text object border.
Public Member Functions | |
wxTextAttrBorder () | |
Default constructor. More... | |
bool | operator== (const wxTextAttrBorder &border) const |
Equality operator. More... | |
void | Reset () |
Resets the border style, colour, width and flags. More... | |
bool | EqPartial (const wxTextAttrBorder &border, bool weakTest=true) const |
Partial equality test. More... | |
bool | Apply (const wxTextAttrBorder &border, const wxTextAttrBorder *compareWith=NULL) |
Applies the border to this object, but not if the same as compareWith. More... | |
bool | RemoveStyle (const wxTextAttrBorder &attr) |
Removes the specified attributes from this object. More... | |
void | CollectCommonAttributes (const wxTextAttrBorder &attr, wxTextAttrBorder &clashingAttr, wxTextAttrBorder &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. More... | |
void | SetStyle (int style) |
Sets the border style. More... | |
int | GetStyle () const |
Gets the border style. More... | |
void | SetColour (unsigned long colour) |
Sets the border colour. More... | |
void | SetColour (const wxColour &colour) |
Sets the border colour. More... | |
unsigned long | GetColourLong () const |
Gets the colour as a long. More... | |
wxColour | GetColour () const |
Gets the colour. More... | |
wxTextAttrDimension & | GetWidth () |
Gets the border width. More... | |
const wxTextAttrDimension & | GetWidth () const |
void | SetWidth (const wxTextAttrDimension &width) |
Sets the border width. More... | |
void | SetWidth (int value, wxTextAttrUnits units=wxTEXT_ATTR_UNITS_TENTHS_MM) |
Sets the border width. More... | |
bool | HasStyle () const |
True if the border has a valid style. More... | |
bool | HasColour () const |
True if the border has a valid colour. More... | |
bool | HasWidth () const |
True if the border has a valid width. More... | |
bool | IsValid () const |
True if the border is valid. More... | |
bool | IsDefault () const |
True if the border has no attributes set. More... | |
void | MakeValid () |
Set the valid flag for this border. More... | |
int | GetFlags () const |
Returns the border flags. More... | |
void | SetFlags (int flags) |
Sets the border flags. More... | |
void | AddFlag (int flag) |
Adds a border flag. More... | |
void | RemoveFlag (int flag) |
Removes a border flag. More... | |
Public Attributes | |
int | m_borderStyle |
unsigned long | m_borderColour |
wxTextAttrDimension | m_borderWidth |
int | m_flags |
|
inline |
Default constructor.
|
inline |
Adds a border flag.
bool wxTextAttrBorder::Apply | ( | const wxTextAttrBorder & | border, |
const wxTextAttrBorder * | compareWith = NULL |
||
) |
Applies the border to this object, but not if the same as compareWith.
void wxTextAttrBorder::CollectCommonAttributes | ( | const wxTextAttrBorder & | attr, |
wxTextAttrBorder & | clashingAttr, | ||
wxTextAttrBorder & | 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 wxTextAttrBorder::EqPartial | ( | const wxTextAttrBorder & | border, |
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 border are present. If weakTest is false, the function will fail if an attribute is present in border but not in this object.
|
inline |
Gets the colour.
|
inline |
Gets the colour as a long.
|
inline |
Returns the border flags.
|
inline |
Gets the border style.
|
inline |
Gets the border width.
|
inline |
|
inline |
True if the border has a valid colour.
|
inline |
True if the border has a valid style.
|
inline |
True if the border has a valid width.
|
inline |
True if the border has no attributes set.
|
inline |
True if the border is valid.
|
inline |
Set the valid flag for this border.
|
inline |
Equality operator.
|
inline |
Removes a border flag.
bool wxTextAttrBorder::RemoveStyle | ( | const wxTextAttrBorder & | attr | ) |
Removes the specified attributes from this object.
|
inline |
Resets the border style, colour, width and flags.
|
inline |
Sets the border colour.
|
inline |
Sets the border colour.
|
inline |
Sets the border flags.
|
inline |
Sets the border style.
|
inline |
Sets the border width.
|
inline |
Sets the border width.
unsigned long wxTextAttrBorder::m_borderColour |
int wxTextAttrBorder::m_borderStyle |
wxTextAttrDimension wxTextAttrBorder::m_borderWidth |
int wxTextAttrBorder::m_flags |