Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPopupWidgetInterface.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2021 Emmet O 'Neill <emmetoneill.pdx@gmail.com>
3
* SPDX-FileCopyrightText: 2021 Eoin O 'Neill <eoinoneill1991@gmail.com>
4
*
5
* SPDX-License-Identifier: GPL-2.0-or-later
6
*/
7
8
#ifndef KISPOPUPWIDGETINTERFACE_H
9
#define KISPOPUPWIDGETINTERFACE_H
10
11
#include <QWidget>
12
#include <QGridLayout>
13
21
class
KisPopupWidgetInterface
{
22
public
:
23
virtual
~KisPopupWidgetInterface
() {}
24
28
virtual
void
popup
(
const
QPoint& position) = 0;
29
33
virtual
bool
onScreen
() = 0;
34
38
virtual
void
dismiss
() = 0;
39
40
Q_SIGNALS:
44
virtual
void
finished
() = 0;
45
};
46
47
Q_DECLARE_INTERFACE(
KisPopupWidgetInterface
,
"KisPopupWidgetInterface"
)
48
49
#endif
// KISPOPUPWIDGETINTERFACE_H
KisPopupWidgetInterface
The PopupWidgetInterface abstract class defines the basic interface that will be used by all popup wi...
Definition
KisPopupWidgetInterface.h:21
KisPopupWidgetInterface::dismiss
virtual void dismiss()=0
Called when you want to dismiss a popup widget.
KisPopupWidgetInterface::~KisPopupWidgetInterface
virtual ~KisPopupWidgetInterface()
Definition
KisPopupWidgetInterface.h:23
KisPopupWidgetInterface::finished
virtual void finished()=0
Emitted when a popup widget believes that its job is finished.
KisPopupWidgetInterface::popup
virtual void popup(const QPoint &position)=0
Called when and where you want a widget to popup.
KisPopupWidgetInterface::onScreen
virtual bool onScreen()=0
Returns whether the widget is active (on screen) or not.
libs
ui
KisPopupWidgetInterface.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52