Improved docuentation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22136 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fabien_ 2005-12-04 19:20:44 +00:00
parent 78ccd6c023
commit 6e80e2f76e
2 changed files with 8 additions and 3 deletions

View file

@ -3,6 +3,7 @@
* Source/NSColorPanel.m: Improved documentation, various cleanups * Source/NSColorPanel.m: Improved documentation, various cleanups
* Source/NSColor.m: Improved documentation * Source/NSColor.m: Improved documentation
* Source/NSClipView.m: Improved documentation * Source/NSClipView.m: Improved documentation
* Source/NSColorWell.m: Improved documentation
2005-12-04 Richard Frith-Macdonald <rfm@gnu.org> 2005-12-04 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -74,7 +74,7 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
/**<p>Activates the NSColorWell and displays the NSColorPanel with the current /**<p>Activates the NSColorWell and displays the NSColorPanel with the current
NSColorWell's color. The NSColorWell can take color from the NSColorPanel. NSColorWell's color. The NSColorWell can take color from the NSColorPanel.
If exclusive is YES other NSColorWells are desacivated If exclusive is YES other NSColorWells are desacivated
(through notifications)</p><p>See Also: -deactivate</p> (through notifications).</p><p>See Also: -deactivate</p>
*/ */
- (void) activate: (BOOL)exclusive - (void) activate: (BOOL)exclusive
{ {
@ -220,6 +220,9 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
[self drawWellInside: NSIntersectionRect(aRect, clipRect)]; [self drawWellInside: NSIntersectionRect(aRect, clipRect)];
} }
/**<p>Draws the NSColorWell inside the rectangle <var>insideRect</var>.</p>
<p>See Also: [NSColor-drawSwatchInRect:]</p>
*/
- (void) drawWellInside: (NSRect)insideRect - (void) drawWellInside: (NSRect)insideRect
{ {
if (NSIsEmptyRect(insideRect)) if (NSIsEmptyRect(insideRect))
@ -351,7 +354,7 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
} }
/** <p>Sets the NSColorWell to color. Sets the NSColorPanel if active, /** <p>Sets the NSColorWell to color. Sets the NSColorPanel if active,
notify the target of color change and marks self to display</p> notify the target that the color changed and marks self for display.</p>
<p>See Also: -color</p> <p>See Also: -color</p>
*/ */
- (void) setColor: (NSColor *)color - (void) setColor: (NSColor *)color
@ -379,7 +382,8 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
_target = target; _target = target;
} }
/** <p>Sets the NSColorWell's color to the sender color</p> /** <p>Sets the NSColorWell's color to the sender color.</p>
<p>See Also: -setColor: </p>
*/ */
- (void) takeColorFrom: (id)sender - (void) takeColorFrom: (id)sender
{ {