KHTML
WebCore::IntRect Class Reference
#include <IntRect.h>
Public Member Functions | |
int | bottom () const |
IntPoint | bottomLeft () const |
IntPoint | bottomRight () const |
bool | contains (const IntPoint &point) const |
bool | contains (int px, int py) const |
bool | contains (const IntRect &) const |
int | height () const |
void | inflate (int d) |
void | inflateX (int dx) |
void | inflateY (int dy) |
void | intersect (const IntRect &) |
bool | intersects (const IntRect &) const |
IntRect (const FloatRect &rect) | |
IntRect (int x, int y, int width, int height) | |
IntRect (const IntPoint &location, const IntSize &size) | |
IntRect () | |
bool | isEmpty () const |
IntPoint | location () const |
void | move (int dx, int dy) |
void | move (const IntSize &s) |
int | right () const |
void | scale (float s) |
void | setHeight (int height) |
void | setLocation (const IntPoint &location) |
void | setSize (const IntSize &size) |
void | setWidth (int width) |
void | setX (int x) |
void | setY (int y) |
IntSize | size () const |
IntPoint | topLeft () const |
IntPoint | topRight () const |
void | unite (const IntRect &) |
int | width () const |
int | x () const |
int | y () const |
Detailed Description
Definition at line 65 of file IntRect.h.
Constructor & Destructor Documentation
WebCore::IntRect::IntRect | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) | [inline] |
WebCore::IntRect::IntRect | ( | const FloatRect & | rect | ) | [explicit] |
Definition at line 37 of file IntRect.cpp.
Member Function Documentation
bool WebCore::IntRect::contains | ( | const IntPoint & | point | ) | const [inline] |
bool WebCore::IntRect::contains | ( | int | px, | |
int | py | |||
) | const [inline] |
bool WebCore::IntRect::contains | ( | const IntRect & | other | ) | const |
Definition at line 51 of file IntRect.cpp.
void WebCore::IntRect::intersect | ( | const IntRect & | other | ) |
Definition at line 57 of file IntRect.cpp.
bool WebCore::IntRect::intersects | ( | const IntRect & | other | ) | const |
Definition at line 43 of file IntRect.cpp.
void WebCore::IntRect::move | ( | const IntSize & | s | ) | [inline] |
void WebCore::IntRect::scale | ( | float | s | ) |
Definition at line 99 of file IntRect.cpp.
void WebCore::IntRect::setLocation | ( | const IntPoint & | location | ) | [inline] |
void WebCore::IntRect::setSize | ( | const IntSize & | size | ) | [inline] |
void WebCore::IntRect::unite | ( | const IntRect & | other | ) |
Definition at line 78 of file IntRect.cpp.
The documentation for this class was generated from the following files: