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

« back to all changes in this revision

Viewing changes to plugins/thumbnail/src/thumbnail.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:
53
53
#define THUMB_WINDOW(w)                                               \
54
54
    ThumbWindow *tw = ThumbWindow::get (w)
55
55
 
56
 
#define WIN_X(w) ((w)->x () - (w)->border ().left)
57
 
#define WIN_Y(w) ((w)->y () - (w)->border ().top)
58
 
#define WIN_W(w) ((w)->width () + (w)->border ().left + (w)->border ().right)
59
 
#define WIN_H(w) ((w)->height () + (w)->border ().top + (w)->border ().bottom)
60
 
 
61
 
extern const unsigned short TEXT_DISTANCE;
62
 
 
63
56
bool textPluginLoaded;
64
57
 
65
58
typedef struct _Thumbnail
66
59
{
67
 
    int   x;
68
 
    int   y;
69
 
    int   width;
70
 
    int   height;
71
 
    float scale;
72
 
    float opacity;
73
 
    int   offset;
 
60
    int        x;
 
61
    int        y;
 
62
    int        width;
 
63
    int        height;
 
64
    float      scale;
 
65
    float      opacity;
 
66
    int        offset;
74
67
 
75
68
    CompWindow *win;
76
69
    CompWindow *dock;
97
90
 
98
91
        bool
99
92
        glPaintOutput (const GLScreenPaintAttrib &,
100
 
                       const GLMatrix &,
101
 
                       const CompRegion &,
102
 
                       CompOutput *,
103
 
                       unsigned int);
 
93
                       const GLMatrix            &,
 
94
                       const CompRegion          &,
 
95
                       CompOutput                *,
 
96
                       unsigned int                );
104
97
 
105
98
        void
106
99
        donePaint ();
107
100
 
108
101
        void
109
102
        glPaintTransformedOutput (const GLScreenPaintAttrib &,
110
 
                                  const GLMatrix &,
111
 
                                  const CompRegion &,
112
 
                                  CompOutput *,
113
 
                                  unsigned int);
114
 
 
115
 
        void
116
 
        freeThumbText (Thumbnail  *t);
117
 
 
118
 
        void
119
 
        renderThumbText (Thumbnail  *t,
120
 
                         bool       freeThumb);
121
 
 
122
 
        void
123
 
        damageThumbRegion (Thumbnail  *t);
 
103
                                  const GLMatrix            &,
 
104
                                  const CompRegion          &,
 
105
                                  CompOutput                *,
 
106
                                  unsigned int                );
 
107
 
 
108
        void
 
109
        freeThumbText (Thumbnail *t);
 
110
 
 
111
        void
 
112
        renderThumbText (Thumbnail *t,
 
113
                         bool      freeThumb);
 
114
 
 
115
        void
 
116
        damageThumbRegion (Thumbnail *t);
124
117
 
125
118
        void
126
119
        thumbUpdateThumbnail ();
136
129
 
137
130
        void
138
131
        paintTexture (const GLMatrix &transform,
139
 
                      GLushort       *color,
140
 
                      int             wx,
141
 
                      int wy,
142
 
                      int width,
143
 
                      int height,
144
 
                      int off);
 
132
                      GLushort       *color,
 
133
                      int            wx,
 
134
                      int            wy,
 
135
                      int            width,
 
136
                      int            height,
 
137
                      int            off);
145
138
 
146
139
        void
147
 
        thumbPaintThumb (Thumbnail           *t,
 
140
        thumbPaintThumb (Thumbnail      *t,
148
141
                         const GLMatrix *transform);
149
142
 
150
 
 
151
 
        GLScreen   *gScreen;
 
143
        GLScreen        *gScreen;
152
144
        CompositeScreen *cScreen;
153
145
 
154
146
        CompWindow *dock;
181
173
        ThumbWindow (CompWindow *window);
182
174
        ~ThumbWindow ();
183
175
 
184
 
        CompWindow *window;
 
176
        CompWindow      *window;
185
177
        CompositeWindow *cWindow;
186
 
        GLWindow *gWindow;
 
178
        GLWindow        *gWindow;
187
179
 
188
180
        bool
189
181
        glPaint (const GLWindowPaintAttrib &attrib,
190
 
                const GLMatrix          &transform,
191
 
                const CompRegion                &region,
192
 
                unsigned int            mask);
 
182
                 const GLMatrix            &transform,
 
183
                 const CompRegion          &region,
 
184
                 unsigned int              mask);
193
185
 
194
186
        void
195
187
        resizeNotify (int dx,
198
190
                      int dheight);
199
191
 
200
192
        bool
201
 
        damageRect (bool initial,
 
193
        damageRect (bool           initial,
202
194
                    const CompRect &rect);
203
195
};
204
196