]> git.sesse.net Git - vlc/blob - modules/gui/skins/x11/x11_dragdrop.h
* modules/gui/skins/*: Added a "playondrop" attribute to the "Window"
[vlc] / modules / gui / skins / x11 / x11_dragdrop.h
1 /*****************************************************************************
2  * x11_dragdrop.h: X11 implementation of the drag & drop
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id: x11_dragdrop.h,v 1.5 2003/10/22 19:12:56 ipkiss Exp $
6  *
7  * Authors: Cyril Deguet     <asmax@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111,
22  * USA.
23  *****************************************************************************/
24
25
26 #ifndef VLC_SKIN_X11_DRAGDROP
27 #define VLC_SKIN_X11_DRAGDROP
28
29 //--- X11 -----------------------------------------------------------------
30 #include <X11/Xlib.h>
31
32 #include "../src/skin_common.h"
33
34 //---------------------------------------------------------------------------
35
36 typedef long ldata_t[5];
37
38 class X11DropObject
39 {
40     private:
41         intf_thread_t *p_intf;
42         Window Win;
43         bool PlayOnDrop;
44         Display *display;
45         Atom target;
46
47     public:
48        X11DropObject( intf_thread_t *_p_intf, Window win, bool playondrop );
49        virtual ~X11DropObject();
50
51        void DndEnter( ldata_t data );
52        void DndPosition( ldata_t data );
53        void DndLeave( ldata_t data );
54        void DndDrop( ldata_t data );
55 };
56 //---------------------------------------------------------------------------
57 #endif