1 | /* |
---|
2 | * $Id: ScrollBar.h,v 1.2 1999-01-22 23:16:58 ghudson Exp $ |
---|
3 | * |
---|
4 | * Copyright 1990, 1991 by the Massachusetts Institute of Technology. |
---|
5 | * |
---|
6 | * For copying and distribution information, please see the file |
---|
7 | * <mit-copyright.h>. |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef _Xj_ScrollBar_h |
---|
12 | #define _Xj_ScrollBar_h |
---|
13 | |
---|
14 | #include "Jets.h" |
---|
15 | |
---|
16 | extern JetClass scrollBarJetClass; |
---|
17 | extern void SetScrollBar(); |
---|
18 | extern int GetScrollBarValue(); |
---|
19 | |
---|
20 | typedef struct {int littlefoo;} ScrollBarClassPart; |
---|
21 | |
---|
22 | typedef struct _ScrollBarClassRec { |
---|
23 | CoreClassPart core_class; |
---|
24 | ScrollBarClassPart scrollBar_class; |
---|
25 | } ScrollBarClassRec; |
---|
26 | |
---|
27 | extern ScrollBarClassRec scrollBarClassRec; |
---|
28 | |
---|
29 | typedef struct { |
---|
30 | XjCallback *changeProc; |
---|
31 | GC thumb_gc, line_gc; |
---|
32 | GC fg_gc, bg_gc; |
---|
33 | XjPixmap *thumb; |
---|
34 | int borderColor, foreground, background; |
---|
35 | int borderWidth; |
---|
36 | int borderThickness; |
---|
37 | int padding; |
---|
38 | Boolean inside; |
---|
39 | Boolean selected; |
---|
40 | Boolean pressed; |
---|
41 | int minimum, maximum; /* minimum and maximum values */ |
---|
42 | int visible, current; /* visible amount, current value */ |
---|
43 | int thumbX, thumbY; |
---|
44 | int thumbWidth, thumbHeight; /* compute on resize... */ |
---|
45 | int realized; |
---|
46 | Boolean reverseVideo; |
---|
47 | int vertCursorCode; |
---|
48 | Cursor vertCursor; |
---|
49 | int horizCursorCode; |
---|
50 | Cursor horizCursor; |
---|
51 | int upCursorCode; |
---|
52 | Cursor upCursor; |
---|
53 | int downCursorCode; |
---|
54 | Cursor downCursor; |
---|
55 | int leftCursorCode; |
---|
56 | Cursor leftCursor; |
---|
57 | int rightCursorCode; |
---|
58 | Cursor rightCursor; |
---|
59 | int orientation; |
---|
60 | Boolean showArrows; |
---|
61 | int arrowSize; |
---|
62 | int scrollBarSize; |
---|
63 | } ScrollBarPart; |
---|
64 | |
---|
65 | typedef struct _ScrollBarRec { |
---|
66 | CorePart core; |
---|
67 | ScrollBarPart scrollBar; |
---|
68 | } ScrollBarRec; |
---|
69 | |
---|
70 | typedef struct _ScrollBarRec *ScrollBarJet; |
---|
71 | typedef struct _ScrollBarClassRec *ScrollBarJetClass; |
---|
72 | |
---|
73 | #define XjCBorderThickness "BorderThickness" |
---|
74 | #define XjNborderThickness "borderThickness" |
---|
75 | #define XjCBorderWidth "BorderWidth" |
---|
76 | #define XjNborderWidth "borderWidth" |
---|
77 | #define XjCThumb "Thumb" |
---|
78 | #define XjNthumb "thumb" |
---|
79 | #define XjCChangeProc "ChangeProc" |
---|
80 | #define XjNchangeProc "changeProc" |
---|
81 | #define XjCBorderColor "BorderColor" |
---|
82 | #define XjNborderColor "borderColor" |
---|
83 | #define XjNverticalCursorCode "verticalCursorCode" |
---|
84 | #define XjNhorizontalCursorCode "horizontalCursorCode" |
---|
85 | #define XjNupCursorCode "upCursorCode" |
---|
86 | #define XjNdownCursorCode "downCursorCode" |
---|
87 | #define XjNleftCursorCode "leftCursorCode" |
---|
88 | #define XjNrightCursorCode "rightCursorCode" |
---|
89 | #define XjCCursorCode "CursorCode" |
---|
90 | #define XjNorientation "orientation" |
---|
91 | #define XjCOrientation "Orientation" |
---|
92 | #define XjNshowArrows "showArrows" |
---|
93 | #define XjCShowArrows "ShowArrows" |
---|
94 | |
---|
95 | #endif /* _Xj_ScrollBar_h */ |
---|