From b4a72504ad10b55be6979411c269de8a9d03564f Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Sat, 17 Oct 2009 12:28:34 +0000 Subject: [PATCH] Exposed wxPGCell to SWIG git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/propgrid/property.h | 55 ++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index ed034939c6..94d8b50065 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -162,6 +162,31 @@ public: }; +/** + @class wxPGDefaultRenderer + + Default cell renderer, that can handles the common + scenarios. +*/ +class WXDLLIMPEXP_PROPGRID wxPGDefaultRenderer : public wxPGCellRenderer +{ +public: + virtual void Render( wxDC& dc, + const wxRect& rect, + const wxPropertyGrid* propertyGrid, + wxPGProperty* property, + int column, + int item, + int flags ) const; + + virtual wxSize GetImageSize( const wxPGProperty* property, + int column, + int item ) const; + +protected: +}; + + class WXDLLIMPEXP_PROPGRID wxPGCellData : public wxObjectRefData { friend class wxPGCell; @@ -191,6 +216,8 @@ protected: bool m_hasValidText; }; +#endif // !SWIG + /** @class wxPGCell @@ -272,39 +299,17 @@ public: return *this; } -protected: +private: virtual wxObjectRefData *CreateRefData() const { return new wxPGCellData(); } virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const; }; - -/** @class wxPGDefaultRenderer - - Default cell renderer, that can handles the common - scenarios. -*/ -class WXDLLIMPEXP_PROPGRID wxPGDefaultRenderer : public wxPGCellRenderer -{ -public: - virtual void Render( wxDC& dc, - const wxRect& rect, - const wxPropertyGrid* propertyGrid, - wxPGProperty* property, - int column, - int item, - int flags ) const; - - virtual wxSize GetImageSize( const wxPGProperty* property, - int column, - int item ) const; - -protected: -}; - // ----------------------------------------------------------------------- +#ifndef SWIG + /** @class wxPGAttributeStorage wxPGAttributeStorage is somewhat optimized storage for -- 2.45.2