mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Add shfill operator.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16743 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9dce871b41
commit
52308a0016
6 changed files with 41 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2003-05-18 00:00 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Headers/gnustep/gui/DPSOperators.h,
|
||||
Headers/gnustep/gui/PSOperators.h,
|
||||
Headers/gnustep/gui/GSMethodTable.h,
|
||||
Headers/gnustep/gui/NSGraphicsContext.h, Source/NSGraphicsContext.m:
|
||||
Add shfill operator.
|
||||
|
||||
2003-05-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSInfoPanel.m: Draw authors in the order they occur in
|
||||
|
|
|
@ -394,6 +394,10 @@ static inline void
|
|||
DPSstroke(GSCTXT *ctxt)
|
||||
__attribute__((unused));
|
||||
|
||||
static inline void
|
||||
DPSshfill(GSCTXT *ctxt, NSDictionary *shaderDictionary)
|
||||
__attribute__((unused));
|
||||
|
||||
|
||||
static inline void
|
||||
GSSendBezierPath(GSCTXT *ctxt, NSBezierPath * path)
|
||||
|
@ -1080,6 +1084,13 @@ DPSstroke(GSCTXT *ctxt)
|
|||
(ctxt, @selector(DPSstroke));
|
||||
}
|
||||
|
||||
static inline void
|
||||
DPSshfill(GSCTXT *ctxt, NSDictionary *shaderDictionary)
|
||||
{
|
||||
(ctxt->methods->DPSshfill)
|
||||
(ctxt, @selector(DPSshfill:), shaderDictionary);
|
||||
}
|
||||
|
||||
|
||||
static inline void
|
||||
GSSendBezierPath(GSCTXT *ctxt, NSBezierPath * path)
|
||||
|
|
|
@ -306,6 +306,12 @@ typedef struct {
|
|||
NSString *colorSpaceName,
|
||||
const unsigned char *const data[5]);
|
||||
|
||||
/* This probably belongs next to DPSstroke, but inserting members in this
|
||||
struct breaks apps that use PS* or DPS* functions and were compiled with
|
||||
an earlier version, so it's here until we figure out how to handle that.
|
||||
*/
|
||||
void (*DPSshfill)
|
||||
(NSGraphicsContext*, SEL, NSDictionary *);
|
||||
} gsMethodTable;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -336,6 +336,7 @@ APPKIT_EXPORT NSGraphicsContext *GSCurrentContext(void);
|
|||
- (void) DPSrlineto: (float)x : (float)y;
|
||||
- (void) DPSrmoveto: (float)x : (float)y;
|
||||
- (void) DPSstroke;
|
||||
- (void) DPSshfill: (NSDictionary *)shaderDictionary;
|
||||
|
||||
- (void) GSSendBezierPath: (NSBezierPath *)path;
|
||||
- (void) GSRectClipList: (const NSRect *)rects : (int) count;
|
||||
|
|
|
@ -319,6 +319,9 @@ static inline void
|
|||
PSstroke()
|
||||
__attribute__((unused));
|
||||
|
||||
static inline void
|
||||
PSshfill(NSDictionary *shaderDictionary)
|
||||
__attribute__((unused));
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
@ -767,6 +770,11 @@ PSstroke()
|
|||
DPSstroke(DEFCTXT);
|
||||
}
|
||||
|
||||
static inline void
|
||||
PSshfill(NSDictionary *shaderDictionary)
|
||||
{
|
||||
DPSshfill(DEFCTXT, shaderDictionary);
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
|
|
@ -603,6 +603,8 @@ NSGraphicsContext *GSCurrentContext(void)
|
|||
GET_IMP(@selector(DPSrmoveto::));
|
||||
methodTable.DPSstroke =
|
||||
GET_IMP(@selector(DPSstroke));
|
||||
methodTable.DPSshfill =
|
||||
GET_IMP(@selector(DPSshfill:));
|
||||
|
||||
methodTable.GSSendBezierPath_ =
|
||||
GET_IMP(@selector(GSSendBezierPath:));
|
||||
|
@ -1298,6 +1300,11 @@ NSGraphicsContext *GSCurrentContext(void)
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) DPSshfill: (NSDictionary *)shaderDictionary
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/** Set the bezier path as the current path */
|
||||
- (void) GSSendBezierPath: (NSBezierPath *)path
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue