1 /*****************************************************************************
2 * x11_window.h: X11 implementation of the Window class
3 *****************************************************************************
4 * Copyright (C) 2003 VideoLAN
5 * $Id: x11_window.h,v 1.7 2003/10/19 20:32:21 asmax Exp $
7 * Authors: Cyril Deguet <asmax@videolan.org>
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.
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.
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,
23 *****************************************************************************/
26 #ifndef VLC_SKIN_X11_WIN
27 #define VLC_SKIN_X11_WIN
29 //--- X11 -------------------------------------------------------------------
32 #include "x11_timer.h"
34 //---------------------------------------------------------------------------
41 intf_thread_t *p_intf;
54 //---------------------------------------------------------------------------
55 class X11Window : public SkinWindow
69 X11DropObject *DropObject;
74 // Double-click handling
87 X11Window( intf_thread_t *_p_intf, Window wnd, int x, int y,
88 bool visible, int transition, int normalalpha, int movealpha,
89 bool dragdrop, string name );
95 virtual bool ProcessOSEvent( Event *evt );
97 // Window graphic aspect
98 virtual void ToggleOnTop();
99 virtual void OSShow( bool show );
100 virtual void RefreshFromImage( int x, int y, int w, int h );
101 virtual void SetTransparency( int Value = -1 );
102 virtual void WindowManualMove();
103 virtual void WindowManualMoveInit();
106 virtual void Move( int left, int top );
107 virtual void Size( int width, int height );
109 // Specific X11 methods
110 Window GetHandle() { return Wnd; };
113 virtual void ChangeToolTipText( string text );
116 string GetName() { return Name; }
118 //---------------------------------------------------------------------------