PumpkinBrush
GeneralBrush.hpp
Go to the documentation of this file.
1 #ifndef GENERALBRUSH_HPP
2 #define GENERALBRUSH_HPP
3 // Include our Third-Party SFML header
4 #include <SFML/Graphics/Color.hpp>
5 #include <vector>
6 
7 // enum of size of the brush
8 enum size {small, medium, large};
9 
13 class GeneralBrush {
14 private:
15 
16 public:
17  virtual ~GeneralBrush(){};
18  virtual sf::Color getColor() = 0;
19  virtual void setColor(sf::Color) = 0;
20  virtual void setSize(size) = 0;
21  virtual int getSize() = 0;
22  virtual std::vector<std::vector<int>> getShader() = 0;
23  virtual int getType() = 0;
24 
25 };
26 
27 #endif
large
@ large
Definition: GeneralBrush.hpp:8
GeneralBrush::setColor
virtual void setColor(sf::Color)=0
GeneralBrush::getColor
virtual sf::Color getColor()=0
size
size
Definition: GeneralBrush.hpp:8
GeneralBrush::getType
virtual int getType()=0
medium
@ medium
Definition: GeneralBrush.hpp:8
GeneralBrush::getSize
virtual int getSize()=0
GeneralBrush::setSize
virtual void setSize(size)=0
GeneralBrush
GeneralBrush class which represent the brush instance when drawing on the canvas.
Definition: GeneralBrush.hpp:13
GeneralBrush::getShader
virtual std::vector< std::vector< int > > getShader()=0
small
@ small
Definition: GeneralBrush.hpp:8
GeneralBrush::~GeneralBrush
virtual ~GeneralBrush()
Definition: GeneralBrush.hpp:17