FXRectangle& FX::FXRectangle::set ( const FXPoint topleft,
const FXPoint bottomright 
) [inline]

Set from corners.

Definition at line 105 of file FXRectangle.h.

References FX::FXPoint::x, and FX::FXPoint::y.

00105 { x=topleft.x; y=topleft.y; w=bottomright.x-topleft.x+1; h=bottomright.y-topleft.y+1; return *this; }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:35:54 2009 for TnFOX by doxygen v1.4.7