Back to index

tetex-bin  3.0
sfDraw.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2002-2004 the xdvik development team
00003  *
00004  * Permission is hereby granted, free of charge, to any person obtaining a copy
00005  * of this software and associated documentation files (the "Software"), to
00006  * deal in the Software without restriction, including without limitation the
00007  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
00008  * sell copies of the Software, and to permit persons to whom the Software is
00009  * furnished to do so, subject to the following conditions:
00010  *
00011  * The above copyright notice and this permission notice shall be included in
00012  * all copies or substantial portions of the Software.
00013  *
00014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00017  * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
00018  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00020  * OTHER DEALINGS IN THE SOFTWARE.
00021  *
00022  */
00023 
00024 #ifndef SFDRAW_H_
00025 #define SFDRAW_H_
00026 
00027 #include "xdvi-config.h"
00028 
00029 #if !defined(MOTIF)  /* for xdvik */
00030 
00031 #include <stdio.h>
00032 #include <X11/Intrinsic.h>
00033 #include <X11/StringDefs.h>
00034 #include <X11/Xos.h>
00035 #include <X11/Xaw/Text.h>
00036 #include <X11/Xaw/AsciiText.h>
00037 #include <X11/Xaw/Scrollbar.h>
00038 #include <X11/Xaw/Cardinals.h>
00039 
00040 #define SF_DO_SCROLL        1
00041 #define SF_DO_NOT_SCROLL    0
00042 
00043 extern Pixel SFfore, SFback;
00044 
00045 void SFinitFont(void);
00046 void SFcreateGC(void);
00047 void SFclearList(int n, int doScroll);
00048 void SFdrawList(int n, int doScroll);
00049 void SFdrawLists(int doScroll);
00050 void SFenterList(Widget w, int n, XEnterWindowEvent *event);
00051 void SFleaveList(Widget w, int n, XEvent *event);
00052 void SFmotionList(Widget w, int n, XMotionEvent *event);
00053 void SFvFloatSliderMovedCallback(Widget w, int n, float *fnew);
00054 void SFvSliderMovedCallback(Widget w, int n, int new);
00055 void SFvAreaSelectedCallback(Widget w, int n, int pnew);
00056 void SFhSliderMovedCallback(Widget w, int n, float *new);
00057 void SFhAreaSelectedCallback(Widget w, int n, int pnew);
00058 void SFpathSliderMovedCallback(Widget w, XtPointer client_data, float *new);
00059 void SFpathAreaSelectedCallback(Widget w, XtPointer client_data, int pnew);
00060 Boolean SFworkProc(void);
00061 extern int (*SFfunc)();
00062 
00063 extern Widget selFileField, selFileForm, selFileHScroll, selFileHScrolls[], selFileLists[], selFileVScrolls[];
00064 extern Display *SFdisplay;
00065 extern int SFcharWidth, SFcharHeight, SFcharAscent;
00066 extern XSegment SFsegs[], SFcompletionSegs[];
00067 extern XawTextPosition SFtextPos;
00068 
00069 extern int SFupperX, SFlowerY, SFupperY;
00070 
00071 extern int SFtextX, SFtextYoffset;
00072 
00073 extern int SFentryWidth, SFentryHeight;
00074 
00075 extern int SFlineToTextH, SFlineToTextV;
00076 
00077 extern int SFbesideText, SFaboveAndBelowText;
00078 
00079 extern int SFcharsPerEntry;
00080 
00081 extern int SFlistSize;
00082 
00083 extern int SFcurrentInvert[];
00084 
00085 extern int SFworkProcAdded;
00086 
00087 extern XtAppContext SFapp;
00088 
00089 extern int SFpathScrollWidth, SFvScrollHeight, SFhScrollWidth;
00090 
00091 extern char SFtextBuffer[];
00092 
00093 extern int SFbuttonPressed;
00094 
00095 extern XtIntervalId SFdirModTimerId;
00096 
00097 #endif  /* !defined(MOTIF) */
00098 
00099 #endif /* SFDRAW_H_ */