PumpkinBrush
include
Brush.hpp
Go to the documentation of this file.
1
#ifndef BRUSH_H
2
#define BRUSH_H
3
4
5
6
#include "
GeneralBrush.hpp
"
7
8
#include <vector>
9
13
class
Brush
:
public
GeneralBrush
{
14
private
:
15
sf::Color m_color;
16
size
m_size;
17
std::vector<std::vector<std::vector<int>>> m_shaders;
18
19
public
:
20
Brush
();
21
sf::Color
getColor
()
override
;
22
void
setColor
(sf::Color color)
override
;
23
void
setSize
(
size
size
)
override
;
24
int
getSize
()
override
;
25
std::vector<std::vector<int>>
getShader
()
override
;
26
int
getType
()
override
;
27
};
28
29
#endif
Brush::Brush
Brush()
Constructor of Brush.
Definition:
Brush.cpp:20
Brush::getColor
sf::Color getColor() override
Get color of brush.
Definition:
Brush.cpp:31
size
size
Definition:
GeneralBrush.hpp:8
Brush::setColor
void setColor(sf::Color color) override
Set color of brush.
Definition:
Brush.cpp:38
Brush::getShader
std::vector< std::vector< int > > getShader() override
Get shader of brush.
Definition:
Brush.cpp:67
Brush::setSize
void setSize(size size) override
Set size of brush.
Definition:
Brush.cpp:45
Brush::getSize
int getSize() override
Get size of brush.
Definition:
Brush.cpp:52
GeneralBrush
GeneralBrush class which represent the brush instance when drawing on the canvas.
Definition:
GeneralBrush.hpp:13
Brush
One kind of Brush which draws a square shape of pixels.
Definition:
Brush.hpp:13
GeneralBrush.hpp
Brush::getType
int getType() override
Get type of brush.
Definition:
Brush.cpp:83
Generated by
1.8.17