]>
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_
17 #if defined( __cplusplus ) && defined( __VMS )
18 #pragma message disable nosimpint
21 #include "X11/Xatom.h"
22 #include "X11/Xutil.h"
23 #if defined( __cplusplus ) && defined( __VMS )
24 #pragma message enable nosimpint
27 // Include common declarations
28 #include "wx/x11/privx.h"
31 #include "pango/pango.h"
38 // ----------------------------------------------------------------------------
39 // Some Unicode <-> UTF8 macros stolen from GTK
40 // ----------------------------------------------------------------------------
43 #define wxGTK_CONV(s) wxConvUTF8.cWX2MB(s)
44 #define wxGTK_CONV_BACK(s) wxConvUTF8.cMB2WX(s)
46 #define wxGTK_CONV(s) s.c_str()
47 #define wxGTK_CONV_BACK(s) s
50 // ----------------------------------------------------------------------------
51 // we maintain a hash table which contains the mapping from Widget to wxWindow
52 // corresponding to the window for this widget
53 // ----------------------------------------------------------------------------
55 extern void wxDeleteWindowFromTable(Window w
);
56 extern wxWindow
*wxGetWindowFromTable(Window w
);
57 extern bool wxAddWindowToTable(Window w
, wxWindow
*win
);
59 extern void wxDeleteClientWindowFromTable(Window w
);
60 extern wxWindow
*wxGetClientWindowFromTable(Window w
);
61 extern bool wxAddClientWindowToTable(Window w
, wxWindow
*win
);
63 // ----------------------------------------------------------------------------
64 // TranslateXXXEvent() functions - translate X event to wxWindow one
65 // ----------------------------------------------------------------------------
66 extern bool wxTranslateMouseEvent(wxMouseEvent
& wxevent
, wxWindow
*win
, Window window
, XEvent
*xevent
);
67 extern bool wxTranslateKeyEvent(wxKeyEvent
& wxevent
, wxWindow
*win
, Window window
, XEvent
*xevent
, bool isAscii
= FALSE
);
69 extern Window
wxGetWindowParent(Window window
);
71 // Set the window manager decorations according to the
72 // given wxWidgets style
73 bool wxSetWMDecorations(Window w
, long style
);
74 bool wxMWMIsRunning(Window w
);