KHTML
Go to the documentation of this file.
30 #include <wtf/Platform.h>
33 typedef struct CGRect CGRect;
37 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
38 typedef struct CGRect NSRect;
40 typedef struct _NSRect NSRect;
45 typedef struct tagRECT RECT;
51 typedef struct _GdkRectangle GdkRectangle;
69 : m_location(location), m_size(size) { }
81 int x()
const {
return m_location.
x(); }
82 int y()
const {
return m_location.
y(); }
104 void move(
int dx,
int dy) { m_location.
move(dx, dy); }
112 {
return px >=
x() && px < right() && py >=
y() && py <
bottom(); }
120 m_location.
setX(m_location.
x() - dx);
125 m_location.
setY(m_location.
y() - dy);
133 operator wxRect()
const;
138 operator RECT()
const;
141 operator QRect()
const;
144 operator GdkRectangle()
const;
146 #if PLATFORM(SYMBIAN)
148 operator TRect()
const;
153 operator CGRect()
const;
156 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
157 operator NSRect()
const;
193 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Jun 5 2013 18:41:06 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.