]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/bitmap.cpp
copyright and name updates
[wxWidgets.git] / src / gtk1 / bitmap.cpp
index 289f2653c8664bb3ee044156ae2977dea08b5095..df7af691407464e54fa0ae1cf7b56cfa2fd13cf7 100644 (file)
@@ -23,6 +23,7 @@
 #include "wx/image.h"
 #include "wx/dcmemory.h"
 #include "wx/app.h"
+#include "wx/rawbmp.h"
 
 #ifdef __WXGTK20__
     // need this to get gdk_image_new_bitmap()
@@ -1596,6 +1597,23 @@ void wxBitmap::UngetRawData(wxPixelDataBase& data)
 {
 }
 
+
+bool wxBitmap::HasAlpha() const 
+{
+#ifdef __WXGTK20__
+    return HasPixbuf();
+#else
+    return false;
+#endif
+}
+
+void wxBitmap::UseAlpha()
+{ 
+#ifdef __WXGTK20__
+    GetPixbuf();
+#endif
+}
+
 //-----------------------------------------------------------------------------
 // wxBitmapHandler
 //-----------------------------------------------------------------------------