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++
856 B
Raw Blame
/* This file is part of the KDE libraries
   SPDX-FileCopyrightText: 2026 Arkady Flury <[email protected]>

   SPDX-License-Identifier: LGPL-2.0-only
*/

#ifndef KOSWAPBGFGCOLOURS_H
#define KOSWAPBGFGCOLOURS_H


#include <KoDualColorButton.h>


class KisCanvas2;

class KRITAUI_EXPORT KoSwapBgFgColours : public KoDualColorButton {
    Q_OBJECT
public:
    KoSwapBgFgColours(KisCanvasResourceProvider *canvasResourceProvider,
                      const KoColorDisplayRendererInterface *displayRenderer = 0,
                      QWidget *parent = 0, QWidget *dialogParent = 0);
    void paint_icons(QPainter &painter) override;
    void mouseReleaseEvent( QMouseEvent *event ) override;
    void mousePressEvent( QMouseEvent *event ) override;
    bool event(QEvent *event) override;
    void mouseMoveEvent( QMouseEvent *event ) override;
};

#endif