]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/gdiimage.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / os2 / gdiimage.h
index 8b5625abdfc1c0f70a1d94ca675419c53d354921..45814eb0ec716689eb86bcc4f98a54d743d2d88c 100644 (file)
@@ -5,7 +5,6 @@
 // Author:      David Webster (adapted from msw version by Vadim Zeitlin)
 // Modified by:
 // Created:     20.11.99
-// RCS-ID:      $Id$
 // Copyright:   (c) 1999 David Webster
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -54,7 +53,7 @@ public:
         { m_nWidth = nW; m_nHeight = nH; }
 
     // free the ressources we allocated
-    virtual void Free() { };
+    virtual void Free() { }
 
     // for compatibility, the member fields are public
 
@@ -191,6 +190,12 @@ public:
     int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_nHeight; }
     int GetDepth() const { return IsNull() ? 0 : GetGDIImageData()->m_nDepth; }
 
+    wxSize GetSize() const
+    {
+        return IsNull() ? wxSize(0,0) :
+               wxSize(GetGDIImageData()->m_nWidth, GetGDIImageData()->m_nHeight);
+    }
+
     void SetWidth(int nW) { EnsureHasData(); GetGDIImageData()->m_nWidth = nW; }
     void SetHeight(int nH) { EnsureHasData(); GetGDIImageData()->m_nHeight = nH; }
     void SetDepth(int nD) { EnsureHasData(); GetGDIImageData()->m_nDepth = nD; }
@@ -235,7 +240,7 @@ protected:
     virtual wxGDIRefData *
     CloneGDIRefData(const wxGDIRefData *WXUNUSED(data)) const
     {
-        wxFAIL_MSG( _T("must be implemented if used") );
+        wxFAIL_MSG( wxT("must be implemented if used") );
 
         return NULL;
     }