Home | History | Annotate | Download | only in graphics

Lines Matching refs:FloatSize

51 class FloatSize {
53 FloatSize() : m_width(0), m_height(0) { }
54 FloatSize(float width, float height) : m_width(width), m_height(height) { }
55 FloatSize(const IntSize&);
57 static FloatSize narrowPrecision(double width, double height);
67 FloatSize expandedTo(const FloatSize& other) const
69 return FloatSize(m_width > other.m_width ? m_width : other.m_width,
73 FloatSize shrunkTo(const FloatSize& other) const
75 return FloatSize(m_width < other.m_width ? m_width : other.m_width,
80 explicit FloatSize(const CGSize&); // don't do this implicitly since it's lossy
86 explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy
94 inline FloatSize& operator+=(FloatSize& a, const FloatSize& b)
101 inline FloatSize& operator-=(FloatSize& a, const FloatSize& b)
108 inline FloatSize operator+(const FloatSize& a, const FloatSize& b)
110 return FloatSize(a.width() + b.width(), a.height() + b.height());
113 inline FloatSize operator-(const FloatSize& a, const FloatSize& b)
115 return FloatSize(a.width() - b.width(), a.height() - b.height());
118 inline FloatSize operator-(const FloatSize& size)
120 return FloatSize(-size.width(), -size.height());
123 inline bool operator==(const FloatSize& a, const FloatSize& b)
128 inline bool operator!=(const FloatSize& a, const FloatSize& b)
133 inline IntSize roundedIntSize(const FloatSize& p)