wx.richtext.TextAttrShadow¶
A class representing a shadow.
Class Hierarchy¶
Methods Summary¶
Default constructor. |
|
Adds a border flag. |
|
Applies the border to this object, but not if the same as compareWith. |
|
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. |
|
Partial equality test. |
|
Gets the shadow blur distance. |
|
Gets the colour. |
|
Gets the colour as a long. |
|
Returns the border flags. |
|
Gets the shadow horizontal offset. |
|
Gets the shadow vertical offset. |
|
Gets the shadow opacity. |
|
Gets the shadow spread size. |
|
True if the shadow has a valid colour. |
|
True if the shadow has no attributes set. |
|
Returns |
|
Removes a border flag. |
|
Removes the specified attributes from this object. |
|
Resets the shadow. |
|
Sets the shadow blur distance. |
|
Sets the shadow colour. |
|
Sets the border flags. |
|
Sets the shadow horizontal offset. |
|
Sets the shadow vertical offset. |
|
Sets the shadow opacity. |
|
Sets the shadow spread size. |
|
Sets the valid flag. |
|
Equality operator. |
Properties Summary¶
See |
|
See |
|
See |
|
See |
|
See |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
Class API¶
- class wx.richtext.TextAttrShadow(object)¶
Possible constructors:
TextAttrShadow() -> None
A class representing a shadow.
Methods¶
- __init__(self)¶
Default constructor.
- Return type:
None
- AddFlag(self, flag)¶
Adds a border flag.
- Parameters:
flag (int)
- Return type:
None
- Apply(self, shadow, compareWith=None)¶
Applies the border to this object, but not if the same as compareWith.
- Parameters:
shadow (wx.richtext.TextAttrShadow)
compareWith (wx.richtext.TextAttrShadow)
- Return type:
bool
- CollectCommonAttributes(self, attr, clashingAttr, 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.
- Parameters:
attr (wx.richtext.TextAttrShadow)
clashingAttr (wx.richtext.TextAttrShadow)
absentAttr (wx.richtext.TextAttrShadow)
- Return type:
None
- EqPartial(self, shadow, weakTest=True)¶
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 isFalse
, the function will fail if an attribute is present in border but not in this object.- Parameters:
shadow (wx.richtext.TextAttrShadow)
weakTest (bool)
- Return type:
bool
- GetBlurDistance(self)¶
Gets the shadow blur distance.
- Return type:
- GetColourLong(self)¶
Gets the colour as a long.
- Return type:
int
- GetFlags(self)¶
Returns the border flags.
- Return type:
int
- GetOffsetX(self)¶
Gets the shadow horizontal offset.
- Return type:
- GetOffsetY(self)¶
Gets the shadow vertical offset.
- Return type:
- GetOpacity(self)¶
Gets the shadow opacity.
- Return type:
- GetSpread(self)¶
Gets the shadow spread size.
- Return type:
- HasColour(self)¶
True if the shadow has a valid colour.
- Return type:
bool
- IsDefault(self)¶
True if the shadow has no attributes set.
- Return type:
bool
- IsValid(self)¶
Returns
True
if the dimension is valid.- Return type:
bool
- RemoveFlag(self, flag)¶
Removes a border flag.
- Parameters:
flag (int)
- Return type:
None
- RemoveStyle(self, attr)¶
Removes the specified attributes from this object.
- Parameters:
attr (wx.richtext.TextAttrShadow)
- Return type:
bool
- Reset(self)¶
Resets the shadow.
- Return type:
None
- SetBlurDistance(self, blur)¶
Sets the shadow blur distance.
- Parameters:
- Return type:
None
- SetColour(self, *args, **kw)¶
Sets the shadow colour.
SetColour (self, colour)
- Parameters:
colour (long)
- Return type:
None
SetColour (self, colour)
- Parameters:
colour (wx.Colour)
- Return type:
None
- SetFlags(self, flags)¶
Sets the border flags.
- Parameters:
flags (int)
- Return type:
None
- SetOffsetX(self, offset)¶
Sets the shadow horizontal offset.
- Parameters:
offset (wx.richtext.TextAttrDimension)
- Return type:
None
- SetOffsetY(self, offset)¶
Sets the shadow vertical offset.
- Parameters:
offset (wx.richtext.TextAttrDimension)
- Return type:
None
- SetOpacity(self, opacity)¶
Sets the shadow opacity.
- Parameters:
opacity (wx.richtext.TextAttrDimension)
- Return type:
None
- SetSpread(self, spread)¶
Sets the shadow spread size.
- Parameters:
spread (wx.richtext.TextAttrDimension)
- Return type:
None
- SetValid(self, b)¶
Sets the valid flag.
- Parameters:
b (bool)
- Return type:
None
- __eq__(self, shadow)¶
Equality operator.
- Parameters:
shadow (wx.richtext.TextAttrShadow)
- Return type:
bool
Properties¶
- BlurDistance¶
See
GetBlurDistance
andSetBlurDistance
- ColourLong¶
See
GetColourLong
- OffsetX¶
See
GetOffsetX
andSetOffsetX
- OffsetY¶
See
GetOffsetY
andSetOffsetY
- Opacity¶
See
GetOpacity
andSetOpacity
- m_blurDistance¶
A public C++ attribute of type
TextAttrDimension
.
- m_flags¶
A public C++ attribute of type
int
.
- m_offsetX¶
A public C++ attribute of type
TextAttrDimension
.
- m_offsetY¶
A public C++ attribute of type
TextAttrDimension
.
- m_opacity¶
A public C++ attribute of type
TextAttrDimension
.
- m_shadowColour¶
A public C++ attribute of type
long
.
- m_spread¶
A public C++ attribute of type
TextAttrDimension
.