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++
/*
* SPDX-FileCopyrightText: 2026 Luna Lovecraft <[email protected]>
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef _KIS_SELECTION_ACTIONS_PANNEL_HANDLE
#define _KIS_SELECTION_ACTIONS_PANNEL_HANDLE
#include "kis_selection_actions_panel.h"
#include <qpainter.h>
#include <qwidget.h>
class KoColorDisplayRendererInterface;
class KisSelectionActionsPanelHandle : public QWidget
{
public:
KisSelectionActionsPanelHandle(int size, Orientation orientation, QWidget *parent);
~KisSelectionActionsPanelHandle();
void draw(QPainter& painter, const KoColorDisplayRendererInterface *renderInterface);
void set_held(bool held);
void setOrientation(Orientation orientation);
void themeChanged();
protected:
void contextMenuEvent(QContextMenuEvent *event) override;
void mousePressEvent(QMouseEvent* event) override;
private:
struct Private;
QScopedPointer<Private> d;
};
#endif