mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-28 02:48:49 +00:00
Minor stylistic changes.
Reviewed by me.
This commit is contained in:
1 parent
90fe0d64f5
commit
7e88b1abfd
2 files changed
+9
-9
No files matched your search
@@ -52,12 +52,12 @@ var DefaultLineWidth = 1.0;
|
||||
|
||||
+ (CPBezierPath)bezierPath
|
||||
{
|
||||
return [[[self class] alloc] init];
|
||||
return [[self alloc] init];
|
||||
}
|
||||
|
||||
+ (CPBezierPath)bezierPathWithOvalInRect:(CGRect)rect
|
||||
{
|
||||
var path = [[self class] bezierPath];
|
||||
var path = [self bezierPath];
|
||||
|
||||
[path appendBezierPathWithOvalInRect:rect];
|
||||
|
||||
@@ -66,7 +66,7 @@ var DefaultLineWidth = 1.0;
|
||||
|
||||
+ (CPBezierPath)bezierPathWithRect:(CGRect)rect
|
||||
{
|
||||
var path = [[self class] bezierPath];
|
||||
var path = [self bezierPath];
|
||||
|
||||
[path appendBezierPathWithRect:rect];
|
||||
|
||||
@@ -83,19 +83,19 @@ var DefaultLineWidth = 1.0;
|
||||
DefaultLineWidth = width;
|
||||
}
|
||||
|
||||
+ (void)fillRect:(CGRect)rect
|
||||
+ (void)fillRect:(CGRect)aRect
|
||||
{
|
||||
[[[self class] bezierPathWithRect:rect] fill];
|
||||
[[self bezierPathWithRect:aRect] fill];
|
||||
}
|
||||
|
||||
+ (void)strokeRect:(CGRect)rect
|
||||
+ (void)strokeRect:(CGRect)aRect
|
||||
{
|
||||
[[[self class] bezierPathWithRect:rect] stroke];
|
||||
[[self bezierPathWithRect:aRect] stroke];
|
||||
}
|
||||
|
||||
+ (void)strokeLineFromPoint:(CGPoint)point1 toPoint:(CGPoint)point2
|
||||
{
|
||||
var path = [[self class] bezierPath];
|
||||
var path = [self bezierPath];
|
||||
|
||||
[path moveToPoint:point1];
|
||||
[path lineToPoint:point2];
|
||||
|
||||
@@ -71,7 +71,7 @@ var NSBorderlessWindowMask = 0x00,
|
||||
(_windowStyleMask & NSResizableWindowMask ? CPResizableWindowMask : 0) |
|
||||
(_windowStyleMask & NSTexturedBackgroundWindowMask ? NSTexturedBackgroundWindowMask : 0) |
|
||||
(_windowStyleMask & NSHUDBackgroundWindowMask ? CPHUDBackgroundWindowMask : 0);
|
||||
|
||||
|
||||
_windowIsFullBridge = [aCoder decodeObjectForKey:"NSFrameAutosaveName"] === "CPBorderlessBridgeWindowMask";
|
||||
|
||||
/*if (![_windowClass isEqualToString:@"NSPanel"])
|
||||
|
||||
Reference in new issue
Block a user