PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
sizef.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_SizeF_H
20 #define PGE_SizeF_H
21 
22 class PGE_Size;
23 class PGE_SizeF
24 {
25  friend class PGE_Size;
26 public:
27  PGE_SizeF();
28  PGE_SizeF(const PGE_SizeF &p);
29  PGE_SizeF(const PGE_Size &p);
30  PGE_SizeF(double w, double h);
31  ~PGE_SizeF();
32  void setSize(double w, double h);
33  void setWidth(double w);
34  void setHeight(double h);
35  bool isNull();
36  double w();
37  double h();
38 private:
39  double _w;
40  double _h;
41 };
42 
43 #endif // PGE_SizeF_H
Definition: sizef.h:23
Definition: size.h:23