![]() 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>NSColorPanel</title> </head> <body> <font face="serif"> <a href="Gui.html">Up</a> <br /> <h1><a name="title$NSColorPanel">NSColorPanel</a></h1> <h3>Authors</h3> <dl> <dt>Scott Christley (<a href="mailto:scottc@net-community.com"><code>scottc@net-community.com</code></a>)</dt> <dd> </dd> </dl> <blockquote> System generic color panel </blockquote> <p><b>Copyright:</b> (C) 1996 Free Software Foundation, Inc.</p> <div> <hr width="50%" align="left" /> <h3>Contents -</h3> <ol> <li> <a href="#001000000000">Software documentation for the NSColorPanel class</a> </li> <li> <a href="#002000000000">Software documentation for the NSApplication(NSColorPanel) category</a> </li> </ol> <hr width="50%" align="left" /> </div> <h1><a name="001000000000"> Software documentation for the NSColorPanel class </a></h1> <h2><a name="class$NSColorPanel">NSColorPanel</a> : <a rel="gsdoc" href="NSPanel.html#class$NSPanel">NSPanel</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>AppKit/NSColorPanel.h</dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> TODO Description </p> <p> </div> <hr width="50%" align="left" /> <a href="#_NSColorPanel_ivars">Instance Variables</a> <br/><br/> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel+dragColor$withEvent$fromView$">+dragColor:withEvent:fromView:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel+setPickerMask$">+setPickerMask:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel+setPickerMode$">+setPickerMode:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel+sharedColorPanel">+sharedColorPanel</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel+sharedColorPanelExists">+sharedColorPanelExists</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-accessoryView">-accessoryView</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-alpha">-alpha</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-attachColorList$">-attachColorList:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-color">-color</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-detachColorList$">-detachColorList:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-isContinuous">-isContinuous</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-mode">-mode</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-setAccessoryView$">-setAccessoryView:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-setAction$">-setAction:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-setColor$">-setColor:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-setContinuous$">-setContinuous:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-setMode$">-setMode:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-setShowsAlpha$">-setShowsAlpha:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-setTarget$">-setTarget:</a></li> <li><a rel="gsdoc" href="NSColorPanel.html#method$NSColorPanel-showsAlpha">-showsAlpha</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSColorPanel+dragColor$withEvent$fromView$">dragColor: withEvent: fromView: </a></h3> + (BOOL) <b>dragColor:</b> (<a rel="gsdoc" href="NSColor.html#class$NSColor">NSColor</a>*)aColor<b> withEvent:</b> (<a rel="gsdoc" href="NSEvent.html#class$NSEvent">NSEvent</a>*)anEvent<b> fromView:</b> (<a rel="gsdoc" href="NSView.html#class$NSView">NSView</a>*)sourceView;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Drags <var>aColor</var> from <var>sourceView</var> at the location give by the event <var>anEvent</var> ( <a rel="gsdoc" href="NSView.html#method$NSView-convertPoint$fromView$">[NSView -convertPoint:fromView:]</a> ). The type declared into the pasteboard is NSColorPboardType </p> <p> </p> <p> See Also: <a rel="gsdoc" href="NSView.html#method$NSView-convertPoint$fromView$">[NSView -convertPoint:fromView:]</a> [NSView-dragImage:at:offset:event:pasteboard:source:slideBack: </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel+setPickerMask$">setPickerMask: </a></h3> + (void) <b>setPickerMask:</b> (int)mask;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel+setPickerMode$">setPickerMode: </a></h3> + (void) <b>setPickerMode:</b> (int)mode;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel+sharedColorPanel">sharedColorPanel </a></h3> + (<a rel="gsdoc" href="#class$NSColorPanel">NSColorPanel</a>*) <b>sharedColorPanel</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Creates (if needed) and returns the shared NSColorPanel. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel+sharedColorPanelExists">sharedColorPanelExists </a></h3> + (BOOL) <b>sharedColorPanelExists</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns whether the NSColorPanel has been already created. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-accessoryView">accessoryView </a></h3> - (<a rel="gsdoc" href="NSView.html#class$NSView">NSView</a>*) <b>accessoryView</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the NSColorPanel's accessory view if it exists, <code>nil</code> otherwise. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-setAccessoryView$"> -setAccessoryView: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-alpha">alpha </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/TypesAndConstants.html#type$CGFloat">CGFloat</a>) <b>alpha</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the alpha value of the NSColorPanel. Returns 1.0 if the NSColorPanel does not show alpha </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-showsAlpha"> -showsAlpha </a> <a rel="gsdoc" href="#method$NSColorPanel-setShowsAlpha$"> -setShowsAlpha: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-attachColorList$">attachColorList: </a></h3> - (void) <b>attachColorList:</b> (<a rel="gsdoc" href="NSColorList.html#class$NSColorList">NSColorList</a>*)aColorList;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-color">color </a></h3> - (<a rel="gsdoc" href="NSColor.html#class$NSColor">NSColor</a>*) <b>color</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the current NSColor displayed by the NSColorPanel. </p> <p> </p> <p> See Also : <a rel="gsdoc" href="#method$NSColorPanel-setColor$"> -setColor: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-detachColorList$">detachColorList: </a></h3> - (void) <b>detachColorList:</b> (<a rel="gsdoc" href="NSColorList.html#class$NSColorList">NSColorList</a>*)aColorList;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-isContinuous">isContinuous </a></h3> - (BOOL) <b>isContinuous</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns whether the NSColorPanel continuously sends its action message. </p> <p> </p> <p> See Also: -setContinuous:-setAction: <a rel="gsdoc" href="#method$NSColorPanel-setTarget$"> -setTarget: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-mode">mode </a></h3> - (int) <b>mode</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the current mode of the NSColorPanel. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-setMode$"> -setMode: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-setAccessoryView$">setAccessoryView: </a></h3> - (void) <b>setAccessoryView:</b> (<a rel="gsdoc" href="NSView.html#class$NSView">NSView</a>*)aView;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the accessoryView to a view. The old view (if exists) will be removed (and released). You need to retain it if you want to use it later </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-accessoryView"> -accessoryView </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-setAction$">setAction: </a></h3> - (void) <b>setAction:</b> (SEL)aSelector;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the NSColorPanl action method to <var>aSelector</var> The action message is usally send in <a rel="gsdoc" href="#method$NSColorPanel-setColor$"> -setColor: </a> , when the picker is updated, when a new picker is shown, when the alpha is changed or when one of the color wells at the bottom is selected. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-setColor$">setColor: </a></h3> - (void) <b>setColor:</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 NSColor displayed to <var>aColor</var>. This method posts a NSColorPanelColorDidChangeNotification notification if needed. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-color">-color</a> <a rel="gsdoc" href="NSColorWell.html#method$NSColorWell-setColor$"> [NSColorWell -setColor:] </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-setContinuous$">setContinuous: </a></h3> - (void) <b>setContinuous:</b> (BOOL)flag;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets whether the NSColorPanel sends continuously action messages </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-isContinuous"> -isContinuous </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-setMode$">setMode: </a></h3> - (void) <b>setMode:</b> (int)mode;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Set the NSColorPanel <var>mode</var> to <var>mode</var>. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-mode">-mode</a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-setShowsAlpha$">setShowsAlpha: </a></h3> - (void) <b>setShowsAlpha:</b> (BOOL)flag;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets whether the NSColorPanel shows alpha values and the alpha slider. </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-showsAlpha"> -showsAlpha </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-setTarget$">setTarget: </a></h3> - (void) <b>setTarget:</b> (id)anObject;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the target object to <var>anObject</var> </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSColorPanel-showsAlpha">showsAlpha </a></h3> - (BOOL) <b>showsAlpha</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns whether the NSColorPanel shows alpha values and the alpha slider </p> <p> </p> <p> See Also: <a rel="gsdoc" href="#method$NSColorPanel-setShowsAlpha$"> -setShowsAlpha: </a> </p> <p> </div> <hr width="25%" align="left" /> </div> <a name="_NSColorPanel_ivars"/> <br/><hr width="50%" align="left" /> <h2>Instance Variables for NSColorPanel Class</h2> <h3><a name="ivariable$NSColorPanel*_accessoryView">_accessoryView</a></h3> @protected NSView* <b>_accessoryView</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_action">_action</a></h3> @protected SEL <b>_action</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_alphaSlider">_alphaSlider</a></h3> @protected NSSlider* <b>_alphaSlider</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_colorWell">_colorWell</a></h3> @protected NSColorWell* <b>_colorWell</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_currentPicker">_currentPicker</a></h3> @protected id<NSColorPickingCustom,NSColorPickingDefault> <b>_currentPicker</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_isContinuous">_isContinuous</a></h3> @protected BOOL <b>_isContinuous</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_magnifyButton">_magnifyButton</a></h3> @protected NSButton* <b>_magnifyButton</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_pickerBox">_pickerBox</a></h3> @protected NSBox* <b>_pickerBox</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_pickerMatrix">_pickerMatrix</a></h3> @protected NSMatrix* <b>_pickerMatrix</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_pickers">_pickers</a></h3> @protected NSMutableArray* <b>_pickers</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_showsAlpha">_showsAlpha</a></h3> @protected BOOL <b>_showsAlpha</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_splitView">_splitView</a></h3> @protected NSSplitView* <b>_splitView</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_target">_target</a></h3> @protected id <b>_target</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSColorPanel*_topView">_topView</a></h3> @protected NSView* <b>_topView</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <br/><hr width="50%" align="left" /><br/> <h1><a name="002000000000"> Software documentation for the NSApplication(NSColorPanel) category </a></h1> <h2><a rel="gsdoc" href="NSApplication.html#class$NSApplication">NSApplication</a>(<a name="category$NSApplication(NSColorPanel)">NSColorPanel</a>)</h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>AppKit/NSColorPanel.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="NSColorPanel.html#method$NSApplication(NSColorPanel)-orderFrontColorPanel$">-orderFrontColorPanel:</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSApplication(NSColorPanel)-orderFrontColorPanel$">orderFrontColorPanel: </a></h3> - (void) <b>orderFrontColorPanel:</b> (id)sender;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <br /> <a href="Gui.html">Up</a> </font> </body> </html>