ACF $AcfVersion:0$
CSize.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/CIndex2d.h>
8
9
10namespace ibase
11{
12
13
17class CSize: public istd::CIndex2d
18{
19public:
21
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
43
Definition of simple 2D size based on integer values.
Definition CSize.h:18
CSize & operator+=(const CSize &size)
CSize(const QPoint &point)
CSize operator-(const CSize &size)
istd::CIndex2d BaseClass
Definition CSize.h:20
CSize operator+(const CSize &size)
CSize(int width, int height)
CSize(const istd::CIndex2d &index)
bool Serialize(iser::IArchive &archive)
CSize(const QSize &size)
CSize & operator-=(const CSize &size)
bool IsNull() const
Represents an input/output persistence archive for object serialization.
Definition IArchive.h:164
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:21
This namespace contains basic implementations of standard primitives on the component level.