Elements
6.2
A C++ base framework for the Euclid Software.
ElementsExamples
ElementsExamples
Rectangle.h
Go to the documentation of this file.
1
24
#ifndef ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_RECTANGLE_H_
25
#define ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_RECTANGLE_H_
26
27
#include <utility>
// for move
28
29
#include "
ElementsKernel/Export.h
"
// for ELEMENTS_API
30
31
namespace
Elements
{
32
namespace
Examples {
33
34
class
ELEMENTS_API
Rectangle
{
35
public
:
36
int
x0
;
37
int
y0
;
38
int
x1
;
39
int
y1
;
40
Rectangle
(
int
xl,
int
yl,
int
xu,
int
yu);
41
~
Rectangle
();
42
int
getLength();
43
int
getHeight();
44
int
getArea();
45
void
move(
int
dx,
int
dy);
46
};
47
48
}
// namespace Examples
49
}
// namespace Elements
50
51
#endif // ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_RECTANGLE_H_
52
Elements::Examples::Rectangle::x1
int x1
Definition:
Rectangle.h:38
Export.h
defines the macros to be used for explicit export of the symbols
ELEMENTS_API
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition:
Export.h:74
Elements::Examples::Rectangle::y0
int y0
Definition:
Rectangle.h:37
Elements::Examples::Rectangle
Definition:
Rectangle.h:34
Elements::Examples::Rectangle::y1
int y1
Definition:
Rectangle.h:39
Elements::Examples::Rectangle::x0
int x0
Definition:
Rectangle.h:36
Elements
Definition:
callBackExample.h:35
Generated by
1.8.17