mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-27 14:50:45 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
279 lines
7.5 KiB
HTML
279 lines
7.5 KiB
HTML
<html>
|
|
<head>
|
|
<title>NSSliderCell</title>
|
|
</head>
|
|
<body>
|
|
<h1>NSSliderCell</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>
|
|
</dl>
|
|
<p>Copyright: (C) 1996,1999 Free Software Foundation, Inc.</p>
|
|
<h1>Class Description</h1>
|
|
<p>
|
|
|
|
An NSSliderCell controls the behaviour and appearance of an
|
|
associated NSSlider, or a single slider in an
|
|
NSMatrix. Tick marks are defined in the official
|
|
standard, but are not implemented in GNUstep.
|
|
</p>
|
|
<p>
|
|
|
|
An NSSliderCell can be customized through its
|
|
<code>set...</code> methods. If these do not provide
|
|
enough customization, a subclass can be created, which
|
|
overrides any of the follwing methods:
|
|
<code>knobRectFlipped:</code>,
|
|
<code>drawBarInside:flipped:</code>,
|
|
<code>drawKnob:</code>, or
|
|
<code>prefersTrackingUntilMouseUp</code>.
|
|
</p>
|
|
<h2><a name="class$NSSliderCell">NSSliderCell</a> : <a href="NSActionCell.html#class$NSActionCell">NSActionCell</a></h2>
|
|
Declared: AppKit/NSSliderCell.h<br />
|
|
Conform: NSCoding<br />
|
|
<p>
|
|
|
|
</p>
|
|
<h3>prefersTrackingUntilMouseUp</a></h3>
|
|
+ (BOOL) <b>prefersTrackingUntilMouseUp</b>;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>allowsTickMarkValuesOnly</a></h3>
|
|
- (BOOL) <b>allowsTickMarkValuesOnly</b>;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>altIncrementValue</a></h3>
|
|
- (double) <b>altIncrementValue</b>;<br />
|
|
<p>
|
|
|
|
Returns the value by which the slider is
|
|
incremented when the user holds down the ALT
|
|
key.
|
|
</p>
|
|
<hr />
|
|
<h3>closestTickMarkValueToValue:</a></h3>
|
|
- (double) <b>closestTickMarkValueToValue:</b> (double)aValue;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>drawBarInside:flipped:</a></h3>
|
|
- (void) <b>drawBarInside:</b> (NSRect)rect<b> flipped:</b> (BOOL)flipped;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>drawKnob</a></h3>
|
|
- (void) <b>drawKnob</b>;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>drawKnob:</a></h3>
|
|
- (void) <b>drawKnob:</b> (NSRect)knobRect;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>indexOfTickMarkAtPoint:</a></h3>
|
|
- (int) <b>indexOfTickMarkAtPoint:</b> (NSPoint)point;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>isVertical</a></h3>
|
|
- (int) <b>isVertical</b>;<br />
|
|
<p>
|
|
|
|
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.
|
|
</p>
|
|
<hr />
|
|
<h3>knobRectFlipped:</a></h3>
|
|
- (NSRect) <b>knobRectFlipped:</b> (BOOL)flipped;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>knobThickness</a></h3>
|
|
- (float) <b>knobThickness</b>;<br />
|
|
<p>
|
|
|
|
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.
|
|
</p>
|
|
<hr />
|
|
<h3>maxValue</a></h3>
|
|
- (double) <b>maxValue</b>;<br />
|
|
<p>
|
|
|
|
Returns the maximum value that the slider
|
|
represents.
|
|
</p>
|
|
<hr />
|
|
<h3>minValue</a></h3>
|
|
- (double) <b>minValue</b>;<br />
|
|
<p>
|
|
|
|
Returns the minimum value that the slider
|
|
represents.
|
|
</p>
|
|
<hr />
|
|
<h3>numberOfTickMarks</a></h3>
|
|
- (int) <b>numberOfTickMarks</b>;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>rectOfTickMarkAtIndex:</a></h3>
|
|
- (NSRect) <b>rectOfTickMarkAtIndex:</b> (int)index;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>setAllowsTickMarkValuesOnly:</a></h3>
|
|
- (void) <b>setAllowsTickMarkValuesOnly:</b> (BOOL)flag;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>setAltIncrementValue:</a></h3>
|
|
- (void) <b>setAltIncrementValue:</b> (double)increment;<br />
|
|
<p>
|
|
|
|
Sets the value by which the slider will be be
|
|
incremented when with the ALT key down to
|
|
<var>increment</var>.
|
|
</p>
|
|
<hr />
|
|
<h3>setKnobThickness:</a></h3>
|
|
- (void) <b>setKnobThickness:</b> (float)thickness;<br />
|
|
<p>
|
|
|
|
Sets the <var>thickness</var> of the knob to
|
|
<var>thickness</var>, in pixels. This value sets the
|
|
amount of space which the knob takes up in the
|
|
slider's track.
|
|
</p>
|
|
<hr />
|
|
<h3>setMaxValue:</a></h3>
|
|
- (void) <b>setMaxValue:</b> (double)aDouble;<br />
|
|
<p>
|
|
|
|
Sets the maximum value that the sliders represents to
|
|
<var>maxValue</var>.
|
|
</p>
|
|
<hr />
|
|
<h3>setMinValue:</a></h3>
|
|
- (void) <b>setMinValue:</b> (double)aDouble;<br />
|
|
<p>
|
|
|
|
Sets the minimum value that the sliders represents to
|
|
<var>maxValue</var>.
|
|
</p>
|
|
<hr />
|
|
<h3>setNumberOfTickMarks:</a></h3>
|
|
- (void) <b>setNumberOfTickMarks:</b> (int)numberOfTickMarks;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>setTickMarkPosition:</a></h3>
|
|
- (void) <b>setTickMarkPosition:</b> (NSTickMarkPosition)position;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>setTitle:</a></h3>
|
|
- (void) <b>setTitle:</b> (NSString*)title;<br />
|
|
<p>
|
|
|
|
Sets the <var>title</var> of the slider to
|
|
<var>barTitle</var>. This <var>title</var> is
|
|
displayed on the slider's track, behind the knob.
|
|
</p>
|
|
<hr />
|
|
<h3>setTitleCell:</a></h3>
|
|
- (void) <b>setTitleCell:</b> (<a href="NSCell.html#class$NSCell">NSCell</a>*)aCell;<br />
|
|
<p>
|
|
|
|
Sets the cell used to draw the title to
|
|
<var>titleCell</var>.
|
|
</p>
|
|
<hr />
|
|
<h3>setTitleColor:</a></h3>
|
|
- (void) <b>setTitleColor:</b> (<a href="NSColor.html#class$NSColor">NSColor</a>*)color;<br />
|
|
<p>
|
|
|
|
Sets the colour with which the title will be drawn to
|
|
<var>color</var>.
|
|
</p>
|
|
<hr />
|
|
<h3>setTitleFont:</a></h3>
|
|
- (void) <b>setTitleFont:</b> (<a href="NSFont.html#class$NSFont">NSFont</a>*)font;<br />
|
|
<p>
|
|
|
|
Sets the <var>font</var> with which the title will be
|
|
drawm to <var>font</var>.
|
|
</p>
|
|
<hr />
|
|
<h3>tickMarkPosition</a></h3>
|
|
- (NSTickMarkPosition) <b>tickMarkPosition</b>;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>tickMarkValueAtIndex:</a></h3>
|
|
- (double) <b>tickMarkValueAtIndex:</b> (int)index;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>title</a></h3>
|
|
- (NSString*) <b>title</b>;<br />
|
|
<p>
|
|
|
|
</p>
|
|
<hr />
|
|
<h3>titleCell</a></h3>
|
|
- (id) <b>titleCell</b>;<br />
|
|
<p>
|
|
|
|
Returns the cell used to draw the title.
|
|
</p>
|
|
<hr />
|
|
<h3>titleColor</a></h3>
|
|
- (<a href="NSColor.html#class$NSColor">NSColor</a>*) <b>titleColor</b>;<br />
|
|
<p>
|
|
|
|
Returns the colour used to draw the title.
|
|
</p>
|
|
<hr />
|
|
<h3>titleFont</a></h3>
|
|
- (<a href="NSFont.html#class$NSFont">NSFont</a>*) <b>titleFont</b>;<br />
|
|
<p>
|
|
|
|
Returns the font used to draw the title.
|
|
</p>
|
|
<hr />
|
|
<h3>trackRect</a></h3>
|
|
- (NSRect) <b>trackRect</b>;<br />
|
|
<p>
|
|
|
|
Returns the rect of the track, minus the bezel.
|
|
</p>
|
|
<hr />
|
|
</body>
|
|
</html>
|