Home | History | Annotate | Download | only in geometry

Lines Matching refs:m_size

56         : m_location(location), m_size(size) { }
58 : m_location(FloatPoint(x, y)), m_size(FloatSize(width, height)) { }
66 FloatSize size() const { return m_size; }
69 void setSize(const FloatSize& size) { m_size = size; }
75 float width() const { return m_size.width(); }
76 float height() const { return m_size.height(); }
80 void setWidth(float width) { m_size.setWidth(width); }
81 void setHeight(float height) { m_size.setHeight(height); }
83 bool isEmpty() const { return m_size.isEmpty(); }
84 bool isZero() const { return m_size.isZero(); }
93 void expand(const FloatSize& size) { m_size += size; }
94 void expand(float dw, float dh) { m_size.expand(dw, dh); }
95 void contract(const FloatSize& size) { m_size -= size; }
96 void contract(float dw, float dh) { m_size.expand(-dw, -dh); }
122 FloatPoint maxXMinYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.y()); } // typically topRight
123 FloatPoint minXMaxYCorner() const { return FloatPoint(m_location.x(), m_location.y() + m_size.height()); } // typically bottomLeft
124 FloatPoint maxXMaxYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.y() + m_size.height()); } // typically bottomRight
146 m_size.setWidth(m_size.width() + dx + dx);
151 m_size.setHeight(m_size.height() + dy + dy);
157 FloatRect transposedRect() const { return FloatRect(m_location.transposedPoint(), m_size.transposedSize()); }
177 FloatSize m_size;
182 m_size.setWidth(right - left);
183 m_size.setHeight(bottom - top);