mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 16:10:47 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8834 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d329613085
commit
1c98e6fb81
1 changed files with 11 additions and 7 deletions
|
@ -145,7 +145,9 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
|
|||
- (void) drawWellInside: (NSRect)insideRect
|
||||
{
|
||||
if (NSIsEmptyRect(insideRect))
|
||||
return;
|
||||
{
|
||||
return;
|
||||
}
|
||||
[_the_color drawSwatchInRect: insideRect];
|
||||
}
|
||||
|
||||
|
@ -224,32 +226,34 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
|
|||
//
|
||||
// Managing Color
|
||||
//
|
||||
- (NSColor *)color
|
||||
- (NSColor *) color
|
||||
{
|
||||
return _the_color;
|
||||
}
|
||||
|
||||
- (void)setColor: (NSColor *)color
|
||||
- (void) setColor: (NSColor *)color
|
||||
{
|
||||
ASSIGN(_the_color, color);
|
||||
[self setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
- (void)takeColorFrom: (id)sender
|
||||
- (void) takeColorFrom: (id)sender
|
||||
{
|
||||
if ([sender respondsToSelector: @selector(color)])
|
||||
ASSIGN(_the_color, [sender color]);
|
||||
{
|
||||
ASSIGN(_the_color, [sender color]);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Managing Borders
|
||||
//
|
||||
- (BOOL)isBordered
|
||||
- (BOOL) isBordered
|
||||
{
|
||||
return _is_bordered;
|
||||
}
|
||||
|
||||
- (void)setBordered: (BOOL)bordered
|
||||
- (void) setBordered: (BOOL)bordered
|
||||
{
|
||||
_is_bordered = bordered;
|
||||
[self setNeedsDisplay: YES];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue