Remove old grpahics funcs, Update window's defs

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13417 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2002-04-10 22:04:39 +00:00
parent c26e8587c1
commit 6f0771768b
12 changed files with 42 additions and 72 deletions

View file

@ -39,6 +39,7 @@
#include <Foundation/NSSet.h>
#include <Foundation/NSThread.h>
#include <Foundation/NSZone.h>
#include "AppKit/AppKitExceptions.h"
#include "AppKit/NSGraphicsContext.h"
#include "AppKit/NSAffineTransform.h"
#include "AppKit/NSWindow.h"
@ -463,14 +464,10 @@ NSGraphicsContext *GSCurrentContext()
/* ----------------------------------------------------------------------- */
/* Gstate Handling */
/* ----------------------------------------------------------------------- */
methodTable.DPScurrentgstate_ =
GET_IMP(@selector(DPScurrentgstate:));
methodTable.DPSgrestore =
GET_IMP(@selector(DPSgrestore));
methodTable.DPSgsave =
GET_IMP(@selector(DPSgsave));
methodTable.DPSgstate =
GET_IMP(@selector(DPSgstate));
methodTable.DPSinitgraphics =
GET_IMP(@selector(DPSinitgraphics));
methodTable.DPSsetgstate_ =
@ -654,6 +651,16 @@ NSGraphicsContext *GSCurrentContext()
return mptr;
}
- (id) subclassResponsibility: (SEL)aSel
{
[NSException raise: GSWindowServerInternalException
format: @"subclass %s(%s) should override %s",
object_get_class_name(self),
GSObjCIsInstance(self) ? "instance" : "class",
sel_get_name(aSel)];
return nil;
}
@end
@ -876,12 +883,6 @@ NSGraphicsContext *GSCurrentContext()
/* Gstate Handling */
/* ----------------------------------------------------------------------- */
/** Depcreciated. Same as -GSReplaceGState: */
- (void) DPScurrentgstate: (int)gst
{
[self subclassResponsibility: _cmd];
}
/** Pops a previously saved gstate from the gstate stack and makes it
current. Drawing information in the previously saved gstate
becomes the current information */
@ -898,13 +899,6 @@ NSGraphicsContext *GSCurrentContext()
[self subclassResponsibility: _cmd];
}
/** Depreciated. Use -DPSDefineGState to create a gstate it and tag it
with a id tag. */
- (void) DPSgstate
{
[self subclassResponsibility: _cmd];
}
- (void) DPSinitgraphics
{
[self subclassResponsibility: _cmd];