00001
00002 #ifndef __SGraphicsHandle__
00003 #define __SGraphicsHandle__
00004
00005 #include <Basics/CCountedObject.hpp>
00006
00007
00008
00009 namespace Exponent
00010 {
00011 namespace GUI
00012 {
00013 namespace Graphics
00014 {
00032 struct SGraphicsHandle
00033 {
00034 #ifdef WIN32
00035 HBITMAP m_bitmap;
00036 HDC m_drawContext;
00037 #else
00038 GWorldPtr m_bitmap;
00039 #endif
00040
00041
00042
00047 bool handleIsValid()
00048 {
00049 return (m_bitmap != NULL);
00050 }
00051
00052
00053
00054 };
00055 }
00056 }
00057 }
00058 #endif // End of SGraphicsHandle.hpp