Add GetClassDefaultAttribute. Since it is static we need to put the
definition in all window classes so the right one will be called on the C++ side of the fence. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,9 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString& name = wxPyStaticBoxNameStr);
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
};
|
||||
|
||||
|
||||
@@ -71,6 +74,8 @@ public:
|
||||
// get the default size for the "lesser" dimension of the static line
|
||||
static int GetDefaultSize();
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
};
|
||||
|
||||
|
||||
@@ -94,6 +99,9 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString& name = wxPyStaticTextNameStr);
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -122,6 +130,9 @@ public:
|
||||
wxBitmap GetBitmap();
|
||||
void SetBitmap(const wxBitmap& bitmap);
|
||||
void SetIcon(const wxIcon& icon);
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user