Debian Codegraph @

texk/xdvik/gui/sfDraw.h

raw
1 /*
2 * Copyright (c) 2002-2004 the xdvik development team
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to
6 * deal in the Software without restriction, including without limitation the
7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 * sell copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
18 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 */
23
24 #ifndef SFDRAW_H_
25 #define SFDRAW_H_
26
27 #if !defined(MOTIF) /* for xdvik */
28
29 #include <stdio.h>
30 #include <X11/Intrinsic.h>
31 #include <X11/StringDefs.h>
32 #include <X11/Xos.h>
33 #include <X11/Xaw/Text.h>
34 #include <X11/Xaw/AsciiText.h>
35 #include <X11/Xaw/Scrollbar.h>
36 #include <X11/Xaw/Cardinals.h>
37
38 #define SF_DO_SCROLL 1
39 #define SF_DO_NOT_SCROLL 0
40
41 extern Pixel SFfore, SFback;
42
43 void SFinitFont(void);
44 void SFcreateGC(void);
45 void SFclearList(int n, int doScroll);
46 void SFdrawList(int n, int doScroll);
47 void SFdrawLists(int doScroll);
48 void SFenterList(Widget w, int n, XEnterWindowEvent *event);
49 void SFleaveList(Widget w, int n, XEvent *event);
50 void SFmotionList(Widget w, int n, XMotionEvent *event);
51 void SFvFloatSliderMovedCallback(Widget w, int n, float *fnew);
52 void SFvSliderMovedCallback(Widget w, int n, int new);
53 void SFvAreaSelectedCallback(Widget w, int n, int pnew);
54 void SFhSliderMovedCallback(Widget w, int n, float *new);
55 void SFhAreaSelectedCallback(Widget w, int n, int pnew);
56 void SFpathSliderMovedCallback(Widget w, XtPointer client_data, float *new);
57 void SFpathAreaSelectedCallback(Widget w, XtPointer client_data, int pnew);
58 Boolean SFworkProc(void);
59 extern int (*SFfunc)(char *entryReal, char **entryShown, struct stat *statBuf);
60
61 extern Widget selFileField, selFileForm, selFileHScroll, selFileHScrolls[], selFileLists[], selFileVScrolls[];
62 extern Display *SFdisplay;
63 extern int SFcharWidth, SFcharHeight, SFcharAscent;
64 extern XSegment SFsegs[], SFcompletionSegs[];
65 extern XawTextPosition SFtextPos;
66
67 extern int SFupperX, SFlowerY, SFupperY;
68
69 extern int SFtextX, SFtextYoffset;
70
71 extern int SFentryWidth, SFentryHeight;
72
73 extern int SFlineToTextH, SFlineToTextV;
74
75 extern int SFbesideText, SFaboveAndBelowText;
76
77 extern int SFcharsPerEntry;
78
79 extern int SFlistSize;
80
81 extern int SFcurrentInvert[];
82
83 extern int SFworkProcAdded;
84
85 extern XtAppContext SFapp;
86
87 extern int SFpathScrollWidth, SFvScrollHeight, SFhScrollWidth;
88
89 extern char SFtextBuffer[];
90
91 extern int SFbuttonPressed;
92
93 extern XtIntervalId SFdirModTimerId;
94
95 #endif /* !defined(MOTIF) */
96
97 #endif /* SFDRAW_H_ */