Add wxBitmap(size, dc) ctor to all ports
Previously this ctor was only available in wxMSW and wxOSX, which was especially strange as the equivalent Create() overload, taking wxDC, was already available in all ports.
This commit is contained in:
@@ -27,6 +27,7 @@ public:
|
||||
wxBitmap(const wxIDirectFBSurfacePtr& surface) { Create(surface); }
|
||||
wxBitmap(int width, int height, int depth = -1) { Create(width, height, depth); }
|
||||
wxBitmap(const wxSize& sz, int depth = -1) { Create(sz, depth); }
|
||||
wxBitmap(int width, int height, const wxDC& dc) { Create(width, height, dc); }
|
||||
wxBitmap(const char bits[], int width, int height, int depth = 1);
|
||||
wxBitmap(const wxString &filename, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
|
||||
wxBitmap(const char* const* bits);
|
||||
|
||||
@@ -68,6 +68,8 @@ public:
|
||||
{ Create(width, height, depth); }
|
||||
wxBitmap( const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH )
|
||||
{ Create(sz, depth); }
|
||||
wxBitmap( int width, int height, const wxDC& dc )
|
||||
{ Create(width, height, dc); }
|
||||
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
||||
wxBitmap( const char* const* bits );
|
||||
wxBitmap( const wxString &filename, wxBitmapType type = wxBITMAP_DEFAULT_TYPE );
|
||||
|
||||
@@ -64,6 +64,7 @@ public:
|
||||
wxBitmap() {}
|
||||
wxBitmap( int width, int height, int depth = -1 ) { Create( width, height, depth ); }
|
||||
wxBitmap( const wxSize& sz, int depth = -1 ) { Create( sz, depth ); }
|
||||
wxBitmap( int width, int height, const wxDC& dc ) { Create(width, height, dc); }
|
||||
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
||||
wxBitmap( const char* const* bits );
|
||||
wxBitmap( const wxString &filename, wxBitmapType type = wxBITMAP_DEFAULT_TYPE );
|
||||
|
||||
@@ -20,6 +20,7 @@ public:
|
||||
wxBitmap(const char bits[], int width, int height, int depth = 1);
|
||||
wxBitmap(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH);
|
||||
wxBitmap(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH);
|
||||
wxBitmap(int width, int height, const wxDC& dc);
|
||||
wxBitmap(const char* const* bits);
|
||||
wxBitmap(const wxString &filename, wxBitmapType type = wxBITMAP_TYPE_XPM);
|
||||
wxBitmap(const wxImage& image, int depth = wxBITMAP_SCREEN_DEPTH, double scale = 1.0);
|
||||
@@ -32,7 +33,7 @@ public:
|
||||
|
||||
virtual bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH) wxOVERRIDE;
|
||||
virtual bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) wxOVERRIDE;
|
||||
virtual bool Create(int width, int height, const wxDC& WXUNUSED(dc));
|
||||
virtual bool Create(int width, int height, const wxDC& dc);
|
||||
|
||||
virtual int GetHeight() const wxOVERRIDE;
|
||||
virtual int GetWidth() const wxOVERRIDE;
|
||||
|
||||
@@ -58,6 +58,7 @@ public:
|
||||
wxBitmap() {}
|
||||
wxBitmap( int width, int height, int depth = -1 ) { Create( width, height, depth ); }
|
||||
wxBitmap( const wxSize& sz, int depth = -1 ) { Create( sz, depth ); }
|
||||
wxBitmap( int width, int height, const wxDC& dc ) { Create(width, height, dc); }
|
||||
|
||||
wxBitmap( const char bits[], int width, int height, int depth = 1 );
|
||||
wxBitmap( const char* const* bits );
|
||||
|
||||
Reference in New Issue
Block a user