KHTML
Go to the documentation of this file.
30 #include <wtf/Platform.h>
33 typedef struct CGSize CGSize;
37 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
38 typedef struct CGSize NSSize;
40 typedef struct _NSSize NSSize;
56 float width()
const {
return m_width; }
57 float height()
const {
return m_height; }
62 bool isEmpty()
const {
return m_width <= 0 || m_height <= 0; }
66 return FloatSize(m_width > other.m_width ? m_width : other.m_width,
67 m_height > other.m_height ? m_height : other.m_height);
72 operator CGSize()
const;
75 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
77 operator NSSize()
const;
81 float m_width, m_height;
125 #endif // FloatSize_h
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Apr 20 2013 06:05:33 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.