projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wxCoordRound() -> wxRound()
[wxWidgets.git]
/
include
/
wx
/
palmos
/
bitmap.h
diff --git
a/include/wx/palmos/bitmap.h
b/include/wx/palmos/bitmap.h
index ef547bf64d0440a164b635b9b54ed3ee69a295c3..983fcc0ce3d6551db0d3ee8128584702eeb15fc2 100644
(file)
--- a/
include/wx/palmos/bitmap.h
+++ b/
include/wx/palmos/bitmap.h
@@
-41,21
+41,17
@@
public:
// default ctor creates an invalid bitmap, you must Create() it later
wxBitmap() { Init(); }
// default ctor creates an invalid bitmap, you must Create() it later
wxBitmap() { Init(); }
- // Copy constructors
- wxBitmap(const wxBitmap& bitmap) { Init(); Ref(bitmap); }
-
// Initialize with raw data
wxBitmap(const char bits[], int width, int height, int depth = 1);
// Initialize with XPM data
// Initialize with raw data
wxBitmap(const char bits[], int width, int height, int depth = 1);
// Initialize with XPM data
- wxBitmap(const char **data) { CreateFromXpm(data); }
- wxBitmap(char **data) { CreateFromXpm((const char **)data); }
+ wxBitmap(const char* const* data);
// Load a file or resource
wxBitmap(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_BMP_RESOURCE);
// New constructor for generalised creation from data
// Load a file or resource
wxBitmap(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_BMP_RESOURCE);
// New constructor for generalised creation from data
- wxBitmap(
void *
data, long type, int width, int height, int depth = 1);
+ wxBitmap(
const void*
data, long type, int width, int height, int depth = 1);
// Create a new, uninitialized bitmap of the given size and depth (if it
// is omitted, will create a bitmap compatible with the display)
// Create a new, uninitialized bitmap of the given size and depth (if it
// is omitted, will create a bitmap compatible with the display)
@@
-81,13
+77,6
@@
public:
// the copy ctor but the resulting bitmap is invalid!
wxBitmap(const wxIcon& icon) { Init(); CopyFromIcon(icon); }
// the copy ctor but the resulting bitmap is invalid!
wxBitmap(const wxIcon& icon) { Init(); CopyFromIcon(icon); }
- wxBitmap& operator=(const wxBitmap& bitmap)
- {
- if ( m_refData != bitmap.m_refData )
- Ref(bitmap);
- return *this;
- }
-
wxBitmap& operator=(const wxIcon& icon)
{
(void)CopyFromIcon(icon);
wxBitmap& operator=(const wxIcon& icon)
{
(void)CopyFromIcon(icon);
@@
-124,7
+113,7
@@
public:
virtual bool Create(int width, int height, int depth = -1);
virtual bool Create(int width, int height, const wxDC& dc);
virtual bool Create(int width, int height, int depth = -1);
virtual bool Create(int width, int height, const wxDC& dc);
- virtual bool Create(
void *
data, long type, int width, int height, int depth = 1);
+ virtual bool Create(
const void*
data, long type, int width, int height, int depth = 1);
virtual bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_BMP_RESOURCE);
virtual bool SaveFile(const wxString& name, int type, const wxPalette *cmap = NULL);
virtual bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_BMP_RESOURCE);
virtual bool SaveFile(const wxString& name, int type, const wxPalette *cmap = NULL);
@@
-169,9
+158,6
@@
protected:
virtual wxGDIImageRefData *CreateData() const;
virtual wxGDIImageRefData *CreateData() const;
- // creates the bitmap from XPM data, supposed to be called from ctor
- bool CreateFromXpm(const char **bits);
-
// creates an uninitialized bitmap, called from Create()s above
bool DoCreate(int w, int h, int depth, WXHDC hdc);
// creates an uninitialized bitmap, called from Create()s above
bool DoCreate(int w, int h, int depth, WXHDC hdc);
@@
-245,7
+231,7
@@
public:
// keep wxBitmapHandler derived from wxGDIImageHandler compatible with the
// old class which worked only with bitmaps
virtual bool Create(wxBitmap *bitmap,
// keep wxBitmapHandler derived from wxGDIImageHandler compatible with the
// old class which worked only with bitmaps
virtual bool Create(wxBitmap *bitmap,
-
void *
data,
+
const void*
data,
long flags,
int width, int height, int depth = 1);
virtual bool LoadFile(wxBitmap *bitmap,
long flags,
int width, int height, int depth = 1);
virtual bool LoadFile(wxBitmap *bitmap,
@@
-258,7
+244,7
@@
public:
const wxPalette *palette = NULL);
virtual bool Create(wxGDIImage *image,
const wxPalette *palette = NULL);
virtual bool Create(wxGDIImage *image,
-
void *
data,
+
const void*
data,
long flags,
int width, int height, int depth = 1);
virtual bool Load(wxGDIImage *image,
long flags,
int width, int height, int depth = 1);
virtual bool Load(wxGDIImage *image,