~unity-team/compiz/plugins-main-trunk.fix_wrong_window_move_expo

« back to all changes in this revision

Viewing changes to animation/include/animation/animation.h

  • Committer: David Barth
  • Date: 2011-03-29 16:36:40 UTC
  • Revision ID: david.barth@canonical.com-20110329163640-fpen5qsoo0lbjode
initial import from compiz-plugins-main_0.9.4git20110322.orig.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _ANIMATION_H
 
2
#define _ANIMATION_H
 
3
 
 
4
#define ANIMATION_ABI 20091205
 
5
 
 
6
#include <core/pluginclasshandler.h>
 
7
#include <opengl/fragment.h>
 
8
 
 
9
typedef enum
 
10
{
 
11
    WindowEventOpen = 0,
 
12
    WindowEventClose,
 
13
    WindowEventMinimize,
 
14
    WindowEventUnminimize,
 
15
    WindowEventShade,
 
16
    WindowEventUnshade,
 
17
    WindowEventFocus,
 
18
    WindowEventNum,
 
19
    WindowEventNone
 
20
} WindowEvent;
 
21
 
 
22
typedef enum
 
23
{
 
24
    AnimEventOpen = 0,
 
25
    AnimEventClose,
 
26
    AnimEventMinimize,
 
27
    AnimEventShade,
 
28
    AnimEventFocus,
 
29
    AnimEventNum
 
30
} AnimEvent;
 
31
 
 
32
typedef enum
 
33
{
 
34
    AnimDirectionDown = 0,
 
35
    AnimDirectionUp,
 
36
    AnimDirectionLeft,
 
37
    AnimDirectionRight,
 
38
    AnimDirectionRandom,
 
39
    AnimDirectionAuto
 
40
} AnimDirection;
 
41
#define LAST_ANIM_DIRECTION 5
 
42
 
 
43
class PrivateAnimScreen;
 
44
class PrivateAnimWindow;
 
45
class Animation;
 
46
class AnimWindow;
 
47
class AnimEffectInfo;
 
48
 
 
49
typedef AnimEffectInfo * AnimEffect;
 
50
 
 
51
#define RAND_FLOAT() ((float)rand() / RAND_MAX)
 
52
 
 
53
#define sigmoid(fx) (1.0f/(1.0f+exp(-5.0f*2*((fx)-0.5))))
 
54
#define sigmoid2(fx, s) (1.0f/(1.0f+exp(-(s)*2*((fx)-0.5))))
 
55
 
 
56
#define NUM_OPTIONS(s) (sizeof ((s)->opt) / sizeof (CompOption))
 
57
 
 
58
#include "extensionplugin.h"
 
59
#include "animeffect.h"
 
60
#include "point3d.h"
 
61
#include "persistent.h"
 
62
#include "grid.h"
 
63
#include "screen.h"
 
64
#include "window.h"
 
65
#include "transform.h"
 
66
#include "fade.h"
 
67
#include "partialwindow.h"
 
68
#include "gridtransform.h"
 
69
#include "zoom.h"
 
70
#include "multi.h"
 
71
 
 
72
 
 
73
// ratio of perceived length of animation compared to real duration
 
74
// to make it appear to have the same speed with other animation effects
 
75
 
 
76
#endif
 
77