KHTML
Go to the documentation of this file.
29 #include <wtf/Platform.h>
32 typedef struct CGSize CGSize;
36 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
37 typedef struct CGSize NSSize;
39 typedef struct _NSSize NSSize;
44 typedef struct tagSIZE SIZE;
62 int width()
const {
return m_width; }
63 int height()
const {
return m_height; }
68 bool isEmpty()
const {
return m_width <= 0 || m_height <= 0; }
72 return IntSize(m_width > other.m_width ? m_width : other.m_width,
73 m_height > other.m_height ? m_height : other.m_height);
78 return IntSize(m_width < other.m_width ? m_width : other.m_width,
79 m_height < other.m_height ? m_height : other.m_height);
88 explicit IntSize(
const CGSize&);
89 operator CGSize()
const;
92 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
93 explicit IntSize(
const NSSize &);
94 operator NSSize()
const;
99 operator SIZE()
const;
104 operator QSize()
const;
106 #if PLATFORM(SYMBIAN)
108 operator TSize()
const;
113 int m_width, m_height;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 22:07:26 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.