Changeset View
Changeset View
Standalone View
Standalone View
scripting/scriptedeffect.h
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
---|---|---|---|---|---|
123 | bool registerTouchScreenCallback(int edge, QScriptValue callback); | 123 | bool registerTouchScreenCallback(int edge, QScriptValue callback); | ||
124 | bool unregisterTouchScreenCallback(int edge); | 124 | bool unregisterTouchScreenCallback(int edge); | ||
125 | 125 | | |||
126 | public Q_SLOTS: | 126 | public Q_SLOTS: | ||
127 | //curve should be of type QEasingCurve::type or ScriptedEffect::EasingCurve | 127 | //curve should be of type QEasingCurve::type or ScriptedEffect::EasingCurve | ||
128 | 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 fullScreen = false, bool keepAlive = true); | 128 | 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 fullScreen = false, bool keepAlive = true); | ||
129 | 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 fullScreen = false, bool keepAlive = true); | 129 | 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 fullScreen = false, bool keepAlive = true); | ||
130 | bool retarget(quint64 animationId, KWin::FPx2 newTarget, int newRemainingTime = -1); | 130 | bool retarget(quint64 animationId, KWin::FPx2 newTarget, int newRemainingTime = -1); | ||
131 | bool redirect(quint64 animationId, Direction direction, TerminationFlags terminationFlags = TerminateAtSource); | ||||
131 | bool cancel(quint64 animationId) { return AnimationEffect::cancel(animationId); } | 132 | bool cancel(quint64 animationId) { return AnimationEffect::cancel(animationId); } | ||
132 | virtual bool borderActivated(ElectricBorder border); | 133 | virtual bool borderActivated(ElectricBorder border); | ||
133 | 134 | | |||
134 | Q_SIGNALS: | 135 | Q_SIGNALS: | ||
135 | /** | 136 | /** | ||
136 | * Signal emitted whenever the effect's config changed. | 137 | * Signal emitted whenever the effect's config changed. | ||
137 | **/ | 138 | **/ | ||
138 | void configChanged(); | 139 | void configChanged(); | ||
Show All 27 Lines |