X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/809e8e443f2e863cf299d631c977648a7c5ff662..f828871d12d34950779ed29599cbd13f05e00992:/include/wx/gifdecod.h diff --git a/include/wx/gifdecod.h b/include/wx/gifdecod.h index 576a25d962..cb9490e892 100644 --- a/include/wx/gifdecod.h +++ b/include/wx/gifdecod.h @@ -11,11 +11,7 @@ #ifndef _WX_GIFDECOD_H #define _WX_GIFDECOD_H -#ifdef __GNUG__ -#pragma interface "gifdecod.h" -#endif - -#include "wx/setup.h" +#include "wx/defs.h" #if wxUSE_STREAMS && wxUSE_GIF @@ -64,6 +60,9 @@ enum class GIFImage { public: + // def ctor + GIFImage(); + unsigned int w; /* width */ unsigned int h; /* height */ unsigned int left; /* x coord (in logical screen) */ @@ -73,8 +72,11 @@ 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 */ + + DECLARE_NO_COPY_CLASS(GIFImage) }; @@ -113,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; @@ -131,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(); @@ -145,6 +148,8 @@ public: // convert current frame to wxImage bool ConvertToImage(wxImage *image) const; + + DECLARE_NO_COPY_CLASS(wxGIFDecoder) };