X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..2ef5a0b05eb0a79ea3d0c94c67f47ceb3ad49898:/wxPython/src/_statctrls.i diff --git a/wxPython/src/_statctrls.i b/wxPython/src/_statctrls.i index 6560372c75..c407a4d799 100644 --- a/wxPython/src/_statctrls.i +++ b/wxPython/src/_statctrls.i @@ -16,19 +16,17 @@ //--------------------------------------------------------------------------- -%{ - DECLARE_DEF_STRING(StaticBitmapNameStr); - DECLARE_DEF_STRING(StaticBoxNameStr); - DECLARE_DEF_STRING(StaticTextNameStr); -%} +MAKE_CONST_WXSTRING(StaticBitmapNameStr); +MAKE_CONST_WXSTRING(StaticBoxNameStr); +MAKE_CONST_WXSTRING(StaticTextNameStr); //--------------------------------------------------------------------------- %newgroup class wxStaticBox : public wxControl { public: - %addtofunc wxStaticBox "self._setOORInfo(self)" - %addtofunc wxStaticBox() "" + %pythonAppend wxStaticBox "self._setOORInfo(self)" + %pythonAppend wxStaticBox() "" wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, @@ -42,6 +40,9 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPyStaticBoxNameStr); + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; @@ -51,8 +52,8 @@ public: class wxStaticLine : public wxControl { public: - %addtofunc wxStaticLine "self._setOORInfo(self)" - %addtofunc wxStaticLine() "" + %pythonAppend wxStaticLine "self._setOORInfo(self)" + %pythonAppend wxStaticLine() "" wxStaticLine( wxWindow *parent, wxWindowID id, const wxPoint &pos = wxDefaultPosition, @@ -71,8 +72,10 @@ public: bool IsVertical() const; // get the default size for the "lesser" dimension of the static line - static int GetDefaultSize() { return 2; } + static int GetDefaultSize(); + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; @@ -81,8 +84,8 @@ public: class wxStaticText : public wxControl { public: - %addtofunc wxStaticText "self._setOORInfo(self)" - %addtofunc wxStaticText() "" + %pythonAppend wxStaticText "self._setOORInfo(self)" + %pythonAppend wxStaticText() "" wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, @@ -96,6 +99,9 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPyStaticTextNameStr); + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //--------------------------------------------------------------------------- @@ -103,8 +109,8 @@ public: class wxStaticBitmap : public wxControl { public: - %addtofunc wxStaticText "self._setOORInfo(self)" - %addtofunc wxStaticText() "" + %pythonAppend wxStaticBitmap "self._setOORInfo(self)" + %pythonAppend wxStaticBitmap() "" wxStaticBitmap(wxWindow* parent, wxWindowID id, const wxBitmap& bitmap, @@ -124,6 +130,9 @@ public: wxBitmap GetBitmap(); void SetBitmap(const wxBitmap& bitmap); void SetIcon(const wxIcon& icon); + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //---------------------------------------------------------------------------