]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/private.h
shows different SetCursor() calls
[wxWidgets.git] / include / wx / motif / private.h
CommitLineData
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
17class WXDLLEXPORT wxMouseEvent;
18class WXDLLEXPORT wxKeyEvent;
19
9b6dbb09
JS
20/* Put any private declarations here.
21 */
22
23extern void wxWidgetResizeProc(Widget w, XConfigureEvent *event, String args[], int *num_args);
24
25extern wxHashTable *wxWidgetHashTable;
26extern void wxDeleteWindowFromTable(Widget w);
27extern wxWindow *wxGetWindowFromTable(Widget w);
28extern bool wxAddWindowToTable(Widget w, wxWindow *win);
50414e24
JS
29extern char wxFindMnemonic(const char* s);
30extern char * wxFindAccelerator (char *s);
31extern XmString wxFindAcceleratorText (char *s);
32extern int wxCharCodeXToWX(KeySym keySym);
33extern KeySym wxCharCodeWXToX(int id);
02e8b2f9
JS
34bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Widget widget, XEvent *xevent);
35bool wxTranslateKeyEvent(wxKeyEvent& wxevent, wxWindow *win, Widget widget, XEvent *xevent);
dfc54541 36int wxGetBestMatchingPixel(Display *display, XColor *desiredColor, Colormap cmap);
a4294b78 37Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap );
0d57be45
JS
38extern XColor g_itemColors[];
39extern int wxComputeColours (Display *display, wxColour * back, wxColour * fore);
02e8b2f9 40
94b49b93
JS
41extern void wxDoChangeForegroundColour(WXWidget widget, wxColour& foregroundColour);
42extern void wxDoChangeBackgroundColour(WXWidget widget, wxColour& backgroundColour, bool changeArmColour = FALSE);
43
2e35f56f
JS
44// For repainting arbitrary windows
45void wxUniversalRepaintProc(Widget w, XtPointer WXUNUSED(c_data), XEvent *event, char *);
46
02e8b2f9
JS
47#define wxNO_COLORS 0x00
48#define wxBACK_COLORS 0x01
49#define wxFORE_COLORS 0x02
50
51extern XColor itemColors[5] ;
52
53#define wxBACK_INDEX 0
54#define wxFORE_INDEX 1
55#define wxSELE_INDEX 2
56#define wxTOPS_INDEX 3
57#define wxBOTS_INDEX 4
9b6dbb09
JS
58
59#endif
60 // _WX_PRIVATE_H_