]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/animdecod.h
show the item for which the context menu is shown correctly
[wxWidgets.git] / include / wx / animdecod.h
index 2c65126e75efa734792c3779c106074927593fd9..bb8946ecee15633d45c441c56a3cd6884ddc3f74 100644 (file)
 
 #include "wx/defs.h"
 
-#if wxUSE_STREAMS && wxUSE_GIF
+#if wxUSE_STREAMS
 
-#include "wx/stream.h"
-#include "wx/image.h"
+#include "wx/colour.h"
+#include "wx/gdicmn.h"
+
+class WXDLLIMPEXP_BASE wxInputStream;
+class WXDLLIMPEXP_CORE wxImage;
 
 /*
 
@@ -109,6 +112,9 @@ public:     // frame specific data getters
     // if returns -1 then the frame must be displayed forever.
     virtual long GetDelay(size_t frame) const = 0;
 
+    // the transparent colour for this frame if any or wxNullColour.
+    virtual wxColour GetTransparentColour(size_t frame) const = 0;
+
     // get global data
     wxSize GetAnimationSize() const { return m_szAnimation; }
     wxColour GetBackgroundColour() const { return m_background; }
@@ -134,6 +140,6 @@ public:
 };
 
 
-#endif  // wxUSE_STREAM && wxUSE_GIF
+#endif  // wxUSE_STREAM
 #endif  // _WX_ANIMDECOD_H