Design Patterns
x_window_imp.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_X_WINDOW_IMP_H_
7 #define STRUCTURAL_BRIDGE_X_WINDOW_IMP_H_
8 
9 #include "window_imp.h"
10 
11 #include <string>
12 
13 namespace structural
14 {
15 namespace bridge
16 {
17 class XWindowImp : public WindowImp
18 {
19  public:
20  XWindowImp();
21 
22  virtual void DeviceText(const std::string& text, float, float) override;
23  virtual void DeviceRect(float, float, float, float) override;
24 
25  std::string text() const;
26 
27  private:
28  std::string text_;
29 };
30 }
31 }
32 
33 #endif
34 
Definition: window_imp.h:15
Definition: shape_interface.h:11
std::string text() const
Definition: x_window_imp.cc:25
XWindowImp()
Definition: x_window_imp.cc:14
virtual void DeviceText(const std::string &text, float, float) override
Definition: x_window_imp.cc:16
virtual void DeviceRect(float, float, float, float) override
Definition: x_window_imp.cc:23
Definition: x_window_imp.h:17