1 /* 2 * 3 * This file is part of the XForms library package. 4 * 5 * XForms is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU Lesser General Public License as 7 * published by the Free Software Foundation; either version 2.1, or 8 * (at your option) any later version. 9 * 10 * XForms is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with XForms. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 20 /** 21 * \file global.c 22 * 23 * This file is part of the XForms library package. 24 * Copyright (c) 1996-1998 T.C. Zhao and Mark Overmars 25 * All rights reserved. 26 * 27 * All gloabl varialbes used in XForms. It is important to start all 28 * variables with fl/FL or fli/FLI to avoid name space pollution. 29 */ 30 31 #ifdef HAVE_CONFIG_H 32 #include "config.h" 33 #endif 34 35 36 #include "include/forms.h" 37 #include "flinternal.h" 38 39 40 Window fl_root, 41 fl_vroot; 42 43 int fl_screen; 44 45 /* memory routines */ 46 47 void * ( * fl_calloc )( size_t, size_t ) = calloc; 48 void * ( * fl_malloc )( size_t ) = malloc; 49 void * ( * fl_realloc )( void *, size_t ) = realloc; 50 void ( * fl_free )( void * ) = free; 51 52 FL_State fl_state[ 6 ]; 53 54 int fl_vmode = -1; 55 56 int fl_scrh, 57 fl_scrw; 58 59 char *fl_ul_magic_char = "\b"; 60 61 XKeyboardControl fli_keybdcontrol; 62 63 unsigned long fli_keybdmask = ( 1L << 8 ) - 1; 64 65 double fl_dpi = 96.0; 66 67 int fli_inverted_y; 68 69 long fli_requested_vid; 70 71 FLI_INTERNAL fli_int = { NULL, /* forms */ 72 0, /* formnumb */ 73 0, /* hidden_formnumb */ 74 0, /* auto)count */ 75 0, /* unmanaged_count */ 76 0, /* mousex */ 77 0, /* mousey */ 78 0, /* keymask */ 79 UINT_MAX, /* query_age */ 80 NULL, /* mouseform */ 81 NULL, /* keyform */ 82 NULL, /* pushobj */ 83 NULL /* mouseobj */ 84 }; 85 86 FL_IOPT fli_cntl; 87 88 FLI_CONTEXT *fli_context; 89 90 char fli_curfnt[ 127 ]; 91 92 FL_FORM *fl_current_form; 93 94 FL_OBJECT *fli_current_group; 95 96 int fli_no_connection = 0; /* Set only when fdesign is run with 97 the '-convert' option */ 98 FLI_WIN *fli_app_win; 99 100 FL_OBJECT *FL_EVENT = ( FL_OBJECT * ) - 1L; /* The special event object */ 101 102 103 FLI_TARGET *flx; 104 105 /* 106 * Local variables: 107 * tab-width: 4 108 * indent-tabs-mode: nil 109 * End: 110 */ 111