KHTML
Go to the documentation of this file.
34 typedef struct CGRect CGRect;
38 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
39 typedef struct CGRect NSRect;
41 typedef struct _NSRect NSRect;
51 #if PLATFORM(WX) && USE(WXGC)
63 : m_location(location), m_size(size) { }
76 float x()
const {
return m_location.
x(); }
77 float y()
const {
return m_location.
y(); }
92 void move(
float dx,
float dy) { m_location.
move(dx, dy); }
103 {
return px >=
x() && px <= right() && py >=
y() && py <=
bottom(); }
108 m_location.
setX(m_location.
x() - dx);
112 m_location.
setY(m_location.
y() - dy);
120 operator CGRect()
const;
123 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
125 operator NSRect()
const;
130 operator QRectF()
const;
132 #if PLATFORM(SYMBIAN)
134 operator TRect()
const;
138 #if PLATFORM(WX) && USE(WXGC)
140 operator wxRect2DDouble()
const;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Mar 20 2013 07:22:39 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.