Design Patterns
window_interface.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef STRUCTURAL_BRIDGE_WINDOW_INTERFACE_H_
7 #define STRUCTURAL_BRIDGE_WINDOW_INTERFACE_H_
8 
9 #include "../commons/point.h"
10 
11 namespace structural
12 {
13 namespace bridge
14 {
16 {
17  public:
18  virtual ~WindowInterface() { }
19 
20  virtual void DrawRect(const commons::Point<float>& p1, const commons::Point<float>& p2) = 0;
21  virtual void DrawText(const std::string& text, const commons::Point<float>&) = 0;
22 };
23 }
24 }
25 
26 #endif
27 
Definition: shape_interface.h:11
virtual void DrawText(const std::string &text, const commons::Point< float > &)=0
virtual ~WindowInterface()
Definition: window_interface.h:18
virtual void DrawRect(const commons::Point< float > &p1, const commons::Point< float > &p2)=0
Definition: window_interface.h:15