2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: private.h
|
2002-02-08 07:00:11 -05:00
|
|
|
// Purpose: Private declarations for X11 port
|
2002-02-05 11:34:33 -05:00
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRIVATE_H_
|
|
|
|
#define _WX_PRIVATE_H_
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
2002-02-10 11:42:42 -05:00
|
|
|
#include "wx/utils.h"
|
2002-02-08 12:44:23 -05:00
|
|
|
#include "X11/Xlib.h"
|
2002-02-11 07:04:35 -05:00
|
|
|
#include "X11/Xatom.h"
|
|
|
|
#include "X11/Xutil.h"
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2002-02-13 11:17:29 -05:00
|
|
|
// Include common declarations
|
|
|
|
#include "x11/privx.h"
|
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
class wxMouseEvent;
|
|
|
|
class wxKeyEvent;
|
2002-02-10 11:42:42 -05:00
|
|
|
class wxWindow;
|
2002-02-05 11:34:33 -05:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// we maintain a hash table which contains the mapping from Widget to wxWindow
|
|
|
|
// corresponding to the window for this widget
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2002-02-08 07:00:11 -05:00
|
|
|
extern void wxDeleteWindowFromTable(Window w);
|
|
|
|
extern wxWindow *wxGetWindowFromTable(Window w);
|
|
|
|
extern bool wxAddWindowToTable(Window w, wxWindow *win);
|
2002-02-05 11:34:33 -05:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2002-02-13 11:17:29 -05:00
|
|
|
// TranslateXXXEvent() functions - translate X event to wxWindow one
|
2002-02-05 11:34:33 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
2002-02-08 07:00:11 -05:00
|
|
|
extern bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Window window, XEvent *xevent);
|
|
|
|
extern bool wxTranslateKeyEvent(wxKeyEvent& wxevent, wxWindow *win, Window window, XEvent *xevent);
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2002-02-09 20:03:45 -05:00
|
|
|
extern Window wxGetWindowParent(Window window);
|
|
|
|
|
2002-02-11 06:06:50 -05:00
|
|
|
// Set the window manager decorations according to the
|
|
|
|
// given wxWindows style
|
|
|
|
bool wxSetWMDecorations(Window w, long style);
|
|
|
|
bool wxMWMIsRunning(Window w);
|
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
#endif
|
|
|
|
// _WX_PRIVATE_H_
|