|
Krita Source Code Documentation
|
#include <Extension.h>
Inheritance diagram for Extension:Public Member Functions | |
| virtual void | createActions (Window *window)=0 |
| Extension (QObject *parent=0) | |
| virtual void | setup ()=0 |
| ~Extension () override | |
An Extension is the base for classes that extend Krita. An Extension is loaded on startup, when the setup() method will be executed.
The extension instance should be added to the Krita Application object using Krita.instance().addViewExtension or Application.addViewExtension or Scripter.addViewExtension.
Example:
Definition at line 49 of file Extension.h.
|
explicit |
Create a new extension. The extension will be owned by parent.
Definition at line 12 of file Extension.cpp.
|
override |
Definition at line 17 of file Extension.cpp.
|
pure virtual |