Home | History | Annotate | Download | only in graphics

Lines Matching refs:FloatSize

50 class FloatSize {
52 FloatSize() : m_width(0), m_height(0) { }
53 FloatSize(float width, float height) : m_width(width), m_height(height) { }
54 FloatSize(const IntSize&);
55 FloatSize(const LayoutSize&);
57 static FloatSize narrowPrecision(double width, double height);
85 FloatSize expandedTo(const FloatSize& other) const
87 return FloatSize(m_width > other.m_width ? m_width : other.m_width,
91 FloatSize shrunkTo(const FloatSize& other) const
93 return FloatSize(m_width < other.m_width ? m_width : other.m_width,
103 FloatSize transposedSize() const
105 return FloatSize(m_height, m_width);
109 explicit FloatSize(const CGSize&); // don't do this implicitly since it's lossy
112 explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy
121 inline FloatSize& operator+=(FloatSize& a, const FloatSize& b)
128 inline FloatSize& operator-=(FloatSize& a, const FloatSize& b)
135 inline FloatSize operator+(const FloatSize& a, const FloatSize& b)
137 return FloatSize(a.width() + b.width(), a.height() + b.height());
140 inline FloatSize operator-(const FloatSize& a, const FloatSize& b)
142 return FloatSize(a.width() - b.width(), a.height() - b.height());
145 inline FloatSize operator-(const FloatSize& size)
147 return FloatSize(-size.width(), -size.height());
150 inline FloatSize operator*(const FloatSize& a, const float b)
152 return FloatSize(a.width() * b, a.height() * b);
155 inline FloatSize operator*(const float a, const FloatSize& b)
157 return FloatSize(a * b.width(), a * b.height());
160 inline bool operator==(const FloatSize& a, const FloatSize& b)
165 inline bool operator!=(const FloatSize& a, const FloatSize& b)
170 inline IntSize roundedIntSize(const FloatSize& p)
175 inline IntSize flooredIntSize(const FloatSize& p)
180 inline IntSize expandedIntSize(const FloatSize& p)
185 inline IntPoint flooredIntPoint(const FloatSize& p)