* externs.m further defined the NSStringAdditions globals.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2916 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Felipe A. Rodriguez 1998-08-12 03:57:08 +00:00
parent 3769b37842
commit 1dc2f4ce80
3 changed files with 35 additions and 15 deletions

View file

@ -1,4 +1,8 @@
<<<<<<< ChangeLog <<<<<<< ChangeLog
Tues Aug 11 1998 Felipe A. Rodriguez <far@ix.netcom.com>
* externs.m further defined the NSStringAdditions globals.
Sat Aug 8 1998 Felipe A. Rodriguez <far@ix.netcom.com> Sat Aug 8 1998 Felipe A. Rodriguez <far@ix.netcom.com>
* added NSStringDrawing.m and NSStringDrawing.h which implement the * added NSStringDrawing.m and NSStringDrawing.h which implement the

View file

@ -37,21 +37,22 @@
// the respective property in a text attributes // the respective property in a text attributes
// dictionary. if the key is not in the dictionary the // dictionary. if the key is not in the dictionary the
// default value is assumed // default value is assumed
NSString *NSFontAttributeName; // NSFont, defaults to Helvetica 12 extern NSString *NSFontAttributeName; // NSFont, defaults to Helvetica 12
NSString *NSParagraphStyleAttributeName; // NSParagraphStyle, default to // NSParagraphStyle, default is defaultParagraphStyle
// defaultParagraphStyle extern NSString *NSParagraphStyleAttributeName;
NSString *NSForegroundColorAttributeName; // NSColor, default is blackColor // NSColor, default is blackColor
NSString *NSUnderlineStyleAttributeName; // int, default 0 = no underline extern NSString *NSForegroundColorAttributeName;
NSString *NSSuperscriptAttributeName; // int, default 0 // int, default 0 = no underline
NSString *NSBackgroundColorAttributeName; // NSColor,default nil =no back col extern NSString *NSUnderlineStyleAttributeName;
NSString *NSAttachmentAttributeName; // NSTextAttachment, default nil extern NSString *NSSuperscriptAttributeName; // int, default 0
NSString *NSLigatureAttributeName; // int, default 1 // NSColor, default nil = no background color
// 1 = default ligatures, extern NSString *NSBackgroundColorAttributeName;
// 0 = no ligatures, extern NSString *NSAttachmentAttributeName; // NSTextAttachment, default nil
// 2 = all ligatures // int, default 1, 0 = no ligatures, 2 = all ligatures
NSString *NSBaselineOffsetAttributeName; // float, default 0 in points; extern NSString *NSLigatureAttributeName;
// offset from baseline, extern NSString *NSBaselineOffsetAttributeName; // float, default 0 in points;
NSString *NSKernAttributeName; // float, amount to modify default // float, offset from baseline,
extern NSString *NSKernAttributeName; // amount to modify default
// kerning, if 0 kerning is off // kerning, if 0 kerning is off
enum enum
{ // Currently supported values for { // Currently supported values for

View file

@ -7,6 +7,8 @@
Author: Scott Christley <scottc@net-community.com> Author: Scott Christley <scottc@net-community.com>
Date: August 1997 Date: August 1997
Author: Felipe A. Rodriguez <far@ix.netcom.com>
Date: Aug 1998
This file is part of the GNUstep GUI Library. This file is part of the GNUstep GUI Library.
@ -303,3 +305,16 @@ NSString *NSWorkspaceWillPowerOffNotification =
NSString *NSWorkspaceWillUnmountNotification = NSString *NSWorkspaceWillUnmountNotification =
@"NSWorkspaceWillUnmountNotification"; @"NSWorkspaceWillUnmountNotification";
//
// NSStringDrawing NSString additions
//
NSString *NSFontAttributeName = @"NSFontAttributeName";
NSString *NSParagraphStyleAttributeName = @"NSParagraphStyleAttributeName";
NSString *NSForegroundColorAttributeName = @"NSForegroundColorAttributeName";
NSString *NSUnderlineStyleAttributeName = @"NSUnderlineStyleAttributeName";
NSString *NSSuperscriptAttributeName = @"NSSuperscriptAttributeName";
NSString *NSBackgroundColorAttributeName = @"NSBackgroundColorAttributeName";
NSString *NSAttachmentAttributeName = @"NSAttachmentAttributeName";
NSString *NSLigatureAttributeName = @"NSLigatureAttributeName";
NSString *NSBaselineOffsetAttributeName = @"NSBaselineOffsetAttributeName";
NSString *NSKernAttributeName = @"NSKernAttributeName";