Files
cappuccino/AppKit/_CPCornerView.j
T
2010-07-22 00:21:02 -05:00

49 lines
783 B
Plaintext

@import "CPView.j"
@implementation _CPCornerView : CPView
{
}
+ (CPString)themeClass
{
return @"cornerview";
}
+ (id)themeAttributes
{
return [CPDictionary dictionaryWithObjects:[[CPNull null]]
forKeys:[@"background-color"]];
}
- (void)layoutSubviews
{
[self setBackgroundColor:[self currentValueForThemeAttribute:@"background-color"]];
}
- (void)_init
{
[self setBackgroundColor:[self currentValueForThemeAttribute:@"background-color"]];
}
- (id)initWithFrame:(CGRect)aFrame
{
self = [super initWithFrame:aFrame]
if (self)
[self _init];
return self;
}
- (id)initWithCoder:(CPCoder)aCoder
{
self = [super initWithCoder:aCoder];
if (self)
[self _init];
return self;
}
@end