Improved documentation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22038 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fabien Vallon 2005-11-18 15:12:37 +00:00
parent b566e2c30b
commit 9a1ecdba41
2 changed files with 36 additions and 43 deletions

View file

@ -6,6 +6,9 @@
* Source/NSSavePanel.m: Improved documentation * Source/NSSavePanel.m: Improved documentation
* Source/NSOpenPanel.m: Improved documentation * Source/NSOpenPanel.m: Improved documentation
* Source/NSApplication.m: Improved documentation * Source/NSApplication.m: Improved documentation
* Source/NSBitmapImageRep.m: Improved documentation
* Source/NSBox.m: Improved documentation
2005-11-17 fabien <fabien@sonappart.net> 2005-11-17 fabien <fabien@sonappart.net>

View file

@ -50,7 +50,6 @@
* <p>EXPLAINS NSBox</p> * <p>EXPLAINS NSBox</p>
*<p> TODO : explains how is resized the rects (margins etc...) </p> *<p> TODO : explains how is resized the rects (margins etc...) </p>
*/ */
@implementation NSBox @implementation NSBox
// //
@ -105,20 +104,19 @@
return _border_rect; return _border_rect;
} }
/** /**<p>Returns the border type. See <ref type="type" id="NSBorderType">
* <p>Returns the border type. See NSBorderType for more informations</p> NSBorderType</ref> for more informations. The default border type is
* <p>See Also: -setBorderType:</p> NSGrooveBorder</p><p>See Also: -setBorderType:</p>
*/ */
- (NSBorderType) borderType - (NSBorderType) borderType
{ {
return _border_type; return _border_type;
} }
/** /**<p>Sets the border type to aType, resizes the content view frame if needed,
* <p>Sets the border type to aType, resizes the content view frame if needed, and marks self for display. See <ref type="type" id="NSBorderType">
* and sends a -setNeedsDisplay: message. See NSBorderType for more NSBorderType</ref> for more informations. The default boder type is
* informations</p> NSGrooveBorder.</p><p>See Also: -borderType</p>
*<p>See Also: -borderType</p>
*/ */
- (void) setBorderType: (NSBorderType)aType - (void) setBorderType: (NSBorderType)aType
{ {
@ -130,16 +128,14 @@
} }
} }
/** /** <p> Sets the title cell to aString, resizes the content view frame
* <p> Sets the title (cell) to aString, resizes the content view frame and marks self for display.</p>
* and send a -setNeedsDisplay: message.</p> <p>Warning: This method does not implement the Cocoa behaviour</p>
*<p>Warning: This method does not implement the Cocoa behaviour</p> <p>See Also: -title</p>
*<p>See Also: -title</p>
*/ */
// TODO: implement the macosx behaviour for setTitle:
- (void) setTitle: (NSString *)aString - (void) setTitle: (NSString *)aString
{ {
// TODO: implement the macosx behaviour for setTitle:
[_cell setStringValue: aString]; [_cell setStringValue: aString];
[_content_view setFrame: [self calcSizesAllowingNegative: NO]]; [_content_view setFrame: [self calcSizesAllowingNegative: NO]];
[self setNeedsDisplay: YES]; [self setNeedsDisplay: YES];
@ -153,8 +149,8 @@
} }
/** /**
*<p>Sets the font of the title (cell) to fontObj, resizes *<p>Sets the font of the title cell to fontObj, resizes
* the content view frame if needed and sends a -setNeedsDisplay: message</p> * the content view frame if needed and marks self for display.</p>
*<p>See Also: -titleFont</p> *<p>See Also: -titleFont</p>
*/ */
- (void) setTitleFont: (NSFont *)fontObj - (void) setTitleFont: (NSFont *)fontObj
@ -164,12 +160,10 @@
[self setNeedsDisplay: YES]; [self setNeedsDisplay: YES];
} }
/** /**<p>Sets the title cell position to aPosition, resizes the content
*<p>Sets the title (cell) position to aPosition, resizes the content *view frame and marks self for display. See <ref type="type"
*view frame if needed and sends a -setNeedsDisplay: message. id="NSTitlePosition">NSTitlePosition</ref> for more information.
*See NSTitlePosition for more information</p> The default postion is NSAtTop.</p> <p>See Also: -titlePosition</p>
*<p>See Also: -titlePosition</p>
*
*/ */
- (void) setTitlePosition: (NSTitlePosition)aPosition - (void) setTitlePosition: (NSTitlePosition)aPosition
{ {
@ -181,8 +175,7 @@
} }
} }
/** /**<p>Returns the title cell string value</p>
*<p>Returns the title (cell) string</p>
*<p>See Also: -setTitle:</p> *<p>See Also: -setTitle:</p>
*/ */
- (NSString*) title - (NSString*) title
@ -199,8 +192,7 @@
return _cell; return _cell;
} }
/** /**<p>Returns the title cell font</p>
*<p>Returns the the box title font</p>
*<p>See Also: -setTitleFont:</p> *<p>See Also: -setTitleFont:</p>
*/ */
- (NSFont*) titleFont - (NSFont*) titleFont
@ -208,9 +200,9 @@
return [_cell font]; return [_cell font];
} }
/** /**<p>Returns the title position. See <ref type="type" id="NSTitlePosition">
*<p>Returns the title position. See NSTitlePosition for more informations</p> NSTitlePosition</ref> for more information. The default position is NSAtTop.
*<p>See Also: -setTitlePosition:</p> </p><p>See Also: -setTitlePosition:</p>
*/ */
- (NSTitlePosition) titlePosition - (NSTitlePosition) titlePosition
{ {
@ -234,12 +226,11 @@
return _content_view; return _content_view;
} }
/** /**<p>Returns an NSSize containing the interior margins of the receiver.
*<p>Returns an NSSize containing the interior margins of the receiver. An NSBox's content view margins are empty space that is subtracted
* An NSBox's content view margins are empty space that is subtracted from the top, bottom, and sides as padding between the inside of the box
* from the top, bottom, and sides as padding between the inside of the box and the frame of its content view</p>
* and the frame of its content view</p> <p> See Also: -setContentViewMargins:</p>
*<p> See Also: -setContentViewMargins:</p>
*/ */
- (NSSize) contentViewMargins - (NSSize) contentViewMargins
{ {
@ -263,12 +254,11 @@
} }
} }
/** /**<p>Sets the NSSize containing the interior margins to offsetSize.
*<p>Sets the margins size of the content view to offsetSize, resized the An NSBox's content view margins are empty space that is subtracted
*content view frame if needed and sends a -setNeedsDisplay message. from the top, bottom, and sides as padding between the inside of the box
* See -contentView for more informations to know how the contentView frame and the frame of its content view</p>
*is resized</p> <p> See Also: -contentViewMargins</p>
*<p>See Also: -contentViewMargins</p>
*/ */
- (void) setContentViewMargins: (NSSize)offsetSize - (void) setContentViewMargins: (NSSize)offsetSize
{ {