Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
706 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef KISFLOWOPACITYOPTION_H
#define KISFLOWOPACITYOPTION_H

#include "KisStandardOptions.h"
#include "KisOpacityOption.h"

class PAINTOP_EXPORT KisFlowOpacityOption2
{
public:
    KisFlowOpacityOption2(const KisPropertiesConfiguration *setting, KisNodeSP currentNode);

    void apply(KisPainter* painter, const KisPaintInformation& info);
    void apply(const KisPaintInformation &info, qreal *opacity, qreal *flow);

private:
    KisOpacityOption m_opacityOption;
    KisFlowOption m_flowOption;
    bool m_indirectPaintingActive {false};
};

#endif // KISFLOWOPACITYOPTION_H