mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:40:38 +00:00
* 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:
parent
2bec406f7f
commit
b77483cabe
13 changed files with 87 additions and 187 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue