Added isOpaque method.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5214 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 1999-11-16 23:49:35 +00:00
parent ccf7d02dd5
commit 1fc1d88b98
2 changed files with 12 additions and 1 deletions

View file

@ -110,6 +110,12 @@
[the_color drawSwatchInRect: insideRect]; [the_color drawSwatchInRect: insideRect];
} }
- (BOOL) isOpaque
{
return is_bordered;
}
// //
// Activating // Activating
// //

View file

@ -192,7 +192,7 @@ static Class cellClass;
- (void) setStringValue: (NSString *)aString - (void) setStringValue: (NSString *)aString
{ {
[self abortEditing]; [self abortEditing];
[[self selectedCell] setStringValue: aString]; [[self selectedCell] setStringValue: aString];
[self setNeedsDisplay: YES]; [self setNeedsDisplay: YES];
} }
@ -301,6 +301,11 @@ static Class cellClass;
/* /*
* Displaying the Control and Cell * Displaying the Control and Cell
*/ */
- (BOOL) isOpaque
{
return [cell isOpaque];
}
- (void) drawRect: (NSRect)aRect - (void) drawRect: (NSRect)aRect
{ {
[self drawCell: cell]; [self drawCell: cell];