PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
size.h
1 /*
2  * Platformer Game Engine by Wohlstand, a free platform for game making
3  * Copyright (c) 2015 Vitaly Novichkov <admin@wohlnet.ru>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef PGE_Size_H
20 #define PGE_Size_H
21 
22 class PGE_SizeF;
23 class PGE_Size
24 {
25  friend class PGE_SizeF;
26 public:
27  PGE_Size();
28  PGE_Size(const PGE_Size &p);
29  PGE_Size(const PGE_SizeF &p);
30  PGE_Size(int w, int h);
31  ~PGE_Size();
32  void setSize(int w, int h);
33  void setWidth(int w);
34  void setHeight(int h);
35  bool isNull();
36  int w();
37  int h();
38 private:
39  int _w;
40  int _h;
41 };
42 
43 #endif // PGE_Size_H
Definition: sizef.h:23
Definition: size.h:23