1 /* 2 * This file is part of the XForms library package. 3 * 4 * XForms is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU Lesser General Public License as 6 * published by the Free Software Foundation; either version 2.1, or 7 * (at your option) any later version. 8 * 9 * XForms is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with XForms. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 19 /** 20 * \file pformbrowser.h 21 */ 22 23 #ifndef PFORMBROWSER_H 24 #define PFORMBROWSER_H 25 26 typedef struct { 27 FL_OBJECT * canvas; 28 FL_OBJECT * parent; 29 int nforms; 30 FL_FORM ** form; 31 int v_pref; 32 int h_pref; 33 int vw_def, 34 vw; 35 int hh_def, 36 hh; 37 FL_OBJECT * hsl; 38 FL_OBJECT * vsl; 39 int h_on, 40 v_on; 41 double old_vval, 42 old_hval; 43 44 int x, 45 y; 46 int left_edge; 47 int top_edge; 48 int top_form; 49 50 int max_height; 51 int max_width; 52 53 int processing_destroy; 54 int in_draw; 55 int scroll; /* either pixel based or form based */ 56 } FLI_FORMBROWSER_SPEC; 57 58 #define IsFormBrowserClass( ob ) \ 59 ( ( ob ) && ( ob )->objclass == FL_FORMBROWSER ) 60 61 #if defined sun && ! defined __SVR4 62 #define memmove( a, b, c ) bcopy( b, a, c ) 63 #endif 64 65 #endif 66 67 68 /* 69 * Local variables: 70 * tab-width: 4 71 * indent-tabs-mode: nil 72 * End: 73 */ 74