]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/private.h
7e055be69242aa675cc0b33ba04c7e440954b836
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Private declarations
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRIVATE_H_
13 #define _WX_PRIVATE_H_
17 class WXDLLEXPORT wxMouseEvent
;
18 class WXDLLEXPORT wxKeyEvent
;
20 /* Put any private declarations here.
23 extern void wxWidgetResizeProc(Widget w
, XConfigureEvent
*event
, String args
[], int *num_args
);
25 extern wxHashTable
*wxWidgetHashTable
;
26 extern void wxDeleteWindowFromTable(Widget w
);
27 extern wxWindow
*wxGetWindowFromTable(Widget w
);
28 extern bool wxAddWindowToTable(Widget w
, wxWindow
*win
);
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
);
34 bool wxTranslateMouseEvent(wxMouseEvent
& wxevent
, wxWindow
*win
, Widget widget
, XEvent
*xevent
);
35 bool wxTranslateKeyEvent(wxKeyEvent
& wxevent
, wxWindow
*win
, Widget widget
, XEvent
*xevent
);
36 int wxGetBestMatchingPixel(Display
*display
, XColor
*desiredColor
, Colormap cmap
);
38 #define wxNO_COLORS 0x00
39 #define wxBACK_COLORS 0x01
40 #define wxFORE_COLORS 0x02
42 extern XColor itemColors
[5] ;
44 #define wxBACK_INDEX 0
45 #define wxFORE_INDEX 1
46 #define wxSELE_INDEX 2
47 #define wxTOPS_INDEX 3
48 #define wxBOTS_INDEX 4