1
#ifndef ANIMATION_EXTENSIONPLUGIN_H
2
#define ANIMATION_EXTENSIONPLUGIN_H
5
class ExtensionPluginInfo
8
ExtensionPluginInfo (const CompString &name,
11
CompOption::Vector *effectOptions,
12
unsigned int firstEffectOptionIndex);
15
unsigned int nEffects;
18
/// Plugin options to be used in "effect options" strings.
19
CompOption::Vector *effectOptions;
21
/// Index of first effect option.
22
unsigned int firstEffectOptionIndex;
24
// More general and/or non-window functions (including functions that access
25
// persistent animation data) to be overriden
27
/// To be run at the beginning of glPaintOutput.
28
virtual void prePaintOutput (CompOutput *output) {}
30
/// To be run at the beginning of preparePaint.
31
virtual void prePreparePaintGeneral () {}
33
/// To be run at the end of preparePaint.
34
virtual void postPreparePaintGeneral () {}
36
/// To be run when a CompWindowNotifyRestack is handled.
37
virtual void handleRestackNotify (AnimWindow *aw) {}
39
/// To be run at the beginning of initiateOpenAnim.
40
virtual void preInitiateOpenAnim (AnimWindow *aw) {}
42
/// To be run at the beginning of initiateCloseAnim.
43
virtual void preInitiateCloseAnim (AnimWindow *aw) {}
45
/// To be run at the beginning of initiateMinimizeAnim.
46
virtual void preInitiateMinimizeAnim (AnimWindow *aw) {}
48
/// To be run at the beginning of initiateUnminimizeAnim.
49
virtual void preInitiateUnminimizeAnim (AnimWindow *aw) {}
51
/// Initializes plugin's persistent animation data for a window (if any).
52
virtual void initPersistentData (AnimWindow *aw) {}
54
/// Destroys plugin's persistent animation data for a window (if any).
55
virtual void destroyPersistentData (AnimWindow *aw) {}
57
/// To be run at the end of updateEventEffects.
58
virtual void postUpdateEventEffects (AnimEvent e,
61
/// To be run after the startup countdown ends.
62
virtual void postStartupCountdown () {}
64
virtual bool paintShouldSkipWindow (CompWindow *w) { return false; }
66
virtual void cleanUpAnimation (bool closing,
69
virtual void processAllRestacks () {}