]>
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"
25 #include "pango/pango.h"
32 // ----------------------------------------------------------------------------
33 // Some Unicode <-> UTF8 macros stolen from GTK
34 // ----------------------------------------------------------------------------
37 #define wxGTK_CONV(s) wxConvUTF8.cWX2MB(s)
38 #define wxGTK_CONV_BACK(s) wxConvUTF8.cMB2WX(s)
40 #define wxGTK_CONV(s) s.c_str()
41 #define wxGTK_CONV_BACK(s) s
44 // ----------------------------------------------------------------------------
45 // we maintain a hash table which contains the mapping from Widget to wxWindow
46 // corresponding to the window for this widget
47 // ----------------------------------------------------------------------------
49 extern void wxDeleteWindowFromTable(Window w
);
50 extern wxWindow
*wxGetWindowFromTable(Window w
);
51 extern bool wxAddWindowToTable(Window w
, wxWindow
*win
);
53 extern void wxDeleteClientWindowFromTable(Window w
);
54 extern wxWindow
*wxGetClientWindowFromTable(Window w
);
55 extern bool wxAddClientWindowToTable(Window w
, wxWindow
*win
);
57 // ----------------------------------------------------------------------------
58 // TranslateXXXEvent() functions - translate X event to wxWindow one
59 // ----------------------------------------------------------------------------
60 extern bool wxTranslateMouseEvent(wxMouseEvent
& wxevent
, wxWindow
*win
, Window window
, XEvent
*xevent
);
61 extern bool wxTranslateKeyEvent(wxKeyEvent
& wxevent
, wxWindow
*win
, Window window
, XEvent
*xevent
, bool isAscii
= FALSE
);
63 extern Window
wxGetWindowParent(Window window
);
65 // Set the window manager decorations according to the
66 // given wxWindows style
67 bool wxSetWMDecorations(Window w
, long style
);
68 bool wxMWMIsRunning(Window w
);