~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

Viewing changes to plugins/rotate/src/rotate.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    public RotateOptions
49
49
{
50
50
    public:
 
51
 
51
52
        RotateScreen (CompScreen *s);
52
53
        ~RotateScreen () {};
53
54
        
54
 
        bool setOption (const CompString &name, CompOption::Value &value);
 
55
        bool setOption (const CompString  &name,
 
56
                        CompOption::Value &value);
55
57
 
56
58
        void handleEvent (XEvent *event);
57
59
        
59
61
        void donePaint ();
60
62
 
61
63
        bool glPaintOutput (const GLScreenPaintAttrib &,
62
 
                            const GLMatrix &, const CompRegion &, CompOutput *,
63
 
                            unsigned int);
 
64
                            const GLMatrix            &,
 
65
                            const CompRegion          &,
 
66
                            CompOutput                *,
 
67
                            unsigned int                );
64
68
 
65
 
        void cubeGetRotation (float &x, float &v, float &progress);
 
69
        void cubeGetRotation (float &x,
 
70
                              float &v,
 
71
                              float &progress);
66
72
        
67
 
        bool adjustVelocity (int size, int invert);
 
73
        bool adjustVelocity (int size,
 
74
                             int invert);
 
75
 
68
76
        void releaseMoveWindow ();
69
77
        
70
78
        bool initiate (CompAction         *action,
104
112
                       int                face,
105
113
                       bool               withWindow);
106
114
 
107
 
 
108
115
    public:
109
116
        
110
 
        GLScreen        *gScreen;
111
 
        CompositeScreen *cScreen;
112
 
        CubeScreen      *cubeScreen;
 
117
        GLScreen               *gScreen;
 
118
        CompositeScreen        *cScreen;
 
119
        CubeScreen             *cubeScreen;
113
120
 
114
121
        float                  mPointerSensitivity;
115
122
        
143
150
        GLfloat                mZoomTranslate;
144
151
};
145
152
 
146
 
 
147
153
class RotateWindow :
148
154
    public PluginClassHandler<RotateWindow,CompWindow>,
149
155
    public WindowInterface
150
156
{
151
157
    public:
 
158
 
152
159
        RotateWindow (CompWindow *w);
153
160
        ~RotateWindow () {};
154
161
        
155
 
        void grabNotify (int x, int y, unsigned int state, unsigned int mask);
 
162
        void grabNotify (int          x,
 
163
                         int          y,
 
164
                         unsigned int state,
 
165
                         unsigned int mask);
156
166
        void ungrabNotify ();
157
167
        
158
168
        void activate ();
159
169
        
160
170
    public:
161
 
        CompWindow *window;
 
171
 
 
172
        CompWindow   *window;
162
173
        RotateScreen *rScreen;
163
174
};
164
175
 
166
177
    public CompPlugin::VTableForScreenAndWindow<RotateScreen, RotateWindow>
167
178
{
168
179
    public:
 
180
 
169
181
        bool init ();
170
182
};
171
183
 
172
 
 
173
184
#endif