Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
Public Member Functions | Public Attributes | List of all members
kome::core::Rect< T > Class Template Reference

rectangle management class More...

#include <Rect.h>

Public Member Functions

 Rect ()
 constructor
 
 Rect (T &l, T &t, T &r, T &b)
 constructor More...
 
virtual ~Rect ()
 destructor
 
getWidth ()
 gets width of rectangle More...
 
getHeight ()
 gets height of rectangle More...
 

Public Attributes

left
 
top
 
right
 
bottom
 

Detailed Description

template<typename T>
class kome::core::Rect< T >

rectangle management class

Definition at line 20 of file Rect.h.

Constructor & Destructor Documentation

template<typename T >
kome::core::Rect< T >::Rect ( T &  l,
T &  t,
T &  r,
T &  b 
)
inline

constructor

Parameters
[in]lleft position
[in]ttop position
[in]rright position
[in]bbottom position

Definition at line 37 of file Rect.h.

37  : left( l ), top( t ), right( r ), bottom( b ) {
38  }

Member Function Documentation

template<typename T >
T kome::core::Rect< T >::getHeight ( )
inline

gets height of rectangle

Returns
height

Definition at line 72 of file Rect.h.

72  {
73  return RANGE( top, bottom );
74  }
#define RANGE(x, y)
Definition: CoreMacros.h:40
template<typename T >
T kome::core::Rect< T >::getWidth ( )
inline

gets width of rectangle

Returns
width

Definition at line 63 of file Rect.h.

63  {
64  return RANGE( left, right );
65  }
#define RANGE(x, y)
Definition: CoreMacros.h:40

Member Data Documentation

template<typename T >
T kome::core::Rect< T >::bottom

position of bottom

Definition at line 55 of file Rect.h.

template<typename T >
T kome::core::Rect< T >::left

position of left

Definition at line 49 of file Rect.h.

template<typename T >
T kome::core::Rect< T >::right

position of right

Definition at line 53 of file Rect.h.

template<typename T >
T kome::core::Rect< T >::top

position of top

Definition at line 51 of file Rect.h.


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