Lines Matching refs:IntPoint

78 class IntPoint {
80 IntPoint() : m_x(0), m_y(0) { }
81 IntPoint(int x, int y) : m_x(x), m_y(y) { }
82 explicit IntPoint(const IntSize& size) : m_x(size.width()), m_y(size.height()) { }
84 static IntPoint zero() { return IntPoint(); }
95 IntPoint expandedTo(const IntPoint& other) const
97 return IntPoint(m_x > other.m_x ? m_x : other.m_x,
101 IntPoint shrunkTo(const IntPoint& other) const
103 return IntPoint(m_x < other.m_x ? m_x : other.m_x,
112 IntPoint transposedPoint() const
114 return IntPoint(m_y, m_x);
118 explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lossy
123 explicit IntPoint(const NSPoint&); // don't do this implicitly since it's lossy
128 IntPoint(const POINT&);
130 IntPoint(const POINTS&);
133 IntPoint(const QPoint&);
136 IntPoint(const GdkPoint&);
139 explicit IntPoint(const BPoint&);
142 explicit IntPoint(const Evas_Point&);
147 IntPoint(const wxPoint&);
152 IntPoint(const AEEPoint&);
157 IntPoint(const SkIPoint&);
166 inline IntPoint& operator+=(IntPoint& a, const IntSize& b)
172 inline IntPoint& operator-=(IntPoint& a, const IntSize& b)
178 inline IntPoint operator+(const IntPoint& a, const IntSize& b)
180 return IntPoint(a.x() + b.width(), a.y() + b.height());
183 inline IntSize operator-(const IntPoint& a, const IntPoint& b)
188 inline IntPoint operator-(const IntPoint& a, const IntSize& b)
190 return IntPoint(a.x() - b.width(), a.y() - b.height());
193 inline bool operator==(const IntPoint& a, const IntPoint& b)
198 inline bool operator!=(const IntPoint& a, const IntPoint& b)
203 inline IntPoint toPoint(const IntSize& size)
205 return IntPoint(size.width(), size.height());
209 inline QDataStream& operator<<(QDataStream& stream, const IntPoint& point)
215 inline QDataStream& operator>>(QDataStream& stream, IntPoint& point)