mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Tidied drawing. Removed unused method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3939 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b55b9163fa
commit
15b5e2dafa
2 changed files with 9 additions and 28 deletions
|
@ -78,13 +78,4 @@
|
|||
|
||||
@end
|
||||
|
||||
//
|
||||
// GNUstep backend methods
|
||||
//
|
||||
@interface NSColorWell (GNUstepBackend)
|
||||
|
||||
- (void)drawBorderRect:(NSRect)aRect;
|
||||
|
||||
@end
|
||||
|
||||
#endif // _GNUstep_H_NSColorWell
|
||||
|
|
|
@ -41,14 +41,14 @@
|
|||
//
|
||||
+ (void)initialize
|
||||
{
|
||||
if (self == [NSColorWell class])
|
||||
[self setVersion:1]; // Initial version
|
||||
if (self == [NSColorWell class])
|
||||
[self setVersion: 1];
|
||||
}
|
||||
|
||||
//
|
||||
// Instance methods
|
||||
//
|
||||
- initWithFrame:(NSRect)frameRect
|
||||
- initWithFrame: (NSRect)frameRect
|
||||
{
|
||||
[super initWithFrame: frameRect];
|
||||
|
||||
|
@ -107,14 +107,13 @@
|
|||
{
|
||||
if (NSIsEmptyRect(insideRect))
|
||||
return;
|
||||
[the_color set];
|
||||
NSRectFill(insideRect);
|
||||
[the_color drawSwatchInRect insideRect];
|
||||
}
|
||||
|
||||
//
|
||||
// Activating
|
||||
//
|
||||
- (void)activate:(BOOL)exclusive
|
||||
- (void)activate: (BOOL)exclusive
|
||||
{
|
||||
is_active = YES;
|
||||
}
|
||||
|
@ -137,14 +136,14 @@
|
|||
return the_color;
|
||||
}
|
||||
|
||||
- (void)setColor:(NSColor *)color
|
||||
- (void)setColor: (NSColor *)color
|
||||
{
|
||||
ASSIGN(the_color, color);
|
||||
}
|
||||
|
||||
- (void)takeColorFrom:(id)sender
|
||||
- (void)takeColorFrom: (id)sender
|
||||
{
|
||||
if ([sender respondsToSelector:@selector(color)])
|
||||
if ([sender respondsToSelector: @selector(color)])
|
||||
ASSIGN(the_color, [sender color]);
|
||||
}
|
||||
|
||||
|
@ -156,7 +155,7 @@
|
|||
return is_bordered;
|
||||
}
|
||||
|
||||
- (void)setBordered:(BOOL)bordered
|
||||
- (void)setBordered: (BOOL)bordered
|
||||
{
|
||||
is_bordered = bordered;
|
||||
[self display];
|
||||
|
@ -185,12 +184,3 @@
|
|||
|
||||
@end
|
||||
|
||||
//
|
||||
// GNUstep backend methods
|
||||
//
|
||||
@implementation NSColorWell (GNUstepBackend)
|
||||
|
||||
- (void) drawBorderRect:(NSRect)aRect
|
||||
{
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue