]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/private.h
fixes to the new pointer array implementation
[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
83df96d6
JS
24class wxMouseEvent;
25class wxKeyEvent;
1934d291 26class wxWindow;
83df96d6 27
83df96d6
JS
28// ----------------------------------------------------------------------------
29// we maintain a hash table which contains the mapping from Widget to wxWindow
30// corresponding to the window for this widget
31// ----------------------------------------------------------------------------
32
1b0fb34b
JS
33extern void wxDeleteWindowFromTable(Window w);
34extern wxWindow *wxGetWindowFromTable(Window w);
35extern bool wxAddWindowToTable(Window w, wxWindow *win);
83df96d6
JS
36
37// ----------------------------------------------------------------------------
5e29f97a 38// TranslateXXXEvent() functions - translate X event to wxWindow one
83df96d6 39// ----------------------------------------------------------------------------
1b0fb34b
JS
40extern bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Window window, XEvent *xevent);
41extern bool wxTranslateKeyEvent(wxKeyEvent& wxevent, wxWindow *win, Window window, XEvent *xevent);
83df96d6 42
b513212d
JS
43extern Window wxGetWindowParent(Window window);
44
b28d3abf
JS
45// Set the window manager decorations according to the
46// given wxWindows style
47bool wxSetWMDecorations(Window w, long style);
48bool wxMWMIsRunning(Window w);
49
83df96d6
JS
50#endif
51// _WX_PRIVATE_H_