mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 00:41:31 +00:00
Fill out implementation of NSColorWell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2178 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3db608f74f
commit
4fc633ec79
4 changed files with 83 additions and 2 deletions
|
@ -45,14 +45,30 @@
|
|||
//
|
||||
// Instance methods
|
||||
//
|
||||
- initWithFrame:(NSRect)frameRect
|
||||
{
|
||||
[super initWithFrame: frameRect];
|
||||
|
||||
is_bordered = YES;
|
||||
is_active = NO;
|
||||
the_color = [NSColor blackColor];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
//
|
||||
// Drawing
|
||||
//
|
||||
- (void)drawRect:(NSRect)rect
|
||||
{
|
||||
// xxx Draw border
|
||||
NSLog(@"NSColorWell drawRect: %f %f %f %f\n", rect.origin.x, rect.origin.y,
|
||||
rect.size.width, rect.size.height);
|
||||
|
||||
// Draw border
|
||||
if (is_bordered)
|
||||
[self drawBorderRect: rect];
|
||||
|
||||
// Draw the color inside
|
||||
[self drawWellInside: rect];
|
||||
}
|
||||
|
||||
|
@ -133,3 +149,14 @@
|
|||
}
|
||||
|
||||
@end
|
||||
|
||||
//
|
||||
// GNUstep backend methods
|
||||
//
|
||||
@implementation NSColorWell (GNUstepBackend)
|
||||
|
||||
- (void)drawBorderRect:(NSRect)aRect
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue