include/gui/image.h

Go to the documentation of this file.
00001 #ifndef _VGUI_IMAGE_H
00002 #define _VGUI_IMAGE_H
00003 
00004 /* image.h */
00005 #include "gui.h"
00006 
00007 namespace VGUI
00008 {
00009         class Image : public Widget
00010         {
00011         public:
00012                 Image() {}
00013                 Image( Widget* w );
00014                 ~Image();
00015                 void Draw();
00016                 void Draw( float opacity );
00017 
00018                 string GetFilename() { return filename; }
00019                 void SetFilename( string new_filename ) { filename = new_filename; Load(); }
00020         private:
00021                 void Load();
00022                 string filename;
00023                 TEXTURE_HANDLE img_tex;
00024         };
00025 }
00026 
00027 
00028 #endif // _VGUI_IMAGE_H

Generated on Thu Oct 19 04:05:47 2006 by  doxygen 1.4.6