PumpkinBrush
Public Member Functions | List of all members
Pen Class Reference

One kind of Brush which draws a circle shape of pixels. More...

#include <Pen.hpp>

Inheritance diagram for Pen:
Inheritance graph
[legend]
Collaboration diagram for Pen:
Collaboration graph
[legend]

Public Member Functions

 Pen ()
 Constructor of pen. More...
 
sf::Color getColor () override
 Get the color of the pen. More...
 
void setColor (sf::Color color) override
 Set the color of the pen. More...
 
void setSize (size size) override
 Set the size of the pen. More...
 
int getSize () override
 Get the size of the pen. More...
 
std::vector< std::vector< int > > getShader () override
 Get the shader of the pen. More...
 
int getType () override
 Get type of the pen. More...
 
- Public Member Functions inherited from GeneralBrush
virtual ~GeneralBrush ()
 

Detailed Description

One kind of Brush which draws a circle shape of pixels.

Constructor & Destructor Documentation

◆ Pen()

Pen::Pen ( )

Constructor of pen.

Member Function Documentation

◆ getColor()

sf::Color Pen::getColor ( )
overridevirtual

Get the color of the pen.

Implements GeneralBrush.

◆ getShader()

std::vector< std::vector< int > > Pen::getShader ( )
overridevirtual

Get the shader of the pen.

Implements GeneralBrush.

◆ getSize()

int Pen::getSize ( )
overridevirtual

Get the size of the pen.

Implements GeneralBrush.

◆ getType()

int Pen::getType ( )
overridevirtual

Get type of the pen.

Implements GeneralBrush.

◆ setColor()

void Pen::setColor ( sf::Color  color)
overridevirtual

Set the color of the pen.

Implements GeneralBrush.

◆ setSize()

void Pen::setSize ( size  size)
overridevirtual

Set the size of the pen.

Implements GeneralBrush.


The documentation for this class was generated from the following files: