mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
49 lines
783 B
Plaintext
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
|