![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/GNUstep/Documentation/Developer/Gui/Reference/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>NSSlider</title> </head> <body> <font face="serif"> <a href="Gui.html">Up</a> <br /> <h1><a name="title$NSSlider">NSSlider</a></h1> <h3>Authors</h3> <dl> <dt>Ovidiu Predescu (<a href="mailto:ovidiu@net-community.com"><code>ovidiu@net-community.com</code></a>)</dt> <dd> </dd> <dt>Felipe A. Rodriguez (<a href="mailto:far@ix.netcom.com"><code>far@ix.netcom.com</code></a>)</dt> <dd> </dd> </dl> <p><b>Copyright:</b> (C) 1996 Free Software Foundation, Inc.</p> <div> </div> <h1><a name="001000000000"><strong>Class</strong> Description</a></h1> <p> An NSSlider displays, and allows control of, some value in the application. It represents a continuous stream of values of type <code><strong>float</strong></code>, which can be retrieved by the method <code>floatValue</code> and set by the method <code>setFloatValue:</code>. </p> <p> This control is a continuous control. It sends its action message as <strong>long</strong> as the user is manipulating it. This can be changed by passing <code>NO</code> to the <code>setContinuous:</code> message of a given NSSlider. </p> <p> Although methods for adding and managing a title are provided, the slider's knob can cover this title, so it is recommended that a label be added near the slider, for identification. </p> <p> As with many controls, NSSlider relies on its cell counterpart, NSSliderCell. For more information, please see the specification for NSSliderCell. </p> <p> Use of an NSSlider to do the role of an NSScroller is not recommended. A scroller is intended to represent the visible portion of a view, whereas a slider is intended to represent some value. </p> <h2><a name="class$NSSlider">NSSlider</a> : <a rel="gsdoc" href="NSControl.html#class$NSControl">NSControl</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>AppKit/NSSlider.h</dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-acceptsFirstMouse$">-acceptsFirstMouse:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-allowsTickMarkValuesOnly">-allowsTickMarkValuesOnly</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-altIncrementValue">-altIncrementValue</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-closestTickMarkValueToValue$">-closestTickMarkValueToValue:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-image">-image</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-indexOfTickMarkAtPoint$">-indexOfTickMarkAtPoint:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-isVertical">-isVertical</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-knobThickness">-knobThickness</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-maxValue">-maxValue</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-minValue">-minValue</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-numberOfTickMarks">-numberOfTickMarks</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-rectOfTickMarkAtIndex$">-rectOfTickMarkAtIndex:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setAllowsTickMarkValuesOnly$">-setAllowsTickMarkValuesOnly:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setAltIncrementValue$">-setAltIncrementValue:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setImage$">-setImage:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setKnobThickness$">-setKnobThickness:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setMaxValue$">-setMaxValue:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setMinValue$">-setMinValue:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setNumberOfTickMarks$">-setNumberOfTickMarks:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setTickMarkPosition$">-setTickMarkPosition:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setTitle$">-setTitle:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setTitleCell$">-setTitleCell:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setTitleColor$">-setTitleColor:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-setTitleFont$">-setTitleFont:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-tickMarkPosition">-tickMarkPosition</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-tickMarkValueAtIndex$">-tickMarkValueAtIndex:</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-title">-title</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-titleCell">-titleCell</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-titleColor">-titleColor</a></li> <li><a rel="gsdoc" href="NSSlider.html#method$NSSlider-titleFont">-titleFont</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSSlider-acceptsFirstMouse$">acceptsFirstMouse: </a></h3> - (BOOL) <b>acceptsFirstMouse:</b> (<a rel="gsdoc" href="NSEvent.html#class$NSEvent">NSEvent</a>*)theEvent;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns <code>YES</code> by default. This will allow the first click sent to the slider, when in an inactive window, to both bring the window into focus and manipulate the slider. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-allowsTickMarkValuesOnly">allowsTickMarkValuesOnly </a></h3> - (BOOL) <b>allowsTickMarkValuesOnly</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-altIncrementValue">altIncrementValue </a></h3> - (double) <b>altIncrementValue</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the value by which the slider will be incremented if the user holds down the ALT key. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-setAltIncrementValue$"> -setAltIncrementValue: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-closestTickMarkValueToValue$">closestTickMarkValueToValue: </a></h3> - (double) <b>closestTickMarkValueToValue:</b> (double)aValue;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-image">image </a></h3> - (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>image</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the image drawn in the slider's track. Returns <code>nil</code> if this has not been set. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-setImage$"> -setImage: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-indexOfTickMarkAtPoint$">indexOfTickMarkAtPoint: </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>indexOfTickMarkAtPoint:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$NSPoint">NSPoint</a>)point;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-isVertical">isVertical </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>isVertical</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns whether or not the slider is vertical. If, for some reason, this cannot be determined, for such reasons as the slider is not yet displayed, this method returns -1. Generally, a slider is considered vertical if its height is greater than its width. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-knobThickness">knobThickness </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$CGFloat">CGFloat</a>) <b>knobThickness</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns the thickness of the slider's knob. This value is in pixels, and is the size of the knob along the slider's track. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-maxValue">maxValue </a></h3> - (double) <b>maxValue</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the maximum value that the slider represents. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-setMaxValue$"> -setMaxValue: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-minValue">minValue </a></h3> - (double) <b>minValue</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the minimum value that the slider represents. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-setMinValue$"> -setMinValue: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-numberOfTickMarks">numberOfTickMarks </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>numberOfTickMarks</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-rectOfTickMarkAtIndex$">rectOfTickMarkAtIndex: </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$NSRect">NSRect</a>) <b>rectOfTickMarkAtIndex:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>)index;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setAllowsTickMarkValuesOnly$">setAllowsTickMarkValuesOnly: </a></h3> - (void) <b>setAllowsTickMarkValuesOnly:</b> (BOOL)flag;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setAltIncrementValue$">setAltIncrementValue: </a></h3> - (void) <b>setAltIncrementValue:</b> (double)increment;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the value by which the slider will be incremented, when the ALT key is held down, to <var>increment</var>. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-altIncrementValue"> -altIncrementValue </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setImage$">setImage: </a></h3> - (void) <b>setImage:</b> (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*)backgroundImage;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the image to be displayed in the slider's track to <var>barImage</var>. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-image">-image</a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setKnobThickness$">setKnobThickness: </a></h3> - (void) <b>setKnobThickness:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$CGFloat">CGFloat</a>)aFloat;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the thickness of the knob to <var>aFloat</var>, in pixels. This value sets the amount of space which the knob takes up in the slider's track. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-knobThickness"> -knobThickness </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setMaxValue$">setMaxValue: </a></h3> - (void) <b>setMaxValue:</b> (double)aDouble;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the maximum value that the sliders represents to <var>aDouble</var>. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-maxValue"> -maxValue </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setMinValue$">setMinValue: </a></h3> - (void) <b>setMinValue:</b> (double)aDouble;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the minimum value that the slider represents to <var>aDouble</var>. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-minValue"> -minValue </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setNumberOfTickMarks$">setNumberOfTickMarks: </a></h3> - (void) <b>setNumberOfTickMarks:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>)numberOfTickMarks;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setTickMarkPosition$">setTickMarkPosition: </a></h3> - (void) <b>setTickMarkPosition:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTickMarkPosition">NSTickMarkPosition</a>)position;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setTitle$">setTitle: </a></h3> - (void) <b>setTitle:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)aString;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the title of the slider to <var>aString</var>. This title is displayed on the slider's track, behind the knob. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-title">-title</a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setTitleCell$">setTitleCell: </a></h3> - (void) <b>setTitleCell:</b> (<a rel="gsdoc" href="NSCell.html#class$NSCell">NSCell</a>*)aCell;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the cell used to draw the title to <var>aCell</var>. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-titleCell"> -titleCell </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setTitleColor$">setTitleColor: </a></h3> - (void) <b>setTitleColor:</b> (<a rel="gsdoc" href="NSColor.html#class$NSColor">NSColor</a>*)aColor;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the colour with which the title will be drawn to <var>aColor</var>. </p> <p> </p> <p> See Also <a rel="gsdoc" href="#method$NSSlider-titleColor"> -titleColor </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-setTitleFont$">setTitleFont: </a></h3> - (void) <b>setTitleFont:</b> (<a rel="gsdoc" href="NSFont.html#class$NSFont">NSFont</a>*)fontObject;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the font with which the title will be drawm to <var>fontObject</var>. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-titleFont"> -titleFont </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-tickMarkPosition">tickMarkPosition </a></h3> - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTickMarkPosition">NSTickMarkPosition</a>) <b>tickMarkPosition</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-tickMarkValueAtIndex$">tickMarkValueAtIndex: </a></h3> - (double) <b>tickMarkValueAtIndex:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>)index;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-title">title </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>title</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the title of the slider as an <code>NSString</code>. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-setTitle$"> -setTitle: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-titleCell">titleCell </a></h3> - (id) <b>titleCell</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the cell used to draw the title. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-setTitleCell$"> -setTitleCell: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-titleColor">titleColor </a></h3> - (<a rel="gsdoc" href="NSColor.html#class$NSColor">NSColor</a>*) <b>titleColor</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the colour used to draw the title. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-setTitleColor$"> -setTitleColor: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSSlider-titleFont">titleFont </a></h3> - (<a rel="gsdoc" href="NSFont.html#class$NSFont">NSFont</a>*) <b>titleFont</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the font used to draw the title. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSSlider-setTitleFont$"> -setTitleFont: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <br /> <a href="Gui.html">Up</a> </font> </body> </html>