]>
Commit | Line | Data |
---|---|---|
9b6dbb09 JS |
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 | ||
dfc54541 JS |
17 | class WXDLLEXPORT wxMouseEvent; |
18 | class WXDLLEXPORT wxKeyEvent; | |
19 | ||
9b6dbb09 JS |
20 | /* Put any private declarations here. |
21 | */ | |
22 | ||
23 | extern void wxWidgetResizeProc(Widget w, XConfigureEvent *event, String args[], int *num_args); | |
24 | ||
25 | extern wxHashTable *wxWidgetHashTable; | |
26 | extern void wxDeleteWindowFromTable(Widget w); | |
27 | extern wxWindow *wxGetWindowFromTable(Widget w); | |
28 | extern bool wxAddWindowToTable(Widget w, wxWindow *win); | |
50414e24 JS |
29 | extern char wxFindMnemonic(const char* s); |
30 | extern char * wxFindAccelerator (char *s); | |
31 | extern XmString wxFindAcceleratorText (char *s); | |
32 | extern int wxCharCodeXToWX(KeySym keySym); | |
33 | extern KeySym wxCharCodeWXToX(int id); | |
02e8b2f9 JS |
34 | bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Widget widget, XEvent *xevent); |
35 | bool wxTranslateKeyEvent(wxKeyEvent& wxevent, wxWindow *win, Widget widget, XEvent *xevent); | |
dfc54541 | 36 | int wxGetBestMatchingPixel(Display *display, XColor *desiredColor, Colormap cmap); |
a4294b78 | 37 | Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap ); |
02e8b2f9 JS |
38 | |
39 | #define wxNO_COLORS 0x00 | |
40 | #define wxBACK_COLORS 0x01 | |
41 | #define wxFORE_COLORS 0x02 | |
42 | ||
43 | extern XColor itemColors[5] ; | |
44 | ||
45 | #define wxBACK_INDEX 0 | |
46 | #define wxFORE_INDEX 1 | |
47 | #define wxSELE_INDEX 2 | |
48 | #define wxTOPS_INDEX 3 | |
49 | #define wxBOTS_INDEX 4 | |
9b6dbb09 JS |
50 | |
51 | #endif | |
52 | // _WX_PRIVATE_H_ |