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