Go to the documentation of this file.
10#include <QtCore/QPoint>
11#include <QtCore/QSize>
48 operator QSize()
const;
53 operator QPoint()
const;
58 operator QPointF()
const;
100 SetAt(0, size.width());
101 SetAt(1, size.height());
147 return (!
operator<(index) && !
operator==(index));
153 return (
operator<(index) ||
operator==(index));
159 return (!
operator<(index) ||
operator==(index));
165 BaseClass::operator=(index);
173 BaseClass::operator=(index);
179inline CIndex2d::operator QSize()
const
181 return QSize(GetX(), GetY());
185inline CIndex2d::operator QPoint()
const
187 return QPoint(GetX(), GetY());
191inline CIndex2d::operator QPointF()
const
193 return QPointF(GetX(), GetY());
Index implementation for addressing elements in 2D-space.
bool operator>=(const CIndex2d &index) const
bool operator<=(const CIndex2d &index) const
bool operator>(const CIndex2d &index) const
CIndex2d & operator=(const CIndex2d &index)
Assign value from another index.
bool operator<(const CIndex2d &index) const
Multidimensional index used to addressing fixed-size array.
void SetAt(int index, int value)
int GetAt(int index) const
© Witold Gantzke and Kirill Lepskiy