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:
Vadim Zeitlin
2022-04-10 17:17:02 +01:00
parent bf75fe9d64
commit d08498eb16
7 changed files with 26 additions and 1 deletions

View File

@@ -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 );