blob: ffaef86a8583398eb3acf31b8e61a2a2fe8fe697 (
plain) (
blame)
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) 1993 Association of Universities for Research in Astronomy Inc.
*/
/*
* WIDGET.H -- Widget class public definitions (used to subclass widgets).
* These definitions are intended for use only by Widget subclasses, not by
* client applications.
*/
struct widgetPrivate {
Widget w;
ObmContext obm;
ObmCallback callback;
ObmCallback event_handler;
Boolean widget_destroyed;
XawTextPosition text_pos;
XtCallbackProc response_cb;
int text_newline;
char translation_table_name[SZ_NAME];
char *data;
int datalen;
};
typedef struct widgetPrivate *WidgetPrivate;
struct widgetObject {
struct obmObjectCore core;
struct widgetPrivate widget;
};
typedef struct widgetObject *WidgetObject;
/* Object message context. */
struct msgContext {
Tcl_Interp *tcl; /* class interpreter */
ObmObject object[MAX_LEVELS]; /* object which received last message */
int level;
};
typedef struct msgContext *MsgContext;
extern int WidgetEvaluate();
extern void WidgetDestroy();
extern void WidgetClassDestroy();
extern ObmObject WidgetCreate();
extern WidgetObject widgetToObject();
extern int coordType();
extern char *widgetEventState();
|