inlib
1.2.0
|
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved. 00002 // See the file inlib.license for terms. 00003 00004 #ifndef inlib_sg_win_action 00005 #define inlib_sg_win_action 00006 00007 #include "action" 00008 00009 namespace inlib { 00010 namespace sg { 00011 00012 class win_action : public action { 00013 public: 00014 win_action(std::ostream& a_out,unsigned int a_ww,unsigned int a_wh) 00015 : action(a_out) 00016 ,m_ww(a_ww) //WARNING : we assume that we receive a not zero value. 00017 ,m_wh(a_wh) //WARNING : we assume that we receive a not zero value. 00018 {} 00019 virtual ~win_action(){} 00020 protected: 00021 win_action(const inlib::sg::win_action& a_from) 00022 : action(a_from) 00023 ,m_ww(a_from.m_ww) 00024 ,m_wh(a_from.m_wh) 00025 {} 00026 inlib::sg::win_action& operator=(const inlib::sg::win_action& a_from){ 00027 action::operator=(a_from); 00028 return *this; 00029 } 00030 public: 00031 unsigned int ww() const {return m_ww;} 00032 unsigned int wh() const {return m_wh;} 00033 protected: 00034 unsigned int m_ww; //window width 00035 unsigned int m_wh; //window height 00036 }; 00037 00038 }} 00039 00040 #endif