00001 #if !defined( __XIMAGE_H__ ) 00002 #define __XIMAGE_H__ 00003 00004 namespace Ars 00005 { 00006 class XImage : public XBox { 00007 protected: 00008 int id; 00009 int fade; 00010 string sct , key ,fname; 00011 00012 public: 00013 00017 XImage( void ); 00018 00020 ~XImage( void ); 00021 00022 00027 virtual void Init( icstring &aStr ); 00028 00030 virtual const bool SetupWindow( const Message &msg ); 00031 00032 void ChangeImage( const string &aFilename ); 00033 void ChangeImage( const string &aSection , const string &aId , string aFilename = "" ); 00034 void SetImageId( const int aId ); 00035 00036 const int GetImageId( void ) const { return id; } 00037 00039 virtual void Draw( void ); 00040 }; 00041 00042 } 00043 00044 #endif