* NSAttributedString.m and NSAttributedString.h remove.

* NSStringDrawing.m and NSStringDrawing.h add NSAttributedString interface
	and implementation.  Implement NSAttributedString's size method and
	optimize tab width calculation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3352 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
far 1998-11-30 09:40:01 +00:00
parent 2bec406f7f
commit b77483cabe
13 changed files with 87 additions and 187 deletions

View file

@ -86,17 +86,17 @@ GSContext *context;
return context;
}
+ (GSContext *) currentContext { return nil;}
+ (GSContext *) currentContext { return nil;} // backend
+ (void) setCurrentContext: (GSContext *)context
{
[self subclassResponsibility:_cmd];
[self subclassResponsibility:_cmd]; // backend
}
+ (void) destroyContext:(GSContext *) context
{ // if concrete class is not
if(_concreteClass != [GSContext class]) // a GSContext invoke it's
[_concreteClass destroyContext: context]; // equivalent method first
[_concreteClass destroyContext: context]; // version of method first
else
[self _destroyContext: context];
}
@ -114,9 +114,9 @@ int top; // deallocated with the
//
// Instance methods
//
- init
{
return [self initWithContextInfo: nil];
- init
{
return [self initWithContextInfo: nil];
}
- initWithContextInfo: (NSDictionary *)info
@ -132,15 +132,8 @@ int top; // deallocated with the
return self;
}
- (BOOL)isDrawingToScreen
{
return NO;
}
- (NSMutableData *)mutableData
{
return context_data;
}
- (BOOL)isDrawingToScreen { return NO; }
- (NSMutableData *)mutableData { return context_data; }
- (void) destroy // remove self from context
{ // list so that self gets