mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 12:21:34 +00:00
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:
parent
1cde0e8496
commit
9521318ad8
1 changed files with 15 additions and 3 deletions
|
@ -733,17 +733,29 @@
|
||||||
|
|
||||||
- (void) DPSrectclip: (float)x : (float)y : (float)w : (float)h
|
- (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
|
- (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
|
- (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
|
- (void)DPSreversepath
|
||||||
|
|
Loading…
Reference in a new issue