Documentation patch by <stefanbidi@gmail.com>.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24401 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-01-23 14:44:35 +00:00
parent e344345023
commit 3ed672d301
4 changed files with 51 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2007-01-23 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSBox.h:
* Headers/AppKit/NSButtonCell.h:
Add documentation for NSTitlePosition and NSButtonType.
Patch by <stefanbidi@gmail.com>.
* Source/GSTheme.m (-buttonBorderForStyle:state:): Removed unused variable.
2007-01-23 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Additions/GNUstepGUI/GSTheme.h,

View file

@ -36,6 +36,17 @@
@class NSString;
@class NSFont;
/** Title positioning of an NSBox:
* <list>
* <item>NSNoTitle</item>
* <item>NSAboveTop</item>
* <item>NSAtTop</item>
* <item>NSBelowTop</item>
* <item>NSAboveBottom</item>
* <item>NSAtBottom</item>
* <item>NSBelowBottom</item>
* </list>
*/
typedef enum _NSTitlePosition {
NSNoTitle,
NSAboveTop,

View file

@ -37,6 +37,37 @@
@class NSFont;
@class NSSound;
/** Type of button in an NSButton or NSButtonCell.
* <deflist>
* <term>NSMomentaryPushInButton</term>
* <desc><em>Default button type!</em> Pushed in and lit when mouse is
* down, pushed out and unlit when mouse is release.</desc>
* <term>NSPushOnPushOffButton</term>
* <desc>Used to show/store ON / OFF states. In when ON, out when OFF.</desc>
* <term>NSToggleButton</term>
* <desc>Like NSPushOnPushOffButton but images is changed for ON and
* OFF state.</desc>
* <term>NSSwitchButton</term>
* <desc>A borderless NSToggleButton</desc>
* <term>NSRadioButton</term>
* <desc>A type of NSSwitchButton similar to a Microsoft Windows radio
* button.</desc>
* <term>NSMomentaryChangeButton</term>
* <desc>Image of button changes on mouse down and then changes back
* once released.</desc>
* <term>NSOnOffButton</term>
* <desc>Simple ON / OFF button. First click lights the button,
* seconds click unlights it.</desc>
* <term>NSMomentaryLightButton</term>
* <desc>Like NSMomentaryPushInButton but button is not pushed
* in on mouse down</desc>
*
* <term>NSMomentaryLight</term>
* <desc>Same as NSMomentaryPushInButton. Has been depricated in Cocoa.</desc>
* <term>NSMomentaryPushButton</term>
* <desc>Same as NSMomentaryLightButton. Has been depricated in
* Cocoa.</desc>
*/
typedef enum _NSButtonType {
NSMomentaryLightButton,
NSPushOnPushOffButton,

View file

@ -745,7 +745,6 @@ static NSNull *null = nil;
state: (GSThemeControlState)state
{
GSDrawTiles *tiles = nil;
NSRect interiorFrame;
if (state == GSThemeNormalState)
{