-
Notifications
You must be signed in to change notification settings - Fork 6
/
LiteClueP.h
132 lines (108 loc) · 4.32 KB
/
LiteClueP.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
LiteClueP.h - Private definitions for LiteClue widget
See LiteClue documentation
Copyright 1996 COMPUTER GENERATION, INC.,
The software is provided "as is", without warranty of any kind, express
or implied, including but not limited to the warranties of
merchantability, fitness for a particular purpose and noninfringement.
In no event shall Computer Generation, inc. nor the author be liable for
any claim, damages or other liability, whether in an action of contract,
tort or otherwise, arising from, out of or in connection with the
software or the use or other dealings in the software.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation.
Author:
Gary Aviv
Computer Generation, Inc.,
*/
/*************************************************************************\
* Copyright (c) 1994-2004 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 1997-2003 Southeastern Universities Research Association,
* as Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 1997-2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
/* Revision History:
LiteClueP.h,v
* Revision 1.1 1997/08/22 15:21:51 larrieu
* added new buttons for graph panel & freeware hints
*
Revision 1.1 1996/10/19 16:08:51 gary
Initial
$log
Support for cancel wait period
$log
*/
#ifndef _DEF_LiteClueP_h
#define _DEF_LiteClueP_h
#include <X11/ShellP.h>
/* Include public header file for this widget. */
#ifndef __VMS
# include <LiteClue.h>
#else
# include "LiteClue.h"
#endif
/* Doubly Linked List Processing */
struct list_thread_str
{
struct list_thread_str * forw; /* next pointer */
struct list_thread_str * back; /* prev pointer */
};
typedef struct list_thread_str ListThread;
typedef struct {
int nothing; /* place holder */
} LiteClueClassPart;
/* Full class record declaration */
typedef struct _LiteClueClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
ShellClassPart shell_class;
OverrideShellClassPart override_shell_class;
LiteClueClassPart LiteClue_class;
} LiteClueClassRec;
extern LiteClueClassRec xcgLiteClueClassRec;
/* New fields for the LiteClue widget record */
typedef struct {
/* resources */
Pixel foreground;
#if XtSpecificationRelease < 5
XFontStruct *font; /* the font for text in box */
#else
XFontSet fontset; /* the font for text in box */
#endif
int waitPeriod; /* the delay resource - pointer must be
in watched widget this long before
help is poped - in millisecs
*/
int cancelWaitPeriod; /* after help is popped-down - normal
wait period is cancelled for this
period - in millisecs
*/
/* -------- private state --------- */
ListThread widget_list; /* list of widgets we are liteClue-ing */
Dimension font_width; /* width of '1' character */
Dimension font_height; /* height of font, rows are spaced using this */
Dimension font_baseline; /* relative displacement to baseline from top */
GC text_GC; /* for drawing text */
XtIntervalId interval_id; /* New field, holds timer id */
Boolean HelpIsUp; /* the help is popup is up */
Time HelpPopDownTime; /* the time at which help popup was popped down */
} LiteCluePart;
/*
* Full instance record declaration
*/
typedef struct _LiteClueRec {
CorePart core;
CompositePart composite;
ShellPart shell;
OverrideShellPart override;
LiteCluePart liteClue;
} LiteClueRec;
#endif /* _DEF_LiteClueP_h */