Lines Matching defs:IntSize
62 class IntSize {
64 IntSize() : m_width(0), m_height(0) { }
65 IntSize(int width, int height) : m_width(width), m_height(height) { }
90 IntSize expandedTo(const IntSize& other) const
92 return IntSize(m_width > other.m_width ? m_width : other.m_width,
96 IntSize shrunkTo(const IntSize& other) const
98 return IntSize(m_width < other.m_width ? m_width : other.m_width,
104 *this = expandedTo(IntSize());
107 IntSize transposedSize() const
109 return IntSize(m_height, m_width);
113 explicit IntSize(const CGSize&); // don't do this implicitly since it's lossy
118 explicit IntSize(const NSSize &); // don't do this implicitly since it's lossy
123 IntSize(const SIZE&);
128 IntSize(const QSize&);
133 explicit IntSize(const BSize&);
138 IntSize(const wxSize&);
143 IntSize(const AEESize&);
151 inline IntSize& operator+=(IntSize& a, const IntSize& b)
158 inline IntSize& operator-=(IntSize& a, const IntSize& b)
165 inline IntSize operator+(const IntSize& a, const IntSize& b)
167 return IntSize(a.width() + b.width(), a.height() + b.height());
170 inline IntSize operator-(const IntSize& a, const IntSize& b)
172 return IntSize(a.width() - b.width(), a.height() - b.height());
175 inline IntSize operator-(const IntSize& size)
177 return IntSize(-size.width(), -size.height());
180 inline bool operator==(const IntSize& a, const IntSize& b)
185 inline bool operator!=(const IntSize& a, const IntSize& b)