Berkelium::Rect Struct Reference
#include <Rect.hpp>
List of all members.
Member Function Documentation
int Berkelium::Rect::bottom |
( |
|
) |
const [inline] |
bool Berkelium::Rect::contains |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | const [inline] |
int Berkelium::Rect::height |
( |
|
) |
const [inline] |
Rect Berkelium::Rect::intersect |
( |
const Rect & |
rect |
) |
const [inline] |
int Berkelium::Rect::left |
( |
|
) |
const [inline] |
int Berkelium::Rect::right |
( |
|
) |
const [inline] |
template<class T >
void Berkelium::Rect::setFromRect |
( |
const T & |
sourceRect |
) |
[inline] |
int Berkelium::Rect::top |
( |
|
) |
const [inline] |
Rect Berkelium::Rect::translate |
( |
int |
dx, |
|
|
int |
dy | |
|
) |
| | const [inline] |
Create a new Rect equivalent to this Rect translated by the specified amounts in either direction.
- Parameters:
-
| dx | amount to translate along the X axis |
| dy | amount to translate along the Y axis |
- Returns:
- a new translated Rect
int Berkelium::Rect::width |
( |
|
) |
const [inline] |
int Berkelium::Rect::x |
( |
|
) |
const [inline] |
int Berkelium::Rect::y |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this struct was generated from the following file: