ICF 3.1.1.10
Technical documentation of ICF Libraries
CSize.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
10#include <istd/CIndex2d.h>
11#include <iser/ISerializable.h>
12
13
14namespace ibase
15{
16
17
21class CSize: public istd::CIndex2d
22{
23public:
25
27 CSize(int width, int height);
28 CSize(const istd::CIndex2d& index);
29 CSize(const QPoint& point);
30 CSize(const QSize& size);
31
32 CSize operator+(const CSize& size);
33 CSize operator-(const CSize& size);
34 CSize& operator+=(const CSize& size);
35 CSize& operator-=(const CSize& size);
36
37 bool IsNull() const;
38
39 bool Serialize(iser::IArchive& archive);
40};
41
42
43} // namespace ibase
44
45
Definition of simple 2D size based on integer values.
Definition CSize.h:22
CSize & operator+=(const CSize &size)
CSize(const QPoint &point)
CSize operator-(const CSize &size)
CSize operator+(const CSize &size)
CSize(int width, int height)
CSize(const istd::CIndex2d &index)
bool Serialize(iser::IArchive &archive)
CSize(const QSize &size)
istd::CIndex2d BaseClass
Definition CSize.h:24
CSize & operator-=(const CSize &size)
bool IsNull() const
Represent input/output persistence archive.
Definition IArchive.h:34
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:25
This namespace contains standard classes based on Qt.

© Witold Gantzke and Kirill Lepskiy