New def of GSDefineGState

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13328 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2002-04-02 21:54:22 +00:00
parent b545d98985
commit 55f52faac4
5 changed files with 29 additions and 3 deletions

View file

@ -876,21 +876,30 @@ 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 */
- (void) DPSgrestore
{
[self subclassResponsibility: _cmd];
}
/** Saves (pushes) a copy of the current gstate information onto the
gstate stack. This saves drawing information contained in the
gstate, such as the current path, ctm and colors. */
- (void) DPSgsave
{
[self subclassResponsibility: _cmd];
}
/** Depreciated. Use -DPSDefineGState to create a gstate it and tag it
with a id tag. */
- (void) DPSgstate
{
[self subclassResponsibility: _cmd];
@ -901,22 +910,33 @@ NSGraphicsContext *GSCurrentContext()
[self subclassResponsibility: _cmd];
}
/** Makes the gstate indicated by the tag gst the current gstate. Note
that the gstate is copied, so that changes to either gstate do not
affect the other. */
- (void) DPSsetgstate: (int)gst
{
[self subclassResponsibility: _cmd];
}
/** Creates a copy of the current gstate and associates it with a tag,
which is given in the return value. This tag can later be used in
-DPSsetgstate: to set the gstate as being current again. */
- (int) GSDefineGState
{
[self subclassResponsibility: _cmd];
return 0;
}
/** Disassociates the tag gst with it's gstate and destroys the gstate
object. The tag will no longer be valid and should not be used to
refer to the gstate again. */
- (void) GSUndefineGState: (int)gst
{
[self subclassResponsibility: _cmd];
}
/** Replaces the gstate refered to by the tag gst with the current
gstate. The former gstate is destroyed. */
- (void) GSReplaceGState: (int)gst
{
[self subclassResponsibility: _cmd];