]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/private.h
mark wxImage's wxBitmap functions as deprecated
[wxWidgets.git] / include / wx / x11 / private.h
CommitLineData
83df96d6
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: private.h
1b0fb34b 3// Purpose: Private declarations for X11 port
83df96d6
JS
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRIVATE_H_
13#define _WX_PRIVATE_H_
14
15#include "wx/defs.h"
1934d291 16#include "wx/utils.h"
7266b672 17#include "X11/Xlib.h"
1b0b798d
RR
18#include "X11/Xatom.h"
19#include "X11/Xutil.h"
83df96d6 20
5e29f97a 21// Include common declarations
61aa560b 22#include "wx/x11/privx.h"
5e29f97a 23
2b5f62a0
VZ
24#if wxUSE_UNICODE
25#include "pango/pango.h"
26#endif
27
83df96d6
JS
28class wxMouseEvent;
29class wxKeyEvent;
1934d291 30class wxWindow;
83df96d6 31
2b5f62a0
VZ
32// ----------------------------------------------------------------------------
33// Some Unicode <-> UTF8 macros stolen from GTK
34// ----------------------------------------------------------------------------
35
36#if wxUSE_UNICODE
37 #define wxGTK_CONV(s) wxConvUTF8.cWX2MB(s)
38 #define wxGTK_CONV_BACK(s) wxConvUTF8.cMB2WX(s)
39#else
40 #define wxGTK_CONV(s) s.c_str()
41 #define wxGTK_CONV_BACK(s) s
42#endif
43
83df96d6
JS
44// ----------------------------------------------------------------------------
45// we maintain a hash table which contains the mapping from Widget to wxWindow
46// corresponding to the window for this widget
47// ----------------------------------------------------------------------------
48
1b0fb34b
JS
49extern void wxDeleteWindowFromTable(Window w);
50extern wxWindow *wxGetWindowFromTable(Window w);
51extern bool wxAddWindowToTable(Window w, wxWindow *win);
83df96d6 52
ab6b6b15
RR
53extern void wxDeleteClientWindowFromTable(Window w);
54extern wxWindow *wxGetClientWindowFromTable(Window w);
55extern bool wxAddClientWindowToTable(Window w, wxWindow *win);
56
83df96d6 57// ----------------------------------------------------------------------------
5e29f97a 58// TranslateXXXEvent() functions - translate X event to wxWindow one
83df96d6 59// ----------------------------------------------------------------------------
1b0fb34b 60extern bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Window window, XEvent *xevent);
2b5f62a0 61extern bool wxTranslateKeyEvent(wxKeyEvent& wxevent, wxWindow *win, Window window, XEvent *xevent, bool isAscii = FALSE);
83df96d6 62
b513212d
JS
63extern Window wxGetWindowParent(Window window);
64
b28d3abf
JS
65// Set the window manager decorations according to the
66// given wxWindows style
67bool wxSetWMDecorations(Window w, long style);
68bool wxMWMIsRunning(Window w);
69
83df96d6
JS
70#endif
71// _WX_PRIVATE_H_