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 pbrowser.h 21 * 22 * This file is part of the XForms library package. 23 * Copyright (c) T.C. Zhao and Mark Overmars 24 * All rights reserved. 25 */ 26 27 #ifndef PBROWSER_H_ 28 #define PBROWSER_H_ 29 30 #include "ptbox.h" 31 #include "pscrollbar.h" 32 33 34 typedef struct { 35 FL_OBJECT * tb; /* the textbox */ 36 FL_OBJECT * hsl; /* horizontal scrollbar */ 37 FL_OBJECT * vsl; /* vertical scrollbar */ 38 FL_CALLBACKPTR callback; 39 long callback_data; 40 double hsize, 41 vsize; 42 double hval, 43 vval; 44 double hinc1, 45 hinc2; 46 double vinc1, 47 vinc2; 48 int dead_area; 49 int attrib; 50 int v_on, /* scrollbar on/off state */ 51 h_on; 52 int v_pref, /* on/off prefererence */ 53 h_pref; 54 int vw, 55 vw_def; 56 int hh, 57 hh_def; 58 int user_set; 59 FL_BROWSER_SCROLL_CALLBACK hcb, 60 vcb; 61 void * hcb_data, 62 * vcb_data; 63 double old_vp; 64 double old_hp; 65 } FLI_BROWSER_SPEC; 66 67 #endif 68 69 70 /* 71 * Local variables: 72 * tab-width: 4 73 * indent-tabs-mode: nil 74 * End: 75 */ 76