Berkelium

Berkelium::Rect Struct Reference

#include <Rect.hpp>

List of all members.

Public Member Functions

int y () const
int x () const
int top () const
int left () const
int width () const
int height () const
int right () const
int bottom () const
template<class T >
void setFromRect (const T &sourceRect)
bool contains (int x, int y) const
Rect intersect (const Rect &rect) const
Rect translate (int dx, int dy) const
 Create a new Rect equivalent to this Rect translated by the specified amounts in either direction.

Public Attributes

int mLeft
int mTop
int mWidth
int mHeight

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:

Documentation generated on 22 Nov 2013