Several wxBitmapDataCell changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-30 21:21:19 +00:00
parent 38f82bf695
commit 2586d4a121
4 changed files with 97 additions and 7 deletions

View File

@@ -15,6 +15,7 @@
#include "wx/list.h"
#include "wx/control.h"
#include "wx/scrolwin.h"
#include "wx/icon.h"
// ---------------------------------------------------------
// classes
@@ -109,6 +110,30 @@ protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewTextCell)
};
// ---------------------------------------------------------
// wxDataViewBitmapCell
// ---------------------------------------------------------
class WXDLLIMPEXP_ADV wxDataViewBitmapCell: public wxDataViewCustomCell
{
public:
wxDataViewBitmapCell( const wxString &varianttype = wxT("wxBitmap"),
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT );
bool SetValue( const wxVariant &value );
bool GetValue( wxVariant &value );
bool Render( wxRect cell, wxDC *dc, int state );
wxSize GetSize();
private:
wxIcon m_icon;
wxBitmap m_bitmap;
protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewBitmapCell)
};
// ---------------------------------------------------------
// wxDataViewToggleCell
// ---------------------------------------------------------