/*
 *  SPDX-FileCopyrightText: 2026 Luna Lovecraft <ciubix8514@gmail.com>
 *
 *  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 KisSelectionActionsPanelHandle : public QWidget
{
public:
    KisSelectionActionsPanelHandle(int size, Orientation orientation, QWidget *parent);
    ~KisSelectionActionsPanelHandle();

    void draw(QPainter& painter);
    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
