SDL++
C++wrapperfortheSDLlibrary.
|
00001 00021 #ifndef SDL_VIDEO_ICON_H 00022 #define SDL_VIDEO_ICON_H 00023 00024 #include <string> 00025 00026 namespace sdl { 00027 namespace video { 00028 using namespace std; 00029 00034 class Icon { 00035 public: 00041 Icon (const string& name) : name_ (name) {}; 00042 00046 ~Icon () {}; 00047 00053 string name () const { return name_; }; 00054 00062 Icon& name (const string& name) { 00063 name_ = name; 00064 return *this; 00065 }; 00066 00067 private: 00068 /* 00069 * The name of the icon. 00070 */ 00071 string name_; 00072 }; //Icon 00073 }; //video 00074 }; //sdl 00075 00076 #endif //SDL_VIDEO_ICON_H 00077