12 #include <SFML/System/Vector2.hpp> 33 :
public sf::Vector2<N> {
49 : sf::Vector2<N>(x, y)
58 : sf::Vector2<N>(vec.x, vec.y)
67 : sf::Vector2<N>(Qp.x(), Qp.y())
76 : sf::Vector2<N>(Qp.width(), Qp.height())
90 operator QPoint
const() {
return QPoint(N(this->x), N(this->y)); }
101 operator QSize
const() {
return QSize(N(this->x), N(this->y)); }
120 #endif // QVECTOR2_HPP Compatibility layer sf::Vector2<N> ↔ QPoint; QSize.
Definition: qvector2.hpp:32
Namespace containing all qsf classes and methods.
Definition: Image.cpp:3
QVector2(QSize Qp)
Constructor copying QSize.
Definition: qvector2.hpp:75
QVector2< unsigned int > QVector2u
Alias to QVector with template unsigned int.
Definition: qvector2.hpp:112
QVector2< int > QVector2i
Alias to QVector with template int.
Definition: qvector2.hpp:107
QVector2()
Default constructor.
Definition: qvector2.hpp:38
QVector2< float > QVector2f
Alias to QVector with template float.
Definition: qvector2.hpp:117
QVector2(N x, N y)
Two-parameter constructor.
Definition: qvector2.hpp:48
QVector2(sf::Vector2< N > vec)
Constructor copying sf::Vector2<N>
Definition: qvector2.hpp:57
QVector2(QPoint Qp)
Constructor copying QPoint.
Definition: qvector2.hpp:66