Added a box style definition name to the box attribute.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -273,7 +273,8 @@ enum wxTextBoxAttrFlags
|
||||
wxTEXT_BOX_ATTR_FLOAT = 0x00000001,
|
||||
wxTEXT_BOX_ATTR_CLEAR = 0x00000002,
|
||||
wxTEXT_BOX_ATTR_COLLAPSE_BORDERS = 0x00000004,
|
||||
wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT = 0x00000008
|
||||
wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT = 0x00000008,
|
||||
wxTEXT_BOX_ATTR_BOX_STYLE_NAME = 0x00000010
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1332,6 +1333,21 @@ public:
|
||||
wxTextAttrDimension& GetHeight() { return m_size.m_height; }
|
||||
const wxTextAttrDimension& GetHeight() const { return m_size.m_height; }
|
||||
|
||||
/**
|
||||
Returns the box style name.
|
||||
*/
|
||||
const wxString& GetBoxStyleName() const { return m_boxStyleName; }
|
||||
|
||||
/**
|
||||
Sets the box style name.
|
||||
*/
|
||||
void SetBoxStyleName(const wxString& name) { m_boxStyleName = name; AddFlag(wxTEXT_BOX_ATTR_BOX_STYLE_NAME); }
|
||||
|
||||
/**
|
||||
Returns @true if the box style name is present.
|
||||
*/
|
||||
bool HasBoxStyleName() const { return HasFlag(wxTEXT_BOX_ATTR_BOX_STYLE_NAME); }
|
||||
|
||||
public:
|
||||
|
||||
int m_flags;
|
||||
@@ -1349,6 +1365,7 @@ public:
|
||||
wxTextBoxAttrClearStyle m_clearMode;
|
||||
wxTextBoxAttrCollapseMode m_collapseMode;
|
||||
wxTextBoxAttrVerticalAlignment m_verticalAlignment;
|
||||
wxString m_boxStyleName;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user