sk::DrawMode class

Defines methods for drawing with different instruments.

Currently: BrushMode and PenMode.

Derived classes

class BrushMode
Implements drawing with a brush.
class PenMode
Implements drawing with a pen.

Public static functions

static auto getDefaultColor() noexcept -> QColor -> auto constexpr
Tools start out with this color.
static auto getDefaultWidth() noexcept -> int -> auto constexpr
Tools start out with this size.

Public functions

auto getWidth() const noexcept -> int -> auto
Gets size of tool.
auto setWidth(int const width) noexcept -> void -> auto
Changes size of tool.
auto getColor() const noexcept -> QColor -> auto
Gets color of tool.
auto setColor(QColor const& color) noexcept -> void -> auto
Sets color of tool.