Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPerStrokeRandomSource.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISPERSTROKERANDOMSOURCE_H
8#define KISPERSTROKERANDOMSOURCE_H
9
10#include <QScopedPointer>
11#include "kis_shared.h"
12#include "kis_shared_ptr.h"
13
14#include "kritaimage_export.h"
15
16
17class KRITAIMAGE_EXPORT KisPerStrokeRandomSource : public KisShared
18{
19public:
22
24
28 int generate(const QString &key, int min, int max) const;
29
33 qreal generateNormalized(const QString &key) const;
34
35private:
36 struct Private;
37 const QScopedPointer<Private> m_d;
38};
39
43
44#endif // KISPERSTROKERANDOMSOURCE_H
KisWeakSharedPtr< KisPerStrokeRandomSource > KisPerStrokeRandomSourceWSP
KisSharedPtr< KisPerStrokeRandomSource > KisPerStrokeRandomSourceSP
const QScopedPointer< Private > m_d