Lines Matching defs:IntSize
43 class PLATFORM_EXPORT IntSize {
45 IntSize() : m_width(0), m_height(0) { }
46 IntSize(int width, int height) : m_width(width), m_height(height) { }
76 IntSize expandedTo(const IntSize& other) const
78 return IntSize(m_width > other.m_width ? m_width : other.m_width,
82 IntSize shrunkTo(const IntSize& other) const
84 return IntSize(m_width < other.m_width ? m_width : other.m_width,
90 *this = expandedTo(IntSize());
93 void clampToMinimumSize(const IntSize& minimumSize)
112 IntSize transposedSize() const
114 return IntSize(m_height, m_width);
118 explicit IntSize(const CGSize&); // don't do this implicitly since it's lossy
122 explicit IntSize(const NSSize &); // don't do this implicitly since it's lossy
131 inline IntSize& operator+=(IntSize& a, const IntSize& b)
138 inline IntSize& operator-=(IntSize& a, const IntSize& b)
145 inline IntSize operator+(const IntSize& a, const IntSize& b)
147 return IntSize(a.width() + b.width(), a.height() + b.height());
150 inline IntSize operator-(const IntSize& a, const IntSize& b)
152 return IntSize(a.width() - b.width(), a.height() - b.height());
155 inline IntSize operator-(const IntSize& size)
157 return IntSize(-size.width(), -size.height());
160 inline bool operator==(const IntSize& a, const IntSize& b)
165 inline bool operator!=(const IntSize& a, const IntSize& b)