Corrected wxRTC IsDefault() implementations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -946,6 +946,11 @@ public:
|
||||
*/
|
||||
void MakeValid() { m_borderWidth.SetValid(true); }
|
||||
|
||||
/**
|
||||
True if the border has no attributes set.
|
||||
*/
|
||||
bool IsDefault() const { return (m_flags == 0); }
|
||||
|
||||
/**
|
||||
Returns the border flags.
|
||||
*/
|
||||
@@ -1054,10 +1059,15 @@ public:
|
||||
void CollectCommonAttributes(const wxTextAttrBorders& attr, wxTextAttrBorders& clashingAttr, wxTextAttrBorders& absentAttr);
|
||||
|
||||
/**
|
||||
Returns @true if all borders are valid.
|
||||
Returns @true if at least one border is valid.
|
||||
*/
|
||||
bool IsValid() const { return m_left.IsValid() || m_right.IsValid() || m_top.IsValid() || m_bottom.IsValid(); }
|
||||
|
||||
/**
|
||||
Returns @true if no border attributes were set.
|
||||
*/
|
||||
bool IsDefault() const { return m_left.IsDefault() && m_right.IsDefault() && m_top.IsDefault() && m_bottom.IsDefault(); }
|
||||
|
||||
/**
|
||||
Returns the left border.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user