source: trunk/athena/lib/Xj/ScrollBar.h @ 12350

Revision 12350, 2.5 KB checked in by ghudson, 26 years ago (diff)
Some RCS ID cleanup: delete $Log$ and replace other RCS keywords with $Id$.
Line 
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
16extern JetClass scrollBarJetClass;
17extern void SetScrollBar();
18extern int GetScrollBarValue();
19
20typedef struct {int littlefoo;} ScrollBarClassPart;
21
22typedef struct _ScrollBarClassRec {
23  CoreClassPart         core_class;
24  ScrollBarClassPart    scrollBar_class;
25} ScrollBarClassRec;
26
27extern ScrollBarClassRec scrollBarClassRec;
28
29typedef 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
65typedef struct _ScrollBarRec {
66  CorePart      core;
67  ScrollBarPart scrollBar;
68} ScrollBarRec;
69
70typedef struct _ScrollBarRec *ScrollBarJet;
71typedef 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 */
Note: See TracBrowser for help on using the repository browser.