A class representing a shadow.
See also
wx.richtext.RichTextAttr, wx.richtext.RichTextCtrl
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. |
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 |
wx.richtext.
TextAttrShadow
(object)¶Possible constructors:
TextAttrShadow()
A class representing a shadow.
__init__
(self)¶Default constructor.
AddFlag
(self, flag)¶Adds a border flag.
flag (int) –
Apply
(self, shadow, compareWith=None)¶Applies the border to this object, but not if the same as compareWith.
shadow (wx.richtext.TextAttrShadow) –
compareWith (wx.richtext.TextAttrShadow) –
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.
attr (wx.richtext.TextAttrShadow) –
clashingAttr (wx.richtext.TextAttrShadow) –
absentAttr (wx.richtext.TextAttrShadow) –
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 is False
, the function will fail if an attribute is present in border but not in this object.
shadow (wx.richtext.TextAttrShadow) –
weakTest (bool) –
bool
GetBlurDistance
(self)¶Gets the shadow blur distance.
GetColourLong
(self)¶Gets the colour as a long.
int
GetFlags
(self)¶Returns the border flags.
int
GetOffsetX
(self)¶Gets the shadow horizontal offset.
GetOffsetY
(self)¶Gets the shadow vertical offset.
GetOpacity
(self)¶Gets the shadow opacity.
GetSpread
(self)¶Gets the shadow spread size.
HasColour
(self)¶True if the shadow has a valid colour.
bool
IsDefault
(self)¶True if the shadow has no attributes set.
bool
IsValid
(self)¶Returns True
if the dimension is valid.
bool
RemoveFlag
(self, flag)¶Removes a border flag.
flag (int) –
RemoveStyle
(self, attr)¶Removes the specified attributes from this object.
attr (wx.richtext.TextAttrShadow) –
bool
Reset
(self)¶Resets the shadow.
SetBlurDistance
(self, blur)¶Sets the shadow blur distance.
blur (wx.richtext.TextAttrDimension) –
SetColour
(self, *args, **kw)¶Sets the shadow colour.
SetColour (self, colour)
colour (long) –
SetColour (self, colour)
colour (wx.Colour) –
SetFlags
(self, flags)¶Sets the border flags.
flags (int) –
SetOffsetX
(self, offset)¶Sets the shadow horizontal offset.
offset (wx.richtext.TextAttrDimension) –
SetOffsetY
(self, offset)¶Sets the shadow vertical offset.
offset (wx.richtext.TextAttrDimension) –
SetOpacity
(self, opacity)¶Sets the shadow opacity.
opacity (wx.richtext.TextAttrDimension) –
SetSpread
(self, spread)¶Sets the shadow spread size.
spread (wx.richtext.TextAttrDimension) –
SetValid
(self, b)¶Sets the valid flag.
b (bool) –
__eq__
(self)¶Equality operator.
shadow (wx.richtext.TextAttrShadow) –
BlurDistance
¶See GetBlurDistance
and SetBlurDistance
ColourLong
¶See GetColourLong
OffsetX
¶See GetOffsetX
and SetOffsetX
OffsetY
¶See GetOffsetY
and SetOffsetY
Opacity
¶See GetOpacity
and SetOpacity
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
.