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++
1.0 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2017 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KISDELAYEDUPDATENODEINTERFACE_H
#define KISDELAYEDUPDATENODEINTERFACE_H

#include "kritaimage_export.h"


/**
 * @brief The KisDelayedUpdateNodeInterface class is an interface for
 * nodes that delay their real updates with KisSignalCompressor. Some
 * operations need explicit regeneration before they can proceed.
 */
class KRITAIMAGE_EXPORT KisDelayedUpdateNodeInterface
{
public:
    virtual ~KisDelayedUpdateNodeInterface();

    /**
     * @brief forceUpdateTimedNode forces the node to regenerate its project. The update might
     * be asynchronous, so you should call image->waitForDone() after that.
     */
    virtual void forceUpdateTimedNode() = 0;

    /**
     * @return true if forceUpdateTimedNode() is going to
     * produce any real updates, that is the node has any
     * updates still pending
     */
    virtual bool hasPendingTimedUpdates() const = 0;
};

#endif // KISDELAYEDUPDATENODEINTERFACE_H