Added DPSdocedited

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5384 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-12-06 13:32:01 +00:00
parent 4a4c22fdc0
commit 93ac0b67a4
6 changed files with 34 additions and 1 deletions

View file

@ -1,3 +1,12 @@
Mon Dec 6 13:32:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Additional DPS operator for telling backend to mark a document
window as being edited/up-to-date.
* Source/NSGraphicsContext.m: Added DPSdocedited()
* Headers/AppKit/NSGraphicsContext.h: ditto
* Headers/AppKit/DPSOperators.h: ditto
* Headers/AppKit/GSMethodTable.h: ditto
Sat Dec 4 19:41:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Additional DPS operator in preparation for fixing window code to

View file

@ -1,7 +1,7 @@
/* DPSOperators - Drawing engine operators that require context
Copyright (C) 1999 Free Software Foundation, Inc.
Written by: Richard frith-Macdonald <richard@brainstorm.co.uk>
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
Based on code by Adam Fedor
Date: Feb 1999
@ -916,6 +916,10 @@ static inline void
DPSstyleoffsets(GSCTXT *ctxt, float *l, float *r, float *t, float *b, int style)
__attribute__((unused));
static inline void
DPSdocedited(GSCTXT *ctxt, int edited, int window)
__attribute__((unused));
/* ----------------------------------------------------------------------- */
/* Color operations */
/* ----------------------------------------------------------------------- */
@ -2443,6 +2447,13 @@ DPSstyleoffsets(GSCTXT *ctxt, float *l, float *r, float *t, float *b, int style)
(ctxt, @selector(DPSstyleoffsets:::::), l, r, t, b, style);
}
static inline void
DPSdocedited(GSCTXT *ctxt, int edited, int window)
{
(ctxt->methods->DPSdocedited__)
(ctxt, @selector(DPSdocedited::), edited, window);
}
/* ----------------------------------------------------------------------- */
/* GNUstep Event and other I/O extensions */
/* ----------------------------------------------------------------------- */

View file

@ -497,6 +497,8 @@ typedef struct {
(NSGraphicsContext*, SEL, float, float, float, float, float, float, void *);
void (*DPSstyleoffsets_____)
(NSGraphicsContext*, SEL, float*, float*, float*, float*, int);
void (*DPSdocedited__)
(NSGraphicsContext*, SEL, int, int);
/* ----------------------------------------------------------------------- */
/* GNUstep Event and other I/O extensions */
/* ----------------------------------------------------------------------- */

View file

@ -407,6 +407,7 @@ NSGraphicsContext *GSCurrentContext();
- (void) DPSimagecursor: (float) hotx : (float) hoty : (float) w : (float) h : (int) colors : (const char *) image : (void **) cid ;
- (void) DPSsetcursorcolor: (float) fr : (float) fg : (float) fb : (float) br : (float) bg : (float) bb : (void *) cid ;
- (void) DPSstyleoffsets: (float*) l : (float*) r : (float*) t : (float*) b : (int) style ;
- (void) DPSdocedited: (int) edited : (int) window ;
/* ----------------------------------------------------------------------- */
/* GNUstep Event and other I/O extensions */

View file

@ -807,6 +807,10 @@ NSGraphicsContext *GSCurrentContext()
GET_IMP(@selector(DPSimagecursor:::::::));
methodTable.DPSsetcursorcolor_______ =
GET_IMP(@selector(DPSsetcursorcolor:::::::));
methodTable.DPSstyleoffsets_____ =
GET_IMP(@selector(DPSstyleoffsets:::::));
methodTable.DPSdocedited__ =
GET_IMP(@selector(DPSdocedited::));
/* ----------------------------------------------------------------------- */
/* GNUstep Event and other I/O extensions */
/* ----------------------------------------------------------------------- */
@ -1957,6 +1961,11 @@ NSGraphicsContext *GSCurrentContext()
[self subclassResponsibility: _cmd];
}
- (void) DPSdocedited: (int) edited : (int) window ;
{
[self subclassResponsibility: _cmd];
}
/* ----------------------------------------------------------------------- */
/* GNUstep Event and other I/O extensions */
/* ----------------------------------------------------------------------- */

View file

@ -1436,6 +1436,7 @@ resetCursorRectsForView(NSView *theView)
{
[NSApp updateWindowsItem: self];
}
DPSdocedited(GSCurrentContext(), flag, window_num);
}
}