CSize.h
Go to the documentation of this file.
1 #ifndef ibase_CSize_included
2 #define ibase_CSize_included
3 
4 
5 // ACF includes
6 #include <istd/CIndex2d.h>
7 #include <iser/ISerializable.h>
8 
9 
10 namespace ibase
11 {
12 
13 
17 class CSize: public istd::CIndex2d
18 {
19 public:
21 
22  CSize();
23  CSize(int width, int height);
24  CSize(const istd::CIndex2d& index);
25  CSize(const QPoint& point);
26  CSize(const QSize& size);
27 
28  CSize operator+(const CSize& size);
29  CSize operator-(const CSize& size);
30  CSize& operator+=(const CSize& size);
31  CSize& operator-=(const CSize& size);
32 
33  bool IsNull() const;
34 
35  bool Serialize(iser::IArchive& archive);
36 };
37 
38 
39 } // namespace ibase
40 
41 
42 #endif // !ibase_CSize_included
43 
44 
istd::CIndex2d BaseClass
Definition: CSize.h:20
CSize & operator-=(const CSize &size)
bool IsNull() const
Definition of simple 2D size based on integer values.
Definition: CSize.h:17
CSize operator-(const CSize &size)
Index implementation for addressing elements in 2D-space.
Definition: CIndex2d.h:20
Represent input/output persistence archive.
Definition: IArchive.h:30
CSize operator+(const CSize &size)
CSize & operator+=(const CSize &size)
bool Serialize(iser::IArchive &archive)

© 2007-2017 Witold Gantzke and Kirill Lepskiy