mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 01:01:13 +00:00
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:
parent
ccf7d02dd5
commit
1fc1d88b98
2 changed files with 12 additions and 1 deletions
|
@ -110,6 +110,12 @@
|
||||||
[the_color drawSwatchInRect: insideRect];
|
[the_color drawSwatchInRect: insideRect];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) isOpaque
|
||||||
|
{
|
||||||
|
return is_bordered;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Activating
|
// Activating
|
||||||
//
|
//
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue