mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Added basic implementation for window alpha handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20697 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7dba9dd2b2
commit
d18480663e
4 changed files with 21 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
2005-02-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/GSDisplayServer.h (-setalpha::): Declare.
|
||||
* Source/GSDisplayServer.m (-setalpha::): New method for window
|
||||
alpha setting, with empty default implementation.
|
||||
* Source/NSWindow.m (-setAlphaValue:): Implemented alpha setting
|
||||
via display server.
|
||||
(-_initDefaults): Set _alphaValue to 1.0.
|
||||
|
||||
2005-02-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Model/GMAppKit.m (NSButtonCell-initWithModelUnarchiver:):
|
||||
|
|
|
@ -142,6 +142,7 @@ APPKIT_EXPORT NSString * GSScreenNumber;
|
|||
- (void) docedited: (int) edited : (int) win;
|
||||
- (void) setinputstate: (int)state : (int)win;
|
||||
- (void) setinputfocus: (int) win;
|
||||
- (void) setalpha: (float)alpha: (int) win;
|
||||
|
||||
- (NSPoint) mouselocation;
|
||||
- (NSPoint) mouseLocationOnScreen: (int)aScreen window: (int *)win;
|
||||
|
|
|
@ -706,6 +706,12 @@ GSCurrentServer(void)
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/** Sets the transparancy value for the whole window */
|
||||
- (void) setalpha: (float)alpha: (int) win
|
||||
{
|
||||
//[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/** Returns the current mouse location on the default screen. If the
|
||||
pointer is not on the default screen, an invalid point (-1,-1} is
|
||||
returned. */
|
||||
|
|
|
@ -1106,8 +1106,11 @@ many times.
|
|||
|
||||
- (void) setAlphaValue: (float)windowAlpha
|
||||
{
|
||||
// FIXME
|
||||
_alphaValue = windowAlpha;
|
||||
if (_windowNum)
|
||||
{
|
||||
[GSServerForWindow(self) setalpha: _alphaValue : _windowNum];
|
||||
}
|
||||
}
|
||||
|
||||
- (float) alphaValue
|
||||
|
@ -4209,7 +4212,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
|
||||
_depthLimit = NSDefaultDepth;
|
||||
_disableFlushWindow = 0;
|
||||
_alphaValue = 0.0;
|
||||
_alphaValue = 1.0;
|
||||
|
||||
_f.is_one_shot = NO;
|
||||
_f.is_autodisplay = YES;
|
||||
|
|
Loading…
Reference in a new issue