]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/private.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Private declarations for X11 port
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRIVATE_H_
13 #define _WX_PRIVATE_H_
18 #include "X11/Xatom.h"
19 #include "X11/Xutil.h"
21 // Include common declarations
22 #include "wx/x11/privx.h"
28 // ----------------------------------------------------------------------------
29 // we maintain a hash table which contains the mapping from Widget to wxWindow
30 // corresponding to the window for this widget
31 // ----------------------------------------------------------------------------
33 extern void wxDeleteWindowFromTable(Window w
);
34 extern wxWindow
*wxGetWindowFromTable(Window w
);
35 extern bool wxAddWindowToTable(Window w
, wxWindow
*win
);
37 extern void wxDeleteClientWindowFromTable(Window w
);
38 extern wxWindow
*wxGetClientWindowFromTable(Window w
);
39 extern bool wxAddClientWindowToTable(Window w
, wxWindow
*win
);
41 // ----------------------------------------------------------------------------
42 // TranslateXXXEvent() functions - translate X event to wxWindow one
43 // ----------------------------------------------------------------------------
44 extern bool wxTranslateMouseEvent(wxMouseEvent
& wxevent
, wxWindow
*win
, Window window
, XEvent
*xevent
);
45 extern bool wxTranslateKeyEvent(wxKeyEvent
& wxevent
, wxWindow
*win
, Window window
, XEvent
*xevent
);
47 extern Window
wxGetWindowParent(Window window
);
49 // Set the window manager decorations according to the
50 // given wxWindows style
51 bool wxSetWMDecorations(Window w
, long style
);
52 bool wxMWMIsRunning(Window w
);