Elements  6.0.1
A C++ base framework for the Euclid Software.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
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 
defines the macros to be used for explicit export of the symbols
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition: Export.h:74