Changeset View
Changeset View
Standalone View
Standalone View
scripting/scriptedeffect.h
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 90 | QHash<int, QList<QScriptValue > > &screenEdgeCallbacks() { | |||
---|---|---|---|---|---|
91 | return m_screenEdgeCallbacks; | 91 | return m_screenEdgeCallbacks; | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | bool registerTouchScreenCallback(int edge, QScriptValue callback); | 94 | bool registerTouchScreenCallback(int edge, QScriptValue callback); | ||
95 | bool unregisterTouchScreenCallback(int edge); | 95 | bool unregisterTouchScreenCallback(int edge); | ||
96 | 96 | | |||
97 | public Q_SLOTS: | 97 | public Q_SLOTS: | ||
98 | //curve should be of type QEasingCurve::type or ScriptedEffect::EasingCurve | 98 | //curve should be of type QEasingCurve::type or ScriptedEffect::EasingCurve | ||
99 | quint64 animate(KWin::EffectWindow *w, Attribute a, int ms, KWin::FPx2 to, KWin::FPx2 from = KWin::FPx2(), uint metaData = 0, int curve = QEasingCurve::Linear, int delay = 0); | 99 | quint64 animate(KWin::EffectWindow *w, Attribute a, int ms, KWin::FPx2 to, KWin::FPx2 from = KWin::FPx2(), uint metaData = 0, int curve = QEasingCurve::Linear, int delay = 0, bool keepAlive = true); | ||
100 | quint64 set(KWin::EffectWindow *w, Attribute a, int ms, KWin::FPx2 to, KWin::FPx2 from = KWin::FPx2(), uint metaData = 0, int curve = QEasingCurve::Linear, int delay = 0); | 100 | quint64 set(KWin::EffectWindow *w, Attribute a, int ms, KWin::FPx2 to, KWin::FPx2 from = KWin::FPx2(), uint metaData = 0, int curve = QEasingCurve::Linear, int delay = 0, bool keepAlive = true); | ||
101 | bool retarget(quint64 animationId, KWin::FPx2 newTarget, int newRemainingTime = -1); | 101 | bool retarget(quint64 animationId, KWin::FPx2 newTarget, int newRemainingTime = -1); | ||
102 | bool cancel(quint64 animationId) { return AnimationEffect::cancel(animationId); } | 102 | bool cancel(quint64 animationId) { return AnimationEffect::cancel(animationId); } | ||
103 | virtual bool borderActivated(ElectricBorder border); | 103 | virtual bool borderActivated(ElectricBorder border); | ||
104 | 104 | | |||
105 | Q_SIGNALS: | 105 | Q_SIGNALS: | ||
106 | /** | 106 | /** | ||
107 | * Signal emitted whenever the effect's config changed. | 107 | * Signal emitted whenever the effect's config changed. | ||
108 | **/ | 108 | **/ | ||
Show All 26 Lines |