1 /*****************************************************************************
2 * x11_theme.h: X11 implementation of the Theme class
3 *****************************************************************************
4 * Copyright (C) 2003 VideoLAN
5 * $Id: x11_theme.h,v 1.4 2003/10/22 19:12:56 ipkiss 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_THEME
27 #define VLC_SKIN_X11_THEME
29 //--- GENERAL ---------------------------------------------------------------
33 //--- X11 -------------------------------------------------------------------
36 // macros to make X calls thread safe
37 extern intf_thread_t *g_pIntf;
38 #define XLOCK vlc_mutex_lock( &g_pIntf->p_sys->xlock )
39 #define XUNLOCK vlc_mutex_unlock( &g_pIntf->p_sys->xlock )
42 //---------------------------------------------------------------------------
50 //---------------------------------------------------------------------------
51 class X11Theme : public Theme
54 intf_thread_t *p_intf;
59 NOTIFYICONDATA TrayIcon;
64 X11Theme( intf_thread_t *_p_intf );
65 virtual void OnLoadTheme();
71 Display * GetDisplay() { return display; }
74 virtual void AddWindow( string name, int x, int y, bool visible,
75 int fadetime, int alpha, int movealpha, bool dragdrop,
77 virtual void ChangeClientWindowName( string name );
79 // Taskbar && system tray
80 virtual void AddSystemMenu( string name, Event *event );
81 virtual void ChangeTray();
82 virtual void ChangeTaskbar();
83 // HMENU GetSysMenu() { return SysMenu; }
85 //---------------------------------------------------------------------------