pleyo.com

WKAL::FloatRect Class Reference

List of all members.

Public Member Functions

 FloatRect ()
 FloatRect default constructor.
 FloatRect (const FloatPoint &location, const FloatSize &size)
 FloatRect constructor.
 FloatRect (const IntRect &)
 FloatRect constructor.
FloatPoint location () const
 get float rect position
FloatSize size () const
 get float rect size
void setLocation (const FloatPoint &location)
 set position
void setSize (const FloatSize &size)
 set size
float x () const
 get x value
float y () const
 get y value
float width () const
 get width value
float height () const
 get height value
void setX (float x)
 set x value
void setY (float y)
 set y value
void setWidth (float width)
 set width value
void setHeight (float height)
 set height value
bool isEmpty () const
 test if the FloatRect is empty
float right () const
 get right position
float bottom () const
 get bottom position
void move (const FloatSize &delta)
 move float rect position
void move (float dx, float dy)
 move float rect position
bool intersects (const FloatRect &) const
 intersects with the float rect given
bool contains (const FloatRect &) const
 test if float rect contains the float rect given
void intersect (const FloatRect &)
 intersect with the float rect given
void unite (const FloatRect &)
 it's a union with the float rect given
bool contains (const FloatPoint &point) const
 test if the point is contains in float rect
void inflateX (float dx)
 inflate x
void inflateY (float dy)
 inflate y
void inflate (float d)
 inflate
void scale (float s)
 scale

Static Public Member Functions

static FloatRect narrowPrecision (double x, double y, double width, double height)
 narrow precision


Constructor & Destructor Documentation

WKAL::FloatRect::FloatRect (  ) 

FloatRect default constructor.

WKAL::FloatRect::FloatRect ( const FloatPoint location,
const FloatSize size 
)

FloatRect constructor.

Parameters:
[in] : position
[in] : size
 FloatRect r(l,s);

WKAL::FloatRect::FloatRect ( const IntRect  ) 

FloatRect constructor.

Parameters:
[in] : IntRect
 FloatRect(IntRect(0,0));


Member Function Documentation

static FloatRect WKAL::FloatRect::narrowPrecision ( double  x,
double  y,
double  width,
double  height 
) [static]

narrow precision

Parameters:
[in] : x value
[in] : y value
[in] : width value
[in] : height value
[out] : float rect
 FloatRect r = FloatRect::narrowPrecision(0, 0, 10.1, 10.3);

FloatPoint WKAL::FloatRect::location (  )  const

get float rect position

Parameters:
[out] : position
 FloatPoint p = r.location();

FloatSize WKAL::FloatRect::size (  )  const

get float rect size

Parameters:
[out] : size
 FloatSize s = r.size();

void WKAL::FloatRect::setLocation ( const FloatPoint location  ) 

set position

Parameters:
[in] : position
 r.setLocation(p);

void WKAL::FloatRect::setSize ( const FloatSize size  ) 

set size

Parameters:
[in] : size
 r.setSize(s);

float WKAL::FloatRect::x (  )  const

get x value

Parameters:
[out] : x value
 float x = r.x();

float WKAL::FloatRect::y (  )  const

get y value

Parameters:
[out] : y value
 float y = r.y();

float WKAL::FloatRect::width (  )  const

get width value

Parameters:
[out] : width value
 float w = r.width();

float WKAL::FloatRect::height (  )  const

get height value

Parameters:
[out] : height value
 float h = r.height();

void WKAL::FloatRect::setX ( float  x  ) 

set x value

Parameters:
[in] : x value
 r.setX(0.1);

void WKAL::FloatRect::setY ( float  y  ) 

set y value

Parameters:
[in] : y value
 r.setY(1.3);

void WKAL::FloatRect::setWidth ( float  width  ) 

set width value

Parameters:
[in] : width value
 r.setWidth(4.6);

void WKAL::FloatRect::setHeight ( float  height  ) 

set height value

Parameters:
[in] : height value
 r.setHeight(5.3);

bool WKAL::FloatRect::isEmpty (  )  const

test if the FloatRect is empty

Parameters:
[out] : true if the FloatRect is empty
 bool emp = r.isEmpty();

float WKAL::FloatRect::right (  )  const

get right position

Parameters:
[out] : right position
 float ri = r.right();

float WKAL::FloatRect::bottom (  )  const

get bottom position

Parameters:
[out] : bottom position
 float b = r.bottom();

void WKAL::FloatRect::move ( const FloatSize delta  ) 

move float rect position

Parameters:
[in] : size delta
 r.move(d);

void WKAL::FloatRect::move ( float  dx,
float  dy 
)

move float rect position

Parameters:
[in] : x delta value
[in] : y delta value
 r.move(4.3, 5.2);

bool WKAL::FloatRect::intersects ( const FloatRect  )  const

intersects with the float rect given

Parameters:
[in] : float rect
[out] : true if the intersects is possible.
 bool o = r.intersects(f);

bool WKAL::FloatRect::contains ( const FloatRect  )  const

test if float rect contains the float rect given

Parameters:
[in] : float rect
[out] : true if float rect contains the float rect given
 bool c = r.contains(f);

void WKAL::FloatRect::intersect ( const FloatRect  ) 

intersect with the float rect given

Parameters:
[in] : float rect
 r.intersects(f);

void WKAL::FloatRect::unite ( const FloatRect  ) 

it's a union with the float rect given

Parameters:
[in] : float rect
 r.unite(f);

bool WKAL::FloatRect::contains ( const FloatPoint point  )  const

test if the point is contains in float rect

Parameters:
[in] : point
[out] : true if the point is contains in float rect
 bool c = r.contains(p);

void WKAL::FloatRect::inflateX ( float  dx  ) 

inflate x

Parameters:
[in] : delta x value
 r.inflateX(3.2);

void WKAL::FloatRect::inflateY ( float  dy  ) 

inflate y

Parameters:
[in] : delta y value
 r.inflateY(4.2);

void WKAL::FloatRect::inflate ( float  d  ) 

inflate

Parameters:
[in] : delta value
 r.inflate(3.0);

void WKAL::FloatRect::scale ( float  s  ) 

scale

Parameters:
[in] : scale value
 r.scale(3.4);


The documentation for this class was generated from the following file:

Generated on Mon Jun 30 16:22:08 2008 for Origyn Web Browser by Doxygen 1.5.5

pleyo.com
pleyo.com