Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_selection_actions_panel_handle.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Luna Lovecraft <ciubix8514@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#ifndef _KIS_SELECTION_ACTIONS_PANNEL_HANDLE
8#define _KIS_SELECTION_ACTIONS_PANNEL_HANDLE
10#include <qpainter.h>
11#include <qwidget.h>
12
14
15class KisSelectionActionsPanelHandle : public QWidget
16{
17public:
18 KisSelectionActionsPanelHandle(int size, Orientation orientation, QWidget *parent);
20
21 void draw(QPainter& painter, const KoColorDisplayRendererInterface *renderInterface);
22 void set_held(bool held);
23 void setOrientation(Orientation orientation);
24 void themeChanged();
25
26protected:
27 void contextMenuEvent(QContextMenuEvent *event) override;
28 void mousePressEvent(QMouseEvent* event) override;
29private:
30 struct Private;
31 QScopedPointer<Private> d;
32};
33#endif
SelectionActionsBarOrientation
Definition kis_config.h:791
void mousePressEvent(QMouseEvent *event) override
void contextMenuEvent(QContextMenuEvent *event) override
KisSelectionActionsPanelHandle(int size, Orientation orientation, QWidget *parent)
void draw(QPainter &painter, const KoColorDisplayRendererInterface *renderInterface)