Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
Rectangle Struct Reference

a custom rectangle class More...

Public Types

typedef int value_type
 coordinate type
 

Public Member Functions

value_type const & xl () const
 access left coordinate More...
 
value_type const & yl () const
 access bottom coordinate More...
 
value_type const & xh () const
 access right coordinate More...
 
value_type const & yh () const
 access top coordinate More...
 
void xl (value_type v)
 set left coordinate More...
 
void yl (value_type v)
 set bottom coordinate More...
 
void xh (value_type v)
 set right coordinate More...
 
void yh (value_type v)
 set top coordinate More...
 

Public Attributes

value_type m_xl
 left
 
value_type m_yl
 bottom
 
value_type m_xh
 right
 
value_type m_yh
 top
 

Detailed Description

a custom rectangle class

Definition at line 110 of file test_p2r.cpp.

Member Function Documentation

value_type const& Rectangle::xh ( ) const
inline

access right coordinate

Returns
right coordinate

Definition at line 138 of file test_p2r.cpp.

void Rectangle::xh ( value_type  v)
inline

set right coordinate

Parameters
vcoordinate value

Definition at line 158 of file test_p2r.cpp.

value_type const& Rectangle::xl ( ) const
inline

access left coordinate

Returns
left coordinate

Definition at line 128 of file test_p2r.cpp.

void Rectangle::xl ( value_type  v)
inline

set left coordinate

Parameters
vcoordinate value

Definition at line 148 of file test_p2r.cpp.

value_type const& Rectangle::yh ( ) const
inline

access top coordinate

Returns
top coordinate

Definition at line 143 of file test_p2r.cpp.

void Rectangle::yh ( value_type  v)
inline

set top coordinate

Parameters
vcoordinate value

Definition at line 163 of file test_p2r.cpp.

value_type const& Rectangle::yl ( ) const
inline

access bottom coordinate

Returns
bottom coordinate

Definition at line 133 of file test_p2r.cpp.

void Rectangle::yl ( value_type  v)
inline

set bottom coordinate

Parameters
vcoordinate value

Definition at line 153 of file test_p2r.cpp.


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