]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/private.h
6d5ef73e915037892970e9e168075b8d875112db
[wxWidgets.git] / include / wx / motif / private.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: private.h
3 // Purpose: Private declarations
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"
16
17 /* Put any private declarations here.
18 */
19
20 extern void wxWidgetResizeProc(Widget w, XConfigureEvent *event, String args[], int *num_args);
21
22 extern wxHashTable *wxWidgetHashTable;
23 extern void wxDeleteWindowFromTable(Widget w);
24 extern wxWindow *wxGetWindowFromTable(Widget w);
25 extern bool wxAddWindowToTable(Widget w, wxWindow *win);
26 extern char wxFindMnemonic(const char* s);
27 extern char * wxFindAccelerator (char *s);
28 extern XmString wxFindAcceleratorText (char *s);
29 extern int wxCharCodeXToWX(KeySym keySym);
30 extern KeySym wxCharCodeWXToX(int id);
31 bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Widget widget, XEvent *xevent);
32 bool wxTranslateKeyEvent(wxKeyEvent& wxevent, wxWindow *win, Widget widget, XEvent *xevent);
33
34 #define wxNO_COLORS 0x00
35 #define wxBACK_COLORS 0x01
36 #define wxFORE_COLORS 0x02
37
38 extern XColor itemColors[5] ;
39
40 #define wxBACK_INDEX 0
41 #define wxFORE_INDEX 1
42 #define wxSELE_INDEX 2
43 #define wxTOPS_INDEX 3
44 #define wxBOTS_INDEX 4
45
46 #endif
47 // _WX_PRIVATE_H_