reorganized wxBitmap/wxBitmapHandler classes to use wxBitmapType instead of "long" where possible; made them const-correct; introduce wxBITMAP_SCREEN_DEPTH instead of -1 for clearness (specially in the docs); remove wxBitmapHandler empty stubs and rename wxBitmapHandlerBase as wxBitmapHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -287,7 +287,7 @@ public:
|
||||
|
||||
inline wxBitmapHandler( const wxString& rName
|
||||
,const wxString& rExt
|
||||
,long lType
|
||||
,wxBitmapType lType
|
||||
)
|
||||
: wxGDIImageHandler( rName
|
||||
,rExt
|
||||
@@ -299,28 +299,28 @@ public:
|
||||
// old class which worked only with bitmaps
|
||||
virtual bool Create( wxBitmap* pBitmap
|
||||
,const void* pData
|
||||
,long lFlags
|
||||
,wxBitmapType lType
|
||||
,int nWidth
|
||||
,int nHeight
|
||||
,int nDepth = 1
|
||||
);
|
||||
virtual bool LoadFile( wxBitmap* pBitmap
|
||||
,int nId
|
||||
,long lFlags
|
||||
,wxBitmapType lType
|
||||
,int nDesiredWidth
|
||||
,int nDesiredHeight
|
||||
);
|
||||
virtual bool LoadFile( wxBitmap* pBitmap
|
||||
,const wxString& rName
|
||||
,long lFlags
|
||||
,wxBitmapType lType
|
||||
,int nDesiredWidth
|
||||
,int nDesiredHeight
|
||||
);
|
||||
virtual bool SaveFile( wxBitmap* pBitmap
|
||||
,const wxString& rName
|
||||
,int lType
|
||||
,wxBitmapType lType
|
||||
,const wxPalette* pPalette = NULL
|
||||
);
|
||||
) const;
|
||||
|
||||
virtual bool Create( wxGDIImage* pImage
|
||||
,const void* pData
|
||||
@@ -338,7 +338,7 @@ public:
|
||||
virtual bool Save( wxGDIImage* pImage
|
||||
,const wxString& rName
|
||||
,int lType
|
||||
);
|
||||
) const;
|
||||
private:
|
||||
inline virtual bool Load( wxGDIImage* WXUNUSED(pImage)
|
||||
,const wxString& WXUNUSED(rName)
|
||||
|
Reference in New Issue
Block a user