Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_scaling_size_brush.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
13
15 : KisBrush(filename)
16{
17}
18
25
27{
28 return qMax(this->width(), this->height()) * this->scale();
29}
30
32{
33 this->setScale(value / qMax(this->width(), this->height()));
34}
35
36
float value(const T *src, size_t ch)
qint32 width() const
virtual void setScale(qreal _scale)
qint32 height() const
qreal scale() const
qreal userEffectiveSize() const override
void setUserEffectiveSize(qreal value) override
void setValid(bool valid)
void setName(const QString &name)
QString name