Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPopupWidgetInterface Class Referenceabstract

The PopupWidgetInterface abstract class defines the basic interface that will be used by all popup widgets. More...

#include <KisPopupWidgetInterface.h>

+ Inheritance diagram for KisPopupWidgetInterface:

Signals

virtual void finished ()=0
 Emitted when a popup widget believes that its job is finished.
 

Public Member Functions

virtual void dismiss ()=0
 Called when you want to dismiss a popup widget.
 
virtual bool onScreen ()=0
 Returns whether the widget is active (on screen) or not.
 
virtual void popup (const QPoint &position)=0
 Called when and where you want a widget to popup.
 
virtual ~KisPopupWidgetInterface ()
 

Detailed Description

The PopupWidgetInterface abstract class defines the basic interface that will be used by all popup widgets.

Classes that implement this interface should use Q_INTERFACES(KisPopupWidgetInterface)! This is needed in order to include signals in the interface.

Definition at line 21 of file KisPopupWidgetInterface.h.

Constructor & Destructor Documentation

◆ ~KisPopupWidgetInterface()

virtual KisPopupWidgetInterface::~KisPopupWidgetInterface ( )
inlinevirtual

Definition at line 23 of file KisPopupWidgetInterface.h.

23{}

Member Function Documentation

◆ dismiss()

virtual void KisPopupWidgetInterface::dismiss ( )
pure virtual

Called when you want to dismiss a popup widget.

Implemented in KisPopupPalette.

◆ finished

virtual void KisPopupWidgetInterface::finished ( )
pure virtualsignal

Emitted when a popup widget believes that its job is finished.

◆ onScreen()

virtual bool KisPopupWidgetInterface::onScreen ( )
pure virtual

Returns whether the widget is active (on screen) or not.

Implemented in KisPopupPalette.

◆ popup()

virtual void KisPopupWidgetInterface::popup ( const QPoint & position)
pure virtual

Called when and where you want a widget to popup.

Implemented in KisPopupPalette.


The documentation for this class was generated from the following file: