00001 #if !defined( __XBUTTONIMG_H__ )
00002 #define __XBUTTONIMG_H__
00003
00004 namespace Ars
00005 {
00006 class XButtonImage : public XButton {
00007 protected:
00008
00009 int id;
00010 std::string sct , key ,fname;
00011
00012 public:
00013
00017 XButtonImage( void );
00018
00020 ~XButtonImage( void );
00021
00026 virtual void Init( icstring &aStr );
00027
00029 virtual const bool SetupWindow( const Message &msg );
00030
00031 void ChangeImage( const std::string &aFilename );
00032 void ChangeImage( const std::string &aSection , const std::string &aId , std::string aFilename = "" );
00033
00034 void SetImage( SDL_Surface *aImage );
00035
00036
00038 virtual void Draw( void );
00039 };
00040
00041 }
00042 #endif