Added default implementations for rectclip, rectfill and rectstroke.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13766 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2002-06-04 13:21:33 +00:00
parent 1cde0e8496
commit 9521318ad8

View file

@ -733,17 +733,29 @@
- (void) DPSrectclip: (float)x : (float)y : (float)w : (float)h
{
[self subclassResponsibility: _cmd];
NSRect rect = NSMakeRect(x, y, w, h);
rect = [ctm rectInMatrixSpace: rect];
ASSIGN(path, [NSBezierPath bezierPathWithRect: rect]);
[self DPSclip];
}
- (void) DPSrectfill: (float)x : (float)y : (float)w : (float)h
{
[self subclassResponsibility: _cmd];
NSRect rect = NSMakeRect(x, y, w, h);
rect = [ctm rectInMatrixSpace: rect];
ASSIGN(path, [NSBezierPath bezierPathWithRect: rect]);
[self DPSfill];
}
- (void) DPSrectstroke: (float)x : (float)y : (float)w : (float)h
{
[self subclassResponsibility: _cmd];
NSRect rect = NSMakeRect(x, y, w, h);
rect = [ctm rectInMatrixSpace: rect];
ASSIGN(path, [NSBezierPath bezierPathWithRect: rect]);
[self DPSstroke];
}
- (void)DPSreversepath