00001 /* -*- mode: c++ -*- */ 00010 #ifndef _BOARD_RECT_H_ 00011 #define _BOARD_RECT_H_ 00012 00013 #include <iostream> 00014 00015 namespace BoardLib { 00016 00021 struct Rect { 00022 float left; 00023 float top; 00024 float width; 00025 float height; 00037 Rect( float left = 0.0f, float top = 0.0f, float width = 0.0f, float height = 0.0f ) 00038 :left( left ), top( top ), width( width ), height( height ) { } 00039 }; 00040 00049 Rect operator||( const Rect & rectA, const Rect & rectB ); 00050 00051 00052 } // mamespace BoardLib 00053 00062 std::ostream & operator<<( std::ostream & out, const BoardLib::Rect & rect ); 00063 00064 #endif // _RECT_H_