projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compilation fixes for wxUSE_GEOMETRY==0 build.
[wxWidgets.git]
/
include
/
wx
/
gtk
/
bitmap.h
diff --git
a/include/wx/gtk/bitmap.h
b/include/wx/gtk/bitmap.h
index 32a612d4a9768ecbcdfe4a6ec9e9f210dd335dcf..71f5d5b75c4ed1bd6d30319f8ca10ebe588ba748 100644
(file)
--- a/
include/wx/gtk/bitmap.h
+++ b/
include/wx/gtk/bitmap.h
@@
-17,10
+17,11
@@
class WXDLLIMPEXP_FWD_CORE wxPixelDataBase;
// wxMask
//-----------------------------------------------------------------------------
// wxMask
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxMask: public wx
Object
+class WXDLLIMPEXP_CORE wxMask: public wx
MaskBase
{
public:
wxMask();
{
public:
wxMask();
+ wxMask(const wxMask& mask);
wxMask( const wxBitmap& bitmap, const wxColour& colour );
#if wxUSE_PALETTE
wxMask( const wxBitmap& bitmap, int paletteIndex );
wxMask( const wxBitmap& bitmap, const wxColour& colour );
#if wxUSE_PALETTE
wxMask( const wxBitmap& bitmap, int paletteIndex );
@@
-28,18
+29,15
@@
public:
wxMask( const wxBitmap& bitmap );
virtual ~wxMask();
wxMask( const wxBitmap& bitmap );
virtual ~wxMask();
- bool Create( const wxBitmap& bitmap, const wxColour& colour );
-#if wxUSE_PALETTE
- bool Create( const wxBitmap& bitmap, int paletteIndex );
-#endif // wxUSE_PALETTE
- bool Create( const wxBitmap& bitmap );
-
// implementation
GdkBitmap *m_bitmap;
// implementation
GdkBitmap *m_bitmap;
-
GdkBitmap *GetBitmap() const;
GdkBitmap *GetBitmap() const;
-private:
+protected:
+ virtual void FreeData();
+ virtual bool InitFromColour(const wxBitmap& bitmap, const wxColour& colour);
+ virtual bool InitFromMonoBitmap(const wxBitmap& bitmap);
+
DECLARE_DYNAMIC_CLASS(wxMask)
};
DECLARE_DYNAMIC_CLASS(wxMask)
};
@@
-107,8
+105,7
@@
public:
void SetHeight( int height );
void SetWidth( int width );
void SetDepth( int depth );
void SetHeight( int height );
void SetWidth( int width );
void SetDepth( int depth );
- void SetPixmap( GdkPixmap *pixmap );
- void SetPixbuf(GdkPixbuf* pixbuf, int depth = 0);
+ void SetPixbuf(GdkPixbuf* pixbuf);
GdkPixmap *GetPixmap() const;
bool HasPixmap() const;
GdkPixmap *GetPixmap() const;
bool HasPixmap() const;
@@
-130,6
+127,7
@@
protected:
virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;
private:
virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;
private:
+ void SetPixmap(GdkPixmap* pixmap);
#if wxUSE_IMAGE
// to be called from CreateFromImage only!
bool CreateFromImageAsPixmap(const wxImage& image, int depth);
#if wxUSE_IMAGE
// to be called from CreateFromImage only!
bool CreateFromImageAsPixmap(const wxImage& image, int depth);
@@
-147,7
+145,6
@@
public:
// (wxBitmap may keep same bitmap e.g. as both pixmap and pixbuf):
void PurgeOtherRepresentations(Representation keep);
// (wxBitmap may keep same bitmap e.g. as both pixmap and pixbuf):
void PurgeOtherRepresentations(Representation keep);
-private:
DECLARE_DYNAMIC_CLASS(wxBitmap)
};
DECLARE_DYNAMIC_CLASS(wxBitmap)
};