]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gifdecod.h
don't allocate backbuffer for dummy surfaces
[wxWidgets.git] / include / wx / gifdecod.h
index 4c95a274e367233fa63807d5cb04b58f79ff63bc..cb9490e8922f6e6b3f1ee87526591b621484a048 100644 (file)
@@ -5,17 +5,13 @@
 // Version:     3.02
 // CVS-ID:      $Id$
 // Copyright:   (c) 1999 Guillermo Rodriguez Garcia
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_GIFDECOD_H
 #define _WX_GIFDECOD_H
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "gifdecod.h"
-#endif
-
-#include "wx/setup.h"
+#include "wx/defs.h"
 
 #if wxUSE_STREAMS && wxUSE_GIF
 
@@ -76,6 +72,7 @@ public:
     long delay;                     /* delay in ms (-1 = unused) */
     unsigned char *p;               /* bitmap */
     unsigned char *pal;             /* palette */
+    unsigned int ncolours;          /* number of colours */
     GIFImage *next;                 /* next image */
     GIFImage *prev;                 /* prev image */
 
@@ -118,6 +115,7 @@ public:
     int GetFrameIndex() const;
     unsigned char* GetData() const;
     unsigned char* GetPalette() const;
+    unsigned int GetNcolours() const;
     unsigned int GetWidth() const;
     unsigned int GetHeight() const;
     unsigned int GetLeft() const;
@@ -136,13 +134,13 @@ public:
     // move through the animation
     bool GoFirstFrame();
     bool GoLastFrame();
-    bool GoNextFrame(bool cyclic = FALSE);
-    bool GoPrevFrame(bool cyclic = FALSE);
+    bool GoNextFrame(bool cyclic = false);
+    bool GoPrevFrame(bool cyclic = false);
     bool GoFrame(int which);
 
 public:
     // constructor, destructor, etc.
-    wxGIFDecoder(wxInputStream *s, bool anim = FALSE);
+    wxGIFDecoder(wxInputStream *s, bool anim = false);
     ~wxGIFDecoder();
     bool CanRead();
     int ReadGIF();