mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:40:48 +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
bb7ea10a97
commit
08f1a68f34
2 changed files with 19 additions and 1 deletions
|
@ -152,6 +152,11 @@
|
||||||
[controlView unlockFocus];
|
[controlView unlockFocus];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) isOpaque
|
||||||
|
{
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
- (float) knobThickness
|
- (float) knobThickness
|
||||||
{
|
{
|
||||||
NSImage* image = [_knobCell image];
|
NSImage* image = [_knobCell image];
|
||||||
|
|
|
@ -3192,7 +3192,20 @@ _relocLayoutArray (NSMutableArray *lineLayoutInformation,
|
||||||
}
|
}
|
||||||
|
|
||||||
// text lays out from top to bottom
|
// 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
|
// Copy and paste
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue