mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Added isOpaque
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5216 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2bce51f18
commit
129bd9ca8c
2 changed files with 19 additions and 1 deletions
|
@ -152,6 +152,11 @@
|
|||
[controlView unlockFocus];
|
||||
}
|
||||
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (float) knobThickness
|
||||
{
|
||||
NSImage* image = [_knobCell image];
|
||||
|
|
|
@ -3192,7 +3192,20 @@ _relocLayoutArray (NSMutableArray *lineLayoutInformation,
|
|||
}
|
||||
|
||||
// text lays out from top to bottom
|
||||
- (BOOL) isFlipped {return YES;}
|
||||
- (BOOL) isFlipped
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
if (draws_background == NO
|
||||
|| background_color == nil
|
||||
|| [background_color alphaComponent] < 1.0)
|
||||
return NO;
|
||||
else
|
||||
return YES;
|
||||
}
|
||||
|
||||
//
|
||||
// Copy and paste
|
||||
|
|
Loading…
Reference in a new issue