mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
20 lines
361 B
Plaintext
20 lines
361 B
Plaintext
|
|
@import <Foundation/CPObject.j>
|
|
|
|
#import "CoreGraphics/CGGeometry.h"
|
|
#import "Platform/Platform.h"
|
|
|
|
@implementation CPScreen : CPObject
|
|
{
|
|
}
|
|
|
|
- (CGRect)visibleFrame
|
|
{
|
|
#if PLATFORM(DOM)
|
|
return _CGRectMake(window.screen.availLeft, window.screen.availTop, window.screen.availWidth, window.screen.availHeight);
|
|
#else
|
|
return _CGRectMakeZero();
|
|
#endif
|
|
}
|
|
|
|
@end |