wx.richtext.TextBoxAttr¶
A class representing the box attributes of a rich text object.
Class Hierarchy¶
Methods Summary¶
Default constructor. |
|
Adds this flag. |
|
Merges the given attributes. |
|
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, ignoring unset attributes. |
|
Returns the borders. |
|
Returns the bottom position. |
|
Returns the bottom border. |
|
Returns the bottom margin. |
|
Returns the bottom outline. |
|
Returns the bottom padding value. |
|
Returns the box style name. |
|
Returns the clear mode - whether to wrap text after object. |
|
Returns the collapse mode - whether to collapse borders. |
|
Returns the flags. |
|
Returns the float mode. |
|
Returns the object height. |
|
Returns the left position. |
|
Returns the left border. |
|
Returns the left margin. |
|
Returns the left outline. |
|
Returns the left padding value. |
|
Returns the margin values. |
|
Returns the object maximum size. |
|
Returns the object minimum size. |
|
Returns the outline. |
|
Returns the padding values. |
|
Returns the position. |
|
Returns the right position. |
|
Returns the right border. |
|
Returns the right margin. |
|
Returns the right outline. |
|
Returns the right padding value. |
|
Returns the box shadow attributes. |
|
Returns the object size. |
|
Returns the top position. |
|
Returns the top border. |
|
Returns the top margin. |
|
Returns the top outline. |
|
Returns the top padding value. |
|
Returns the vertical alignment. |
|
Returns the whitespace mode. |
|
Returns the object width. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Is this flag present? |
|
Returns |
|
Returns |
|
Returns |
|
Initialises this object. |
|
Returns |
|
Returns |
|
Removes this flag. |
|
Removes the specified attributes from this object. |
|
Resets this object. |
|
Sets the box style name. |
|
Set the clear mode. |
|
Sets the collapse mode - whether to collapse borders. |
|
Sets the corner radius value. |
|
Sets the flags. |
|
Sets the float mode. |
|
Sets the object maximum size. |
|
Sets the object minimum size. |
|
Sets the object size. |
|
Sets the vertical alignment. |
|
Sets the whitespace mode. |
|
Equality test. |
Properties Summary¶
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
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 |
|
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 |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
Class API¶
- class wx.richtext.TextBoxAttr(object)¶
Possible constructors:
TextBoxAttr() -> None TextBoxAttr(attr) -> None
A class representing the box attributes of a rich text object.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor.
- Return type:
None
__init__ (self, attr)
Copy constructor.
- Parameters:
attr (wx.richtext.TextBoxAttr)
- Return type:
None
- AddFlag(self, flag)¶
Adds this flag.
- Parameters:
flag (TextBoxAttrFlags)
- Return type:
None
- Apply(self, style, compareWith=None)¶
Merges the given attributes.
If compareWith is not
None
, then it will be used to mask out those attributes that are the same in style and compareWith, for situations where we don’t want to explicitly set inherited attributes.- Parameters:
style (wx.richtext.TextBoxAttr)
compareWith (wx.richtext.TextBoxAttr)
- 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.TextBoxAttr)
clashingAttr (wx.richtext.TextBoxAttr)
absentAttr (wx.richtext.TextBoxAttr)
- Return type:
None
- EqPartial(self, attr, weakTest=True)¶
Partial equality test, ignoring unset attributes.
If weakTest is
True
, attributes of this object do not have to be present if those attributes ofattr
are present. If weakTest isFalse
, the function will fail if an attribute is present inattr
but not in this object.- Parameters:
attr (wx.richtext.TextBoxAttr)
weakTest (bool)
- Return type:
bool
- GetBorder(self)¶
Returns the borders.
- Return type:
- GetBottom(self)¶
Returns the bottom position.
- Return type:
- GetBottomBorder(self)¶
Returns the bottom border.
- Return type:
- GetBottomMargin(self)¶
Returns the bottom margin.
- Return type:
- GetBottomOutline(self)¶
Returns the bottom outline.
- Return type:
- GetBottomPadding(self)¶
Returns the bottom padding value.
- Return type:
- GetBoxStyleName(self)¶
Returns the box style name.
- Return type:
str
- GetClearMode(self)¶
Returns the clear mode - whether to wrap text after object.
Currently unimplemented.
- Return type:
- GetCollapseBorders(self)¶
Returns the collapse mode - whether to collapse borders.
- Return type:
- GetCornerRadius(self)¶
- Return type:
- GetFlags(self)¶
Returns the flags.
- Return type:
int
- GetFloatMode(self)¶
Returns the float mode.
- Return type:
- GetHeight(self)¶
Returns the object height.
- Return type:
- GetLeft(self)¶
Returns the left position.
- Return type:
- GetLeftBorder(self)¶
Returns the left border.
- Return type:
- GetLeftMargin(self)¶
Returns the left margin.
- Return type:
- GetLeftOutline(self)¶
Returns the left outline.
- Return type:
- GetLeftPadding(self)¶
Returns the left padding value.
- Return type:
- GetMargins(self)¶
Returns the margin values.
- Return type:
- GetMaxSize(self)¶
Returns the object maximum size.
- Return type:
- GetMinSize(self)¶
Returns the object minimum size.
- Return type:
- GetOutline(self)¶
Returns the outline.
- Return type:
- GetPadding(self)¶
Returns the padding values.
- Return type:
- GetPosition(self)¶
Returns the position.
- Return type:
- GetRight(self)¶
Returns the right position.
- Return type:
- GetRightBorder(self)¶
Returns the right border.
- Return type:
- GetRightMargin(self)¶
Returns the right margin.
- Return type:
- GetRightOutline(self)¶
Returns the right outline.
- Return type:
- GetRightPadding(self)¶
Returns the right padding value.
- Return type:
- GetShadow(self)¶
Returns the box shadow attributes.
- Return type:
- GetSize(self)¶
Returns the object size.
- Return type:
- GetTop(self)¶
Returns the top position.
- Return type:
- GetTopBorder(self)¶
Returns the top border.
- Return type:
- GetTopMargin(self)¶
Returns the top margin.
- Return type:
- GetTopOutline(self)¶
Returns the top outline.
- Return type:
- GetTopPadding(self)¶
Returns the top padding value.
- Return type:
- GetVerticalAlignment(self)¶
Returns the vertical alignment.
- Return type:
- GetWhitespaceMode(self)¶
Returns the whitespace mode.
- Return type:
- GetWidth(self)¶
Returns the object width.
- Return type:
- HasBoxStyleName(self)¶
Returns
True
if the box style name is present.- Return type:
bool
- HasClearMode(self)¶
Returns
True
if we have a clear flag.- Return type:
bool
- HasCollapseBorders(self)¶
Returns
True
if the collapse borders flag is present.- Return type:
bool
- HasCornerRadius(self)¶
Returns
True
if the corner radius flag is present.- Return type:
bool
- HasFlag(self, flag)¶
Is this flag present?
- Parameters:
flag (TextBoxAttrFlags)
- Return type:
bool
- HasFloatMode(self)¶
Returns
True
if float mode is active.- Return type:
bool
- HasVerticalAlignment(self)¶
Returns
True
if a vertical alignment flag is present.- Return type:
bool
- HasWhitespaceMode(self)¶
Returns
True
if the whitespace flag is present.- Return type:
bool
- Init(self)¶
Initialises this object.
- Return type:
None
- IsDefault(self)¶
Returns
True
if no attributes are set.- Return type:
bool
- IsFloating(self)¶
Returns
True
if this object is floating.- Return type:
bool
- RemoveFlag(self, flag)¶
Removes this flag.
- Parameters:
flag (TextBoxAttrFlags)
- Return type:
None
- RemoveStyle(self, attr)¶
Removes the specified attributes from this object.
- Parameters:
attr (wx.richtext.TextBoxAttr)
- Return type:
bool
- Reset(self)¶
Resets this object.
- Return type:
None
- SetBoxStyleName(self, name)¶
Sets the box style name.
- Parameters:
name (string)
- Return type:
None
- SetClearMode(self, mode)¶
Set the clear mode.
Currently unimplemented.
- Parameters:
mode (TextBoxAttrClearStyle)
- Return type:
None
- SetCollapseBorders(self, collapse)¶
Sets the collapse mode - whether to collapse borders.
- Parameters:
collapse (TextBoxAttrCollapseMode)
- Return type:
None
- SetCornerRadius(self, dim)¶
Sets the corner radius value.
- Parameters:
- Return type:
None
- SetFlags(self, flags)¶
Sets the flags.
- Parameters:
flags (int)
- Return type:
None
- SetFloatMode(self, mode)¶
Sets the float mode.
- Parameters:
mode (TextBoxAttrFloatStyle)
- Return type:
None
- SetMaxSize(self, sz)¶
Sets the object maximum size.
- Parameters:
- Return type:
None
- SetMinSize(self, sz)¶
Sets the object minimum size.
- Parameters:
- Return type:
None
- SetSize(self, sz)¶
Sets the object size.
- Parameters:
- Return type:
None
- SetVerticalAlignment(self, verticalAlignment)¶
Sets the vertical alignment.
- Parameters:
verticalAlignment (TextBoxAttrVerticalAlignment)
- Return type:
None
- SetWhitespaceMode(self, whitespace)¶
Sets the whitespace mode.
- Parameters:
whitespace (TextBoxAttrWhitespaceMode)
- Return type:
None
- __eq__(self, attr)¶
Equality test.
- Parameters:
attr (wx.richtext.TextBoxAttr)
- Return type:
bool
Properties¶
- BottomBorder¶
See
GetBottomBorder
- BottomMargin¶
See
GetBottomMargin
- BottomOutline¶
See
GetBottomOutline
- BottomPadding¶
See
GetBottomPadding
- BoxStyleName¶
See
GetBoxStyleName
andSetBoxStyleName
- ClearMode¶
See
GetClearMode
andSetClearMode
- CollapseBorders¶
See
GetCollapseBorders
andSetCollapseBorders
- CornerRadius¶
See
GetCornerRadius
andSetCornerRadius
- FloatMode¶
See
GetFloatMode
andSetFloatMode
- LeftBorder¶
See
GetLeftBorder
- LeftMargin¶
See
GetLeftMargin
- LeftOutline¶
See
GetLeftOutline
- LeftPadding¶
See
GetLeftPadding
- Margins¶
See
GetMargins
- MaxSize¶
See
GetMaxSize
andSetMaxSize
- MinSize¶
See
GetMinSize
andSetMinSize
- Outline¶
See
GetOutline
- Padding¶
See
GetPadding
- Position¶
See
GetPosition
- RightBorder¶
See
GetRightBorder
- RightMargin¶
See
GetRightMargin
- RightOutline¶
See
GetRightOutline
- RightPadding¶
See
GetRightPadding
- TopBorder¶
See
GetTopBorder
- TopMargin¶
See
GetTopMargin
- TopOutline¶
See
GetTopOutline
- TopPadding¶
See
GetTopPadding
- VerticalAlignment¶
- WhitespaceMode¶
See
GetWhitespaceMode
andSetWhitespaceMode
- m_border¶
A public C++ attribute of type
TextAttrBorders
.
- m_boxStyleName¶
A public C++ attribute of type
string
.
- m_clearMode¶
A public C++ attribute of type
TextBoxAttrClearStyle
.
- m_collapseMode¶
A public C++ attribute of type
TextBoxAttrCollapseMode
.
- m_cornerRadius¶
A public C++ attribute of type
TextAttrDimension
.
- m_flags¶
A public C++ attribute of type
int
.
- m_floatMode¶
A public C++ attribute of type
TextBoxAttrFloatStyle
.
- m_margins¶
A public C++ attribute of type
TextAttrDimensions
.
- m_maxSize¶
A public C++ attribute of type
TextAttrSize
.
- m_minSize¶
A public C++ attribute of type
TextAttrSize
.
- m_outline¶
A public C++ attribute of type
TextAttrBorders
.
- m_padding¶
A public C++ attribute of type
TextAttrDimensions
.
- m_position¶
A public C++ attribute of type
TextAttrDimensions
.
- m_shadow¶
A public C++ attribute of type
TextAttrShadow
.
- m_size¶
A public C++ attribute of type
TextAttrSize
.
- m_verticalAlignment¶
A public C++ attribute of type
TextBoxAttrVerticalAlignment
.
- m_whitespaceMode¶
A public C++ attribute of type
TextBoxAttrWhitespaceMode
.