mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 17:12:24 +00:00
add alphaValue property... although we don't use it anyway it helps to compile stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38840 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8fb7744988
commit
79ebab3d91
2 changed files with 24 additions and 0 deletions
|
@ -119,6 +119,7 @@ PACKAGE_SCOPE
|
||||||
NSInteger _gstate;
|
NSInteger _gstate;
|
||||||
void *_nextKeyView;
|
void *_nextKeyView;
|
||||||
void *_previousKeyView;
|
void *_previousKeyView;
|
||||||
|
CGFloat _alphaValue;
|
||||||
|
|
||||||
@public
|
@public
|
||||||
/*
|
/*
|
||||||
|
@ -228,6 +229,15 @@ PACKAGE_SCOPE
|
||||||
- (BOOL) isRotatedFromBase;
|
- (BOOL) isRotatedFromBase;
|
||||||
- (BOOL) isRotatedOrScaledFromBase;
|
- (BOOL) isRotatedOrScaledFromBase;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* View Layers
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||||
|
- (CGFloat) alphaValue;
|
||||||
|
- (void) setAlphaValue: (CGFloat)alpha;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Converting Coordinates
|
* Converting Coordinates
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -630,6 +630,8 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
||||||
//_nextKeyView = 0;
|
//_nextKeyView = 0;
|
||||||
//_previousKeyView = 0;
|
//_previousKeyView = 0;
|
||||||
|
|
||||||
|
_alphaValue = 1.0;
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1639,6 +1641,18 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (CGFloat) alphaValue
|
||||||
|
{
|
||||||
|
return _alphaValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)setAlphaValue: (CGFloat)alpha
|
||||||
|
{
|
||||||
|
_alphaValue = alpha;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
- (NSRect) centerScanRect: (NSRect)aRect
|
- (NSRect) centerScanRect: (NSRect)aRect
|
||||||
{
|
{
|
||||||
NSAffineTransform *matrix;
|
NSAffineTransform *matrix;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue