1 /****************************************************************************
2     Copyright (C) 1987-2015 by Jeffery P. Hansen
3 
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8 
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13 
14     You should have received a copy of the GNU General Public License along
15     with this program; if not, write to the Free Software Foundation, Inc.,
16     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 ****************************************************************************/
18 #ifndef __functions_h
19 #define __functions_h
20 
21 #define NONSIM 0x1
22 #define SIM 0x2
23 #define EXMODE 0x80000000
24 
25 #define NOPROC 0x4
26 #define PROCON 0x8
27 #define PROCOFF 0x10
28 
29 #define CUTMODEBIT 0x20
30 #define MOVEMODEBIT 0x40
31 #define INVERTMODEBIT 0x80
32 #define DELETEMODEBIT 0x100
33 #define PAPERMODEBIT 0x200
34 #define NAMEMODEBIT 0x400
35 #define SETSIZEBIT 0x800
36 
37 #define	MS1 0x3		    /* sim/no sim bits */
38 #define	MS2 0x1c	    /* Proc on/off bits */
39 #define MS3 0xfe0	    /* All mode bits */
40 
41 void init_tclProcs(Tcl_Interp *tcl);
42 void init_iconTables();
43 void init_localeSet();
44 void init_cpathNetDelayTable();
45 void init_mainWindow(Tcl_Interp *tcl);
46 void init_cursors();
47 void init_specials();void init_specials();
48 
49 void FlagScrolling();
50 
51 void getFontName(char *fullName,fontfamily_t ff,fontprop_t fp,fontsize_t fs,int zoom);
52 
53 void Locale_print(const Locale *locale,FILE *fp);
54 
55 int utf8toXChar2b(XChar2b *output_r, int outsize, const char *input, int inlen);
56 
57 void HandScroll_move(EditState *es);
58 void HandScroll_set(EditState *es);
59 void HandScroll_drop(EditState *es);
60 
61 int igen_strToSide(const char *side);
62 void guessPortName(char *buf,GCElement *g,int orient,int dir,int nbits);
63 
64 #endif
65