summaryrefslogtreecommitdiff
path: root/libXg/Gwin.h
blob: 416d86848f8671bdd1d0bc7d63ce0dcd68004276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Copyright (c) 1992 AT&T - All rights reserved. */
#ifndef GWIN_H
#define GWIN_H

/* New resource names */

#define XtNscrollForwardR "scrollForwardR"
#define XtCScrollForwardR "ScrollForwardR"
#define XtNreshaped "reshaped"
#define XtCReshaped "Reshaped"
#define XtNgotchar "gotchar"
#define XtCGotchar "Gotchar"
#define XtNgotmouse "gotmouse"
#define XtCGotmouse "Gotmouse"
#define XtNp9font   "p9font"
#define XtCP9font   "P9font"
#define XtNp9fixed "p9fixed"
#define XtCP9fixed "P9fixed"
#define XtNcomposeMod   "composeMod"
#define XtCComposeMod   "ComposeMod"

/* External reference to the class record pointer */
extern WidgetClass gwinWidgetClass;

/* Type definition for gwin widgets */
typedef struct _GwinRec *GwinWidget;

/* Type definition for gwin resources */
typedef struct {
		int buttons;
		struct {
			int x;
			int y;
		} xy;
		unsigned long msec;
	} Gwinmouse;

typedef void (*Reshapefunc)(int, int, int, int);
typedef void (*Charfunc)(int);
typedef void (*Mousefunc)(Gwinmouse*);

/* Method declarations */
extern String GwinSelectionSwap(Widget, String);
extern char*	Gwinselect_get(Widget w);
extern void	Gwinselect_put(Widget w,char*s);

#endif /* GWIN_H */