~neon/kde-workspace/master

« back to all changes in this revision

Viewing changes to kstyles/oxygen/oxygenshadowhelper.h

  • Committer: Hugo Pereira Da Costa
  • Date: 2013-10-24 09:41:45 UTC
  • Revision ID: git-v1:09e1a68b08a59ae2cdd967d5a1b771da3864f2e2
Port oxygen style from X11 to XCB
- use xcb to handle blur and opaque atom
- use xcb to handle shadow pixmaps
- use xcb for moveResize

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
#if HAVE_X11
37
37
#include <xcb/xcb.h>
38
 
#include <X11/Xdefs.h>
39
38
#endif
40
39
 
41
40
namespace Oxygen
110
109
        { return *_shadowCache; }
111
110
 
112
111
        // create pixmap handles from tileset
113
 
        const QVector<Qt::HANDLE>& createPixmapHandles( bool isDockWidget );
 
112
        const QVector<uint32_t>& createPixmapHandles( bool isDockWidget );
114
113
 
115
114
        // create pixmap handle from pixmap
116
 
        Qt::HANDLE createPixmap( const QPixmap& );
 
115
        uint32_t createPixmap( const QPixmap& );
117
116
 
118
117
        //! install shadow X11 property on given widget
119
118
        /*!
147
146
 
148
147
        //!@name pixmaps
149
148
        //@{
150
 
        QVector<Qt::HANDLE> _pixmaps;
151
 
        QVector<Qt::HANDLE> _dockPixmaps;
 
149
        QVector<uint32_t> _pixmaps;
 
150
        QVector<uint32_t> _dockPixmaps;
152
151
        //@}
153
152
 
154
153
        //! shadow size
155
154
        int _size;
156
155
 
157
156
        #if HAVE_X11
158
 
        
159
 
        //! xcb connection
160
 
        xcb_connection_t* _connection;
161
157
 
162
158
        //! graphical context
163
159
        xcb_gcontext_t _gc;
164
 
        
 
160
 
165
161
        //! shadow atom
166
 
        Atom _atom;
 
162
        xcb_atom_t _atom;
 
163
 
167
164
        #endif
168
165
 
169
166
    };