|
| | ScriptedEffectWithDebugSpy () |
| |
| bool | load (const QString &name) |
| |
| Q_INVOKABLE void | sendTestResponse (const QString &out) |
| |
| QList< QAction * > | actions () |
| |
| AniMap | state () const |
| |
| const QString & | scriptFile () const |
| |
| void | reconfigure (ReconfigureFlags flags) override |
| |
| int | requestedEffectChainPosition () const override |
| |
| QString | activeConfig () const |
| |
| void | setActiveConfig (const QString &name) |
| |
| | ~ScriptedEffect () override |
| |
| Q_SCRIPTABLE bool | isGrabbed (KWin::EffectWindow *w, DataRole grabRole) |
| |
| Q_SCRIPTABLE bool | grab (KWin::EffectWindow *w, DataRole grabRole, bool force=false) |
| |
| Q_SCRIPTABLE bool | ungrab (KWin::EffectWindow *w, DataRole grabRole) |
| |
| Q_SCRIPTABLE QJSValue | readConfig (const QString &key, const QJSValue &defaultValue=QJSValue()) |
| |
| Q_SCRIPTABLE int | displayWidth () const |
| |
| Q_SCRIPTABLE int | displayHeight () const |
| |
| Q_SCRIPTABLE int | animationTime (int defaultTime) const |
| |
| Q_SCRIPTABLE void | registerShortcut (const QString &objectName, const QString &text, const QString &keySequence, const QJSValue &callback) |
| |
| Q_SCRIPTABLE bool | registerScreenEdge (int edge, const QJSValue &callback) |
| |
| Q_SCRIPTABLE bool | registerRealtimeScreenEdge (int edge, const QJSValue &callback) |
| |
| Q_SCRIPTABLE bool | unregisterScreenEdge (int edge) |
| |
| Q_SCRIPTABLE bool | registerTouchScreenEdge (int edge, const QJSValue &callback) |
| |
| Q_SCRIPTABLE bool | unregisterTouchScreenEdge (int edge) |
| |
| Q_SCRIPTABLE quint64 | animate (KWin::EffectWindow *window, Attribute attribute, int ms, const QJSValue &to, const QJSValue &from=QJSValue(), uint metaData=0, int curve=QEasingCurve::Linear, int delay=0, bool fullScreen=false, bool keepAlive=true, uint shaderId=0) |
| |
| Q_SCRIPTABLE QJSValue | animate (const QJSValue &object) |
| |
| Q_SCRIPTABLE quint64 | set (KWin::EffectWindow *window, Attribute attribute, int ms, const QJSValue &to, const QJSValue &from=QJSValue(), uint metaData=0, int curve=QEasingCurve::Linear, int delay=0, bool fullScreen=false, bool keepAlive=true, uint shaderId=0) |
| |
| Q_SCRIPTABLE QJSValue | set (const QJSValue &object) |
| |
| Q_SCRIPTABLE bool | retarget (quint64 animationId, const QJSValue &newTarget, int newRemainingTime=-1) |
| |
| Q_SCRIPTABLE bool | retarget (const QList< quint64 > &animationIds, const QJSValue &newTarget, int newRemainingTime=-1) |
| |
| Q_SCRIPTABLE bool | freezeInTime (quint64 animationId, qint64 frozenTime) |
| |
| Q_SCRIPTABLE bool | freezeInTime (const QList< quint64 > &animationIds, qint64 frozenTime) |
| |
| Q_SCRIPTABLE bool | redirect (quint64 animationId, Direction direction, TerminationFlags terminationFlags=TerminateAtSource) |
| |
| Q_SCRIPTABLE bool | redirect (const QList< quint64 > &animationIds, Direction direction, TerminationFlags terminationFlags=TerminateAtSource) |
| |
| Q_SCRIPTABLE bool | complete (quint64 animationId) |
| |
| Q_SCRIPTABLE bool | complete (const QList< quint64 > &animationIds) |
| |
| Q_SCRIPTABLE bool | cancel (quint64 animationId) |
| |
| Q_SCRIPTABLE bool | cancel (const QList< quint64 > &animationIds) |
| |
| Q_SCRIPTABLE QList< int > | touchEdgesForAction (const QString &action) const |
| |
| Q_SCRIPTABLE uint | addFragmentShader (ShaderTrait traits, const QString &fragmentShaderFile={}) |
| |
| Q_SCRIPTABLE void | setUniform (uint shaderId, const QString &name, const QJSValue &value) |
| |
| QHash< int, QJSValueList > & | screenEdgeCallbacks () |
| |
| QHash< int, QJSValueList > & | realtimeScreenEdgeCallbacks () |
| |
| QString | pluginId () const |
| |
| bool | isActiveFullScreenEffect () const |
| |
| | AnimationEffect () |
| |
| | ~AnimationEffect () override |
| |
| bool | isActive () const override |
| |
| QString | debug (const QString ¶meter) const override |
| |
| void | prePaintWindow (EffectWindow *w, WindowPrePaintData &data, std::chrono::milliseconds presentTime) override |
| |
| void | paintWindow (const RenderTarget &renderTarget, const RenderViewport &viewport, EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override |
| |
| void | postPaintScreen () override |
| |
| | CrossFadeEffect (QObject *parent=nullptr) |
| |
| | ~CrossFadeEffect () override |
| |
| void | drawWindow (const RenderTarget &renderTarget, const RenderViewport &viewport, EffectWindow *window, int mask, const QRegion ®ion, WindowPaintData &data) override |
| |
| void | redirect (EffectWindow *window) |
| |
| void | unredirect (EffectWindow *window) |
| |
| void | setShader (EffectWindow *window, GLShader *shader) |
| |
| | Effect (QObject *parent=nullptr) |
| |
| | ~Effect () override |
| |
| virtual void | prePaintScreen (ScreenPrePaintData &data, std::chrono::milliseconds presentTime) |
| |
| virtual void | paintScreen (const RenderTarget &renderTarget, const RenderViewport &viewport, int mask, const QRegion ®ion, Output *screen) |
| |
| virtual void | postPaintWindow (EffectWindow *w) |
| |
| virtual bool | provides (Feature) |
| |
| virtual bool | perform (Feature feature, const QVariantList &arguments) |
| |
| virtual void | windowInputMouseEvent (QEvent *e) |
| |
| virtual void | grabbedKeyboardEvent (QKeyEvent *e) |
| |
| virtual bool | touchDown (qint32 id, const QPointF &pos, std::chrono::microseconds time) |
| |
| virtual bool | touchMotion (qint32 id, const QPointF &pos, std::chrono::microseconds time) |
| |
| virtual bool | touchUp (qint32 id, std::chrono::microseconds time) |
| |
| virtual bool | tabletToolEvent (QTabletEvent *event) |
| |
| virtual bool | tabletToolButtonEvent (uint button, bool pressed, quint64 tabletToolId) |
| |
| virtual bool | tabletPadButtonEvent (uint button, bool pressed, void *tabletPadId) |
| |
| virtual bool | tabletPadStripEvent (int number, int position, bool isFinger, void *tabletPadId) |
| |
| virtual bool | tabletPadRingEvent (int number, int position, bool isFinger, void *tabletPadId) |
| |
| template<typename T > |
| int | animationTime (int defaultDuration) |
| |
| virtual bool | blocksDirectScanout () const |
| |
|
| bool | borderActivated (ElectricBorder border) override |
| |
| virtual bool | borderActivated (ElectricBorder border) |
| |
| static ScriptedEffect * | create (const QString &effectName, const QString &pathToScript, int chainPosition, const QString &exclusiveCategory) |
| |
| static ScriptedEffect * | create (const KPluginMetaData &effect) |
| |
| static bool | supported () |
| |
| static int | metaData (MetaType type, uint meta) |
| |
| static void | setMetaData (MetaType type, uint value, uint &meta) |
| |
| static qreal | qecGaussian (qreal progress) |
| |
| static qint64 | clock () |
| |
| static bool | supported () |
| |
| static QPointF | cursorPos () |
| |
| static double | animationTime (const KConfigGroup &cfg, const QString &key, int defaultTime) |
| |
| static double | animationTime (int defaultTime) |
| |
| static double | interpolate (double x, double y, double a) |
| |
| static void | setPositionTransformations (WindowPaintData &data, QRect ®ion, EffectWindow *w, const QRect &r, Qt::AspectRatioMode aspect) |
| |
| typedef QMap< EffectWindow *, QPair< QList< AniData >, QRect > > | AniMap |
| |
| | ScriptedEffect () |
| |
| QJSEngine * | engine () const |
| |
| bool | init (const QString &effectName, const QString &pathToScript) |
| |
| void | animationEnded (KWin::EffectWindow *w, Attribute a, uint meta) override |
| |
| quint64 | animate (EffectWindow *w, Attribute a, uint meta, int ms, const FPx2 &to, const QEasingCurve &curve=QEasingCurve(), int delay=0, const FPx2 &from=FPx2(), bool fullScreen=false, bool keepAlive=true, GLShader *shader=nullptr) |
| |
| quint64 | set (EffectWindow *w, Attribute a, uint meta, int ms, const FPx2 &to, const QEasingCurve &curve=QEasingCurve(), int delay=0, const FPx2 &from=FPx2(), bool fullScreen=false, bool keepAlive=true, GLShader *shader=nullptr) |
| |
| bool | retarget (quint64 animationId, FPx2 newTarget, int newRemainingTime=-1) |
| |
| bool | freezeInTime (quint64 animationId, qint64 frozenTime) |
| |
| bool | redirect (quint64 animationId, Direction direction, TerminationFlags terminationFlags=TerminateAtSource) |
| |
| bool | complete (quint64 animationId) |
| |
| bool | cancel (quint64 animationId) |
| |
| virtual void | genericAnimation (EffectWindow *w, WindowPaintData &data, float progress, uint meta) |
| |
| AniMap | state () const |
| |
| QString | pluginId |
| |
| bool | isActiveFullScreenEffect |
| |