Elements
6.0.1
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
, y0, x1, y1;
37
Rectangle
(
int
x0,
int
y0,
int
x1,
int
y1);
38
~
Rectangle
();
39
int
getLength();
40
int
getHeight();
41
int
getArea();
42
void
move(
int
dx,
int
dy);
43
};
44
45
}
// namespace Examples
46
}
// namespace Elements
47
48
#endif
// ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_RECTANGLE_H_
49
Export.h
defines the macros to be used for explicit export of the symbols
Elements::Examples::Rectangle
Definition:
Rectangle.h:34
Elements::Examples::Rectangle::x0
int x0
Definition:
Rectangle.h:36
ELEMENTS_API
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition:
Export.h:74
Elements
Definition:
callBackExample.h:35
Generated by
1.9.1