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:
@@ -31,7 +31,7 @@ struct wxVisualAttributes
|
||||
{
|
||||
%extend {
|
||||
wxVisualAttributes() { return new wxVisualAttributes; }
|
||||
~wxVisualAttributes() {}
|
||||
~wxVisualAttributes() { delete self; }
|
||||
}
|
||||
|
||||
// the font used for control label/text inside it
|
||||
@@ -1190,7 +1190,7 @@ exposed.");
|
||||
|
||||
|
||||
DocDeclStr(
|
||||
wxVisualAttributes , GetDefaultAttributes() const,
|
||||
virtual wxVisualAttributes , GetDefaultAttributes() const,
|
||||
"Get the default attributes for an instance of this class. This
|
||||
is useful if you want to use the same font or colour in your own
|
||||
control as in a standard control -- which is a much better idea
|
||||
|
Reference in New Issue
Block a user