annotate lwlib/xlwscrollbarP.h @ 98:0d2f883870bc r20-1b1

Import from CVS: tag r20-1b1
author cvs
date Mon, 13 Aug 2007 09:13:56 +0200
parents c0c698873ce1
children a145efe76779
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Implements a lightweight scrollbar widget.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1992, 1993, 1994 Lucid, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of the Lucid Widget Library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 The Lucid Widget Library is free software; you can redistribute it and/or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 modify it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 The Lucid Widget Library is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
19 Boston, MA 02111-1307, USA. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Created by Douglas Keller <dkeller@vnet.ibm.com> */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 #ifndef _XlwScrollBarP_h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 #define _XlwScrollBarP_h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ** Widget class
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 */
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
30 typedef struct {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
31 int dummy_field; /* keep compiler happy */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 } XlwScrollBarClassPart;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
34 typedef struct _XlwScrollbarClassRec {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
35 CoreClassPart core_class;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
36 XlwScrollBarClassPart scrollbar_class;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 } XlwScrollBarClassRec;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ** Widget instance
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 */
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
43 typedef struct {
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
45 /* resources */
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
46 XtCallbackList valueChangedCBL;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
47 XtCallbackList incrementCBL;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
48 XtCallbackList decrementCBL;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
49 XtCallbackList pageIncrementCBL;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
50 XtCallbackList pageDecrementCBL;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
51 XtCallbackList toTopCBL;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
52 XtCallbackList toBottomCBL;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
53 XtCallbackList dragCBL;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
55 Pixel foreground;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
57 Pixel topShadowColor;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
58 Pixel bottomShadowColor;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
60 Pixel troughColor;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
62 Pixel armColor;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
63 Pixel armTopShadowColor;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
64 Pixel armBottomShadowColor;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
66 Pixmap topShadowPixmap;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
67 Pixmap bottomShadowPixmap;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
68
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
69 int shadowThickness;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
70
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
71 Boolean showArrows;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
73 int minimum;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
74 int maximum;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
75 int sliderSize;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
76 int value;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
77 int pageIncrement;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
78 int increment;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
80 int initialDelay;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
81 int repeatDelay;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
83 unsigned char orientation;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
85 char *knobStyle;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
86 char *arrowPosition;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
88 /* private */
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
89 Pixmap grayPixmap;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
90
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
91 GC backgroundGC;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
92 GC topShadowGC;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
93 GC bottomShadowGC;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
94
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
95 int above, ss, below;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
96 int lastY;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 0
diff changeset
97
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
98 int armed;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
99
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
100 int savedValue;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 0
diff changeset
101
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
102 Boolean fullRedrawNext;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
104 Boolean timerActive;
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 70
diff changeset
105 XtIntervalId timerId;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 } XlwScrollBarPart;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
109 typedef struct _XlwScrollBarRec {
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
110 CorePart core;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
111 XlwScrollBarPart sb;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 } XlwScrollBarRec;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 26
diff changeset
114 #endif