Elements
5.10
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 "
ElementsKernel/Export.h
"
28
29
namespace
Elements
{
30
namespace
Examples {
31
32
class
ELEMENTS_API
Rectangle
{
33
public
:
34
int
x0, y0, x1,
y1
;
35
Rectangle
(
int
x0,
int
y0,
int
x1,
int
y1);
36
~
Rectangle
();
37
int
getLength();
38
int
getHeight();
39
int
getArea();
40
void
move(
int
dx,
int
dy);
41
};
42
43
44
}
// namespace Examples
45
}
// namespace Elements
46
47
#endif // ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_RECTANGLE_H_
48
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
Definition:
Rectangle.h:32
Elements::Examples::Rectangle::y1
int y1
Definition:
Rectangle.h:34
Elements
Definition:
ClassExample.h:38
Generated by
1.8.18