Design Patterns
border_decorator.h
Go to the documentation of this file.
1 #ifndef DESIGNPATTERNS_DECORATOR_BORDER_DECORATOR_H_
2 #define DESIGNPATTERNS_DECORATOR_BORDER_DECORATOR_H_
3 
4 #include "decorator.h"
5 
6 #include "../../../foundation/src/visual_component_interface.h"
7 
8 namespace structural
9 {
10  class BorderDecorator : public Decorator
11  {
12  public:
13  BorderDecorator(VisualComponentInterface*, int borderWidth);
14 
15  virtual void Draw() override;
16 
17  private:
18  void DrawBorder(int);
19  int width_;
20  };
21 }
22 
23 #endif
Definition: shape_interface.h:11
Definition: decorator.h:8
Definition: border_decorator.h:10
virtual void Draw() override
BorderDecorator(VisualComponentInterface *, int borderWidth)