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 Lesser General Public License 15 * along with XForms. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 /********************** crop here for forms.h **********************/ 19 20 21 #ifndef FL_SCROLLBAR_H 22 #define FL_SCROLLBAR_H 23 24 enum { 25 FL_VERT_SCROLLBAR, 26 FL_HOR_SCROLLBAR, 27 28 FL_VERT_THIN_SCROLLBAR, 29 FL_HOR_THIN_SCROLLBAR, 30 31 FL_VERT_NICE_SCROLLBAR, 32 FL_HOR_NICE_SCROLLBAR, 33 34 FL_VERT_PLAIN_SCROLLBAR, 35 FL_HOR_PLAIN_SCROLLBAR, 36 37 FL_HOR_BASIC_SCROLLBAR = FL_HOR_PLAIN_SCROLLBAR, 38 FL_VERT_BASIC_SCROLLBAR = FL_VERT_PLAIN_SCROLLBAR 39 }; 40 41 enum { 42 FL_NORMAL_SCROLLBAR, 43 FL_THIN_SCROLLBAR, 44 FL_NICE_SCROLLBAR, 45 FL_PLAIN_SCROLLBAR 46 }; 47 48 #define FL_SCROLLBAR_ALIGN FL_ALIGN_BOTTOM 49 50 51 FL_EXPORT FL_OBJECT * fl_create_scrollbar( int type, 52 FL_Coord x, 53 FL_Coord y, 54 FL_Coord w, 55 FL_Coord h, 56 const char * label ); 57 58 FL_EXPORT FL_OBJECT * fl_add_scrollbar( int type, 59 FL_Coord x, 60 FL_Coord y, 61 FL_Coord w, 62 FL_Coord h, 63 const char * label ); 64 65 FL_EXPORT double fl_get_scrollbar_value( FL_OBJECT * ob ); 66 67 FL_EXPORT void fl_set_scrollbar_value( FL_OBJECT * ob, 68 double val ); 69 70 FL_EXPORT void fl_set_scrollbar_size( FL_OBJECT * ob, 71 double val ); 72 73 FL_EXPORT double fl_get_scrollbar_size( FL_OBJECT * obj ); 74 75 FL_EXPORT void fl_set_scrollbar_increment( FL_OBJECT * ob, 76 double l, 77 double r ); 78 79 FL_EXPORT void fl_get_scrollbar_increment( FL_OBJECT * ob, 80 double * a, 81 double * b ); 82 83 FL_EXPORT void fl_set_scrollbar_bounds( FL_OBJECT * ob, 84 double b1, 85 double b2 ); 86 87 FL_EXPORT void fl_get_scrollbar_bounds( FL_OBJECT * ob, 88 double * b1, 89 double * b2 ); 90 91 FL_EXPORT void fl_set_scrollbar_return( FL_OBJECT * ob, 92 unsigned int when ); 93 94 FL_EXPORT void fl_set_scrollbar_step( FL_OBJECT * ob, 95 double step ); 96 97 FL_EXPORT int fl_get_scrollbar_repeat( FL_OBJECT * obj ); 98 99 FL_EXPORT void fl_set_scrollbar_repeat( FL_OBJECT * obj, 100 int millisec ); 101 102 #endif /* ! defined FL_SCROLLBAR_H */ 103