home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / ApplicationKit / Classes / NSSliderCell.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  6.3 KB  |  98 lines

  1. {\rtf0\ansi\paperw16228 \paperh18648 \margl-907 \margr0 \margt0 \margb0 {\fonttbl\f0\fswiss Helvetica;\f1\froman Times;\f2\fmodern Courier;\f3\ftech Symbol;\f4\froman Palatino;}
  2. {\stylesheet{\s0 \li100 \fi0 \ri1007 \ql   1Head;}
  3. {\s1 \li100 \fi0 \ri1007 \ql   ClassName;}
  4. {\s2 \li2872 \fi-2771 \ri1007 \ql \tx2872   ConformsTo;}
  5. {\s3 \li2872 \fi-2771 \ri1007 \ql   DeclaredIn;}
  6. {\s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030   Description;}
  7. {\s5 \li7030 \fi-5796 \ri1007 \ql   DescriptionPart;}
  8. {\s6 \li0 \fi0 \ri0 \ql \tx-25 \tx8290 \tx9172   Footer;}
  9. {\s7 \li2872 \fi-2771 \ri1007 \ql \tx2872   InheritsFrom;}
  10. {\s8 \li100 \fi0 \ri1007 \ql   Summary;}
  11. }
  12. \li0 \fi0 \ri0 \ql \sb0 \f1 \fs24 
  13. (Preliminary Documentation) Copyright \f3 \'e3\f1 1994 by NeXT Computer, Inc.  All Rights Reserved.\
  14. \
  15. \s0 \li100 \fi0 \ri1007 \ql \f0 \b \fs36 \fs16 \
  16. \
  17. \
  18. \
  19. \
  20. \
  21. \
  22. \fs36 NSSliderCell \
  23. \pard \s7 \li2872 \fi-2771 \ri1007 \ql \tx2872 \f1 \b0 \fs28 \fs16 \
  24. \
  25. \
  26. \fs28 \f0 \b \fs28 Inherits From:    \b0 \fs28 \f1 NSActionCell : NSCell : NSObject \
  27. \fs16 \
  28. \fs28 \s3 \fs16 \fs28 \f0 \b \fs28 Declared In:    \b0 \fs28 \f1 appkit/NSSliderCell.h \
  29. \fs16 \
  30. \fs28 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs28 \fs16 \
  31. \
  32. \fs28 Determining Component Sizes \
  33. \fs16 \
  34. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSSize)\b cellSizeForBounds:\b0 (NSRect)\i aRect\i0     Returns the minimum width and height needed to draw the NSSliderCell in \i aRect\i0 .  If \i aRect\i0  too small to fit the knob and bezel, the width and height of \i theSize\i0  are set to 0.0.\
  35. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSRect)\b knobRectFlipped:\b0 (BOOL)\i flipped\i0     Gets the rectangle the knob will be drawn in.  \i flipped\i0  indicates whether the NSSliderCell's view has a flipped coordinate system.\
  36. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  37. \
  38. \
  39. \fs28 Setting Value Limits \
  40. \fs16 \
  41. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (double)\b maxValue\b0     Returns the NSSliderCell\'27s maximum value. \
  42. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (double)\b minValue\b0     Returns the NSSliderCell\'27s minimum value. \
  43. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setMaxValue:\b0 (double)\i aDouble\i0     Sets the maximum value of the NSSliderCell to \i aDouble\i0 . \
  44. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setMinValue:\b0 (double)\i aDouble\i0     Sets the NSSliderCell\'27s minimum value to \i aDouble\i0 . \
  45. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  46. \
  47. \
  48. \fs28 Modifying Graphic Attributes \
  49. \fs16 \
  50. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (int)\b isVertical\b0     Returns 1 if the NSSliderCell is vertical, 0 if horizontal, -1 if unknown. \
  51. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (float)\b knobThickness\b0     Returns the knob\'27s thickness as a float value.\
  52. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setKnobThickness:\b0 (float)\i aFloat\i0     Sets the knob\'27s thickness to \i aFloat\i0  (width if a horizontal slider, height if vertical).\
  53. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setTitle:\b0 (NSString *)\i aString\i0     Sets the title within the NSSliderCell to a copy of \i aString\i0 . \
  54. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setTitleCell:\b0 (NSCell *)\i aCell\i0     Sets the NSCell (or subclass thereof) object used to draw the title within the NSSliderCell. The cell object should ideally be an instance of NSTextFieldCell or one of its subclasses.\
  55. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setTitleColor:\b0 (NSColor *)\i aColor\i0     Sets the color of text in the title to \i aColor\i0 . \
  56. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setTitleFont:\b0 (NSFont *)\i fontObject\i0     Sets the NSFont object used to draw the title within the NSSliderCell. \
  57. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSString *)\b title\b0     Returns the title within the NSSliderCell.\
  58. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (id)\b titleCell\b0     Returns the NSCell (or subclass thereof) object used to draw the title within the NSSliderCell. \
  59. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSFont *)\b titleFont\b0     Returns the NSFont object used in drawing the title within the NSSliderCell. \
  60. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSColor *)\b titleColor\b0     Returns the color of text in the title. \
  61. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  62. \
  63. \
  64. \fs28 Displaying the NSSliderCell \
  65. \fs16 \
  66. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b drawBarInside:\b0 (NSRect)\i aRect\i0     Draws the NSSliderCell\'27s background bar (but not the\
  67. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b flipped:\b0 (BOOL)\i flipped\i0          bezel around it or the knob) in \i aRect\i0 .   \i flipped\i0  indicates whether the NSView\'27s coordinate system is flipped.\
  68. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (void)\b drawKnob\b0     Draws the NSSliderCell\'27s knob after calculating the drawing rectangle. \
  69. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b drawKnob:\b0 (NSRect)\i knobRect\i0     Draws the NSSliderCell\'27s knob in \i knobRect\i0 . \
  70. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  71. \
  72. \
  73. \fs28 Modifying Behavior \
  74. \fs16 \
  75. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (double)\b altIncrementValue\b0     Returns the increment by which  the NSSliderCell modifies its value when its knob is Alternate-dragged one pixel.\
  76. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setAltIncrementValue:\b0 (double)\i incValue\i0     Sets the amount by which the NSSliderCell modifies its value when the knob is dragged one pixel with the Alternate key held down. \
  77. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  78. \
  79. \
  80. \fs28 Tracking the Mouse \
  81. \fs16 \
  82. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 + (BOOL)\b prefersTrackingUntilMouseUp\b0     Returns YES to allow NSSliderCell objects to track even when the mouse leaves their bounds.  Override this method to return NO if you want the NSSliderCell to stop tracking once the mouse leaves its bounds. \
  83. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSRect)\b trackRect\b0     Returns the rectangle used in tracking the mouse (only valid while tracking).\
  84. \fi-6552 \fi-6552 \fi-6552 \
  85. \fi-6552 \fi-6552 \fi-6552 \
  86. \fi-6552 \pard \s0 \li100 \fi0 \ri1007 \tx478 \tx856 \tx1234 \fs28 \fs16 \
  87. \
  88. \fs28 \
  89. \fs16 \
  90. \
  91. \fs28 \pard \s0 \
  92. \li100 \fi0 \ri1007 \fs16 \
  93. \
  94. \fs28 \
  95. \fs16 \
  96. \
  97. \fs28 }
  98.