#include <wx/richtext/richtextbuffer.h>
A class representing a shadow.
Public Member Functions | |
wxTextAttrShadow () | |
Default constructor. More... | |
bool | operator== (const wxTextAttrShadow &shadow) const |
Equality operator. More... | |
void | Reset () |
Resets the shadow. More... | |
bool | EqPartial (const wxTextAttrShadow &shadow, bool weakTest=true) const |
Partial equality test. More... | |
bool | Apply (const wxTextAttrShadow &shadow, const wxTextAttrShadow *compareWith=NULL) |
Applies the border to this object, but not if the same as compareWith. More... | |
bool | RemoveStyle (const wxTextAttrShadow &attr) |
Removes the specified attributes from this object. More... | |
void | CollectCommonAttributes (const wxTextAttrShadow &attr, wxTextAttrShadow &clashingAttr, wxTextAttrShadow &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 | SetColour (unsigned long colour) |
Sets the shadow colour. More... | |
void | SetColour (const wxColour &colour) |
Sets the shadow colour. More... | |
unsigned long | GetColourLong () const |
Gets the colour as a long. More... | |
wxColour | GetColour () const |
Gets the colour. More... | |
bool | HasColour () const |
True if the shadow has a valid colour. More... | |
wxTextAttrDimension & | GetOffsetX () |
Gets the shadow horizontal offset. More... | |
const wxTextAttrDimension & | GetOffsetX () const |
void | SetOffsetX (const wxTextAttrDimension &offset) |
Sets the shadow horizontal offset. More... | |
wxTextAttrDimension & | GetOffsetY () |
Gets the shadow vertical offset. More... | |
const wxTextAttrDimension & | GetOffsetY () const |
void | SetOffsetY (const wxTextAttrDimension &offset) |
Sets the shadow vertical offset. More... | |
wxTextAttrDimension & | GetSpread () |
Gets the shadow spread size. More... | |
const wxTextAttrDimension & | GetSpread () const |
void | SetSpread (const wxTextAttrDimension &spread) |
Sets the shadow spread size. More... | |
wxTextAttrDimension & | GetBlurDistance () |
Gets the shadow blur distance. More... | |
const wxTextAttrDimension & | GetBlurDistance () const |
void | SetBlurDistance (const wxTextAttrDimension &blur) |
Sets the shadow blur distance. More... | |
wxTextAttrDimension & | GetOpacity () |
Gets the shadow opacity. More... | |
const wxTextAttrDimension & | GetOpacity () const |
bool | IsValid () const |
Returns true if the dimension is valid. More... | |
void | SetValid (bool b) |
Sets the valid flag. 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... | |
void | SetOpacity (const wxTextAttrDimension &opacity) |
Sets the shadow opacity. More... | |
bool | IsDefault () const |
True if the shadow has no attributes set. More... | |
Public Attributes | |
int | m_flags |
unsigned long | m_shadowColour |
wxTextAttrDimension | m_offsetX |
wxTextAttrDimension | m_offsetY |
wxTextAttrDimension | m_spread |
wxTextAttrDimension | m_blurDistance |
wxTextAttrDimension | m_opacity |
|
inline |
Default constructor.
|
inline |
Adds a border flag.
bool wxTextAttrShadow::Apply | ( | const wxTextAttrShadow & | shadow, |
const wxTextAttrShadow * | compareWith = NULL |
||
) |
Applies the border to this object, but not if the same as compareWith.
void wxTextAttrShadow::CollectCommonAttributes | ( | const wxTextAttrShadow & | attr, |
wxTextAttrShadow & | clashingAttr, | ||
wxTextAttrShadow & | 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 wxTextAttrShadow::EqPartial | ( | const wxTextAttrShadow & | shadow, |
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 shadow blur distance.
|
inline |
|
inline |
Gets the colour.
|
inline |
Gets the colour as a long.
|
inline |
Returns the border flags.
|
inline |
Gets the shadow horizontal offset.
|
inline |
|
inline |
Gets the shadow vertical offset.
|
inline |
|
inline |
Gets the shadow opacity.
|
inline |
|
inline |
Gets the shadow spread size.
|
inline |
|
inline |
True if the shadow has a valid colour.
|
inline |
True if the shadow has no attributes set.
|
inline |
Returns true if the dimension is valid.
bool wxTextAttrShadow::operator== | ( | const wxTextAttrShadow & | shadow | ) | const |
Equality operator.
|
inline |
Removes a border flag.
bool wxTextAttrShadow::RemoveStyle | ( | const wxTextAttrShadow & | attr | ) |
Removes the specified attributes from this object.
void wxTextAttrShadow::Reset | ( | ) |
Resets the shadow.
|
inline |
Sets the shadow blur distance.
|
inline |
Sets the shadow colour.
|
inline |
Sets the shadow colour.
|
inline |
Sets the border flags.
|
inline |
Sets the shadow horizontal offset.
|
inline |
Sets the shadow vertical offset.
|
inline |
Sets the shadow opacity.
|
inline |
Sets the shadow spread size.
|
inline |
Sets the valid flag.
wxTextAttrDimension wxTextAttrShadow::m_blurDistance |
int wxTextAttrShadow::m_flags |
wxTextAttrDimension wxTextAttrShadow::m_offsetX |
wxTextAttrDimension wxTextAttrShadow::m_offsetY |
wxTextAttrDimension wxTextAttrShadow::m_opacity |
unsigned long wxTextAttrShadow::m_shadowColour |
wxTextAttrDimension wxTextAttrShadow::m_spread |