X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55e18dbe2faca047b2008734782d52a6eb140115..c26dba42b75b2c19df5834417ffbe330bc375b20:/include/wx/mac/bitmap.h?ds=sidebyside diff --git a/include/wx/mac/bitmap.h b/include/wx/mac/bitmap.h index 0a0537bb6f..a8e2439362 100644 --- a/include/wx/mac/bitmap.h +++ b/include/wx/mac/bitmap.h @@ -12,7 +12,7 @@ #ifndef _WX_BITMAP_H_ #define _WX_BITMAP_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "bitmap.h" #endif @@ -86,7 +86,9 @@ public: int m_depth; bool m_ok; int m_numColors; +#if wxUSE_PALETTE wxPalette m_bitmapPalette; +#endif // wxUSE_PALETTE int m_quality; int m_bitmapType ; @@ -94,6 +96,7 @@ public: WXHBITMAP m_hBitmap; WXHICON m_hIcon ; wxMask * m_bitmapMask; // Optional mask + bool m_hasAlpha; }; #define M_BITMAPDATA ((wxBitmapRefData *)m_refData) @@ -185,8 +188,10 @@ public: void SetQuality(int q); void SetOk(bool isOk); - wxPalette* GetPalette() const; - void SetPalette(const wxPalette& palette); +#if wxUSE_PALETTE + wxPalette* GetPalette() const; + void SetPalette(const wxPalette& palette); +#endif // wxUSE_PALETTE wxMask *GetMask() const; void SetMask(wxMask *mask) ; @@ -199,7 +204,7 @@ public: static void InitStandardHandlers(); - // raw bitmap access support functions + // raw bitmap access support functions, for internal use only void *GetRawData(wxPixelDataBase& data, int bpp); void UngetRawData(wxPixelDataBase& data);