home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSSliderCell.h < prev    next >
Text File  |  1996-10-28  |  1KB  |  57 lines

  1. /*
  2.     NSSliderCell.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <AppKit/NSActionCell.h>
  9.  
  10. @interface NSSliderCell : NSActionCell
  11. {
  12.     NSImage    *_knobImage;
  13.     float    _knobThickness;
  14.     NSImage    *_backImage;
  15.     id        _textCell;
  16.     double    _altIncValue;
  17.     double    _value;
  18.     double    _maxValue;
  19.     double    _minValue;
  20.     NSRect    _trackRect;
  21.     struct __sliderCellFlags {
  22.         unsigned int weAreVertical:1;
  23.         unsigned int weAreVerticalSet:1;
  24.         unsigned int backImageWasResized:1;
  25.         unsigned int reservedSliderCell:29;
  26.     } _scFlags;
  27. }
  28.  
  29.  
  30. + (BOOL)prefersTrackingUntilMouseUp;
  31.  
  32.  
  33. - (double)minValue;
  34. - (void)setMinValue:(double)aDouble;
  35. - (double)maxValue;
  36. - (void)setMaxValue:(double)aDouble;
  37. - (void)setAltIncrementValue:(double)incValue;
  38. - (double)altIncrementValue;
  39. - (int)isVertical;
  40. - (void)setTitleColor:(NSColor *)newColor;
  41. - (NSColor *)titleColor;
  42. - (void)setTitleFont:(NSFont *)fontObj;
  43. - (NSFont *)titleFont;
  44. - (NSString *)title;
  45. - (void)setTitle:(NSString *)aString;
  46. - (void)setTitleCell:(NSCell *)aCell;
  47. - (id)titleCell;
  48. - (void)setKnobThickness:(float)aFloat;
  49. - (float)knobThickness;
  50. - (NSRect)knobRectFlipped:(BOOL)flipped;
  51. - (void)drawKnob:(NSRect)knobRect;
  52. - (void)drawKnob;
  53. - (void)drawBarInside:(NSRect)aRect flipped:(BOOL)flipped;
  54. - (NSRect)trackRect;    // Only valid while tracking the mouse!
  55.  
  56. @end
  57.