projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adapting to new sound file organization for osx
[wxWidgets.git]
/
include
/
wx
/
x11
/
bitmap.h
diff --git
a/include/wx/x11/bitmap.h
b/include/wx/x11/bitmap.h
index 6c404b6a8e22a224bd44a9441a0e675715c49aa7..2a272f92c2483c4245c8cc712a7a4bfeab333a49 100644
(file)
--- a/
include/wx/x11/bitmap.h
+++ b/
include/wx/x11/bitmap.h
@@
-62,34
+62,31
@@
private:
// wxBitmap
//-----------------------------------------------------------------------------
// wxBitmap
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxBitmapHandler: public wxBitmapHandlerBase
-{
- DECLARE_ABSTRACT_CLASS(wxBitmapHandler)
-};
-
class WXDLLIMPEXP_CORE wxBitmap: public wxBitmapBase
{
public:
class WXDLLIMPEXP_CORE wxBitmap: public wxBitmapBase
{
public:
- wxBitmap();
- wxBitmap( int width, int height, int depth = -1 );
+ wxBitmap() {}
+ wxBitmap( int width, int height, int depth = -1 ) { Create( width, height, depth ); }
+ wxBitmap( const wxSize& sz, int depth = -1 ) { Create( sz, depth ); }
+
wxBitmap( const char bits[], int width, int height, int depth = 1 );
wxBitmap( const char* const* bits );
#ifdef wxNEEDS_CHARPP
// needed for old GCC
wxBitmap(char** data)
{
wxBitmap( const char bits[], int width, int height, int depth = 1 );
wxBitmap( const char* const* bits );
#ifdef wxNEEDS_CHARPP
// needed for old GCC
wxBitmap(char** data)
{
- *this = wxBitmap(
wx_const_cast(const char* const*,
data));
+ *this = wxBitmap(
const_cast<const char* const*>(
data));
}
#endif
}
#endif
- wxBitmap( const wxString &filename, wxBitmapType type = wxBITMAP_
TYPE_XPM
);
+ wxBitmap( const wxString &filename, wxBitmapType type = wxBITMAP_
DEFAULT_TYPE
);
virtual ~wxBitmap();
virtual ~wxBitmap();
- bool Ok() const { return IsOk(); }
- bool IsOk() const;
-
static void InitStandardHandlers();
static void InitStandardHandlers();
- bool Create(int width, int height, int depth = -1);
+ bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH);
+ bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH)
+ { return Create(sz.GetWidth(), sz.GetHeight(), depth); }
+
bool Create(const void* data, wxBitmapType type,
int width, int height, int depth = -1);
// create the wxBitmap using a _copy_ of the pixmap
bool Create(const void* data, wxBitmapType type,
int width, int height, int depth = -1);
// create the wxBitmap using a _copy_ of the pixmap
@@
-113,8
+110,8
@@
public:
wxBitmap GetSubBitmap( const wxRect& rect ) const;
wxBitmap GetSubBitmap( const wxRect& rect ) const;
- bool SaveFile( const wxString &name, wxBitmapType type, const wxPalette *palette =
(wxPalette *)
NULL ) const;
- bool LoadFile( const wxString &name, wxBitmapType type = wxBITMAP_
TYPE_XPM
);
+ bool SaveFile( const wxString &name, wxBitmapType type, const wxPalette *palette = NULL ) const;
+ bool LoadFile( const wxString &name, wxBitmapType type = wxBITMAP_
DEFAULT_TYPE
);
wxPalette *GetPalette() const;
wxPalette *GetColourMap() const
wxPalette *GetPalette() const;
wxPalette *GetColourMap() const
@@
-138,8
+135,8
@@
public:
WXDisplay *GetDisplay() const;
protected:
WXDisplay *GetDisplay() const;
protected:
- virtual wx
ObjectRefData *Create
RefData() const;
- virtual wx
ObjectRefData *CloneRefData(const wxObject
RefData *data) const;
+ virtual wx
GDIRefData *CreateGDI
RefData() const;
+ virtual wx
GDIRefData *CloneGDIRefData(const wxGDI
RefData *data) const;
private:
DECLARE_DYNAMIC_CLASS(wxBitmap)
private:
DECLARE_DYNAMIC_CLASS(wxBitmap)