1 /* 2 NSStepperCell.h 3 4 Copyright (C) 2001 Free Software Foundation, Inc. 5 6 Author: Pierre-Yves Rivaille <pyrivail@ens-lyon.fr> 7 Date: 2001 8 9 This file is part of the GNUstep GUI Library. 10 11 This library is free software; you can redistribute it and/or 12 modify it under the terms of the GNU Lesser General Public 13 License as published by the Free Software Foundation; either 14 version 2 of the License, or (at your option) any later version. 15 16 This library is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 Lesser General Public License for more details. 20 21 You should have received a copy of the GNU Lesser General Public 22 License along with this library; see the file COPYING.LIB. 23 If not, see <http://www.gnu.org/licenses/> or write to the 24 Free Software Foundation, 51 Franklin Street, Fifth Floor, 25 Boston, MA 02110-1301, USA. 26 */ 27 28 #ifndef _GNUstep_H_NSStepperCell 29 #define _GNUstep_H_NSStepperCell 30 31 #import <AppKit/NSActionCell.h> 32 33 @interface NSStepperCell : NSActionCell 34 { 35 // Think of the following ones as of two BOOL ivars 36 #define _autorepeat _cell.subclass_bool_one 37 #define _valueWraps _cell.subclass_bool_two 38 39 double _maxValue; 40 double _minValue; 41 double _increment; 42 BOOL highlightUp; 43 BOOL highlightDown; 44 } 45 46 - (double)maxValue; 47 - (void)setMaxValue: (double)maxValue; 48 - (double)minValue; 49 - (void)setMinValue: (double)minValue; 50 - (double)increment; 51 - (void)setIncrement: (double)increment; 52 53 - (BOOL)autorepeat; 54 - (void)setAutorepeat: (BOOL)autorepeat; 55 - (BOOL)valueWraps; 56 - (void)setValueWraps: (BOOL)valueWraps; 57 58 @end 59 60 #endif // _GNUstep_H_NSStepperCell 61