Mass++ Common Libraries v2.7.5
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Macros
CoreToolkits
Rect.h
Go to the documentation of this file.
1
11
#ifndef __KOME_CORE_RECT_H__
12
#define __KOME_CORE_RECT_H__
13
14
namespace
kome {
15
namespace
core {
20
template
<
typename
T>
class
Rect
{
21
public
:
26
Rect
() :
left
(),
top
(),
right
(),
bottom
() {
27
}
28
37
Rect
( T& l, T& t, T& r, T& b ) :
left
( l ),
top
( t ),
right
( r ),
bottom
( b ) {
38
}
39
44
virtual
~Rect
() {
45
}
46
47
public
:
49
T
left
;
51
T
top
;
53
T
right
;
55
T
bottom
;
56
57
public
:
63
T
getWidth
() {
64
return
RANGE
(
left
,
right
);
65
}
66
72
T
getHeight
() {
73
return
RANGE
(
top
,
bottom
);
74
}
75
};
76
}
77
}
78
79
#endif // __KOME_CORE_RECT_H__
kome::core::Rect::getHeight
T getHeight()
gets height of rectangle
Definition:
Rect.h:72
kome::core::Rect::Rect
Rect(T &l, T &t, T &r, T &b)
constructor
Definition:
Rect.h:37
kome::core::Rect::top
T top
Definition:
Rect.h:51
RANGE
#define RANGE(x, y)
Definition:
CoreMacros.h:40
kome::core::Rect::~Rect
virtual ~Rect()
destructor
Definition:
Rect.h:44
kome::core::Rect::getWidth
T getWidth()
gets width of rectangle
Definition:
Rect.h:63
kome::core::Rect::left
T left
Definition:
Rect.h:49
kome::core::Rect
rectangle management class
Definition:
Rect.h:20
kome::core::Rect::bottom
T bottom
Definition:
Rect.h:55
kome::core::Rect::Rect
Rect()
constructor
Definition:
Rect.h:26
kome::core::Rect::right
T right
Definition:
Rect.h:53
Generated on Sun Mar 18 2018 12:32:08 for Mass++ Common Libraries v2.7.5 by
1.8.6