]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/private.h
1. minor fixes in wxDynLib
[wxWidgets.git] / include / wx / motif / private.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: private.h
34636400 3// Purpose: Private declarations for wxMotif port
9b6dbb09
JS
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
34636400 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRIVATE_H_
13#define _WX_PRIVATE_H_
14
15#include "wx/defs.h"
16
34636400
VZ
17class wxMouseEvent;
18class wxKeyEvent;
dfc54541 19
34636400
VZ
20// Put any private declarations here: native Motif types may be used because
21// this header is included after Xm/Xm.h
9b6dbb09 22
34636400
VZ
23// ----------------------------------------------------------------------------
24// common callbacks
25// ----------------------------------------------------------------------------
26
27// All widgets should have this as their resize proc.
9b6dbb09
JS
28extern void wxWidgetResizeProc(Widget w, XConfigureEvent *event, String args[], int *num_args);
29
34636400
VZ
30// For repainting arbitrary windows
31void wxUniversalRepaintProc(Widget w, XtPointer WXUNUSED(c_data), XEvent *event, char *);
32
33// ----------------------------------------------------------------------------
34// we maintain a hash table which contains the mapping from Widget to wxWindow
35// corresponding to the window for this widget
36// ----------------------------------------------------------------------------
37
9b6dbb09
JS
38extern void wxDeleteWindowFromTable(Widget w);
39extern wxWindow *wxGetWindowFromTable(Widget w);
40extern bool wxAddWindowToTable(Widget w, wxWindow *win);
34636400 41
50414e24
JS
42extern char wxFindMnemonic(const char* s);
43extern char * wxFindAccelerator (char *s);
44extern XmString wxFindAcceleratorText (char *s);
45extern int wxCharCodeXToWX(KeySym keySym);
46extern KeySym wxCharCodeWXToX(int id);
34636400
VZ
47
48// ----------------------------------------------------------------------------
49// TranslateXXXEvent() functions - translate Motif event to wxWindow one
50// ----------------------------------------------------------------------------
51extern bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Widget widget, XEvent *xevent);
52extern bool wxTranslateKeyEvent(wxKeyEvent& wxevent, wxWindow *win, Widget widget, XEvent *xevent);
53
dfc54541 54int wxGetBestMatchingPixel(Display *display, XColor *desiredColor, Colormap cmap);
a4294b78 55Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap );
34636400 56
0d57be45
JS
57extern XColor g_itemColors[];
58extern int wxComputeColours (Display *display, wxColour * back, wxColour * fore);
02e8b2f9 59
94b49b93
JS
60extern void wxDoChangeForegroundColour(WXWidget widget, wxColour& foregroundColour);
61extern void wxDoChangeBackgroundColour(WXWidget widget, wxColour& backgroundColour, bool changeArmColour = FALSE);
62
34636400 63#define wxNO_COLORS 0x00
02e8b2f9
JS
64#define wxBACK_COLORS 0x01
65#define wxFORE_COLORS 0x02
66
67extern XColor itemColors[5] ;
68
69#define wxBACK_INDEX 0
70#define wxFORE_INDEX 1
71#define wxSELE_INDEX 2
72#define wxTOPS_INDEX 3
73#define wxBOTS_INDEX 4
9b6dbb09
JS
74
75#endif
76 // _WX_PRIVATE_H_