mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 22:31:56 +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
b7c9936be7
commit
01f3d318e1
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>
|
2005-02-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Model/GMAppKit.m (NSButtonCell-initWithModelUnarchiver:):
|
* Model/GMAppKit.m (NSButtonCell-initWithModelUnarchiver:):
|
||||||
|
|
|
@ -142,6 +142,7 @@ APPKIT_EXPORT NSString * GSScreenNumber;
|
||||||
- (void) docedited: (int) edited : (int) win;
|
- (void) docedited: (int) edited : (int) win;
|
||||||
- (void) setinputstate: (int)state : (int)win;
|
- (void) setinputstate: (int)state : (int)win;
|
||||||
- (void) setinputfocus: (int) win;
|
- (void) setinputfocus: (int) win;
|
||||||
|
- (void) setalpha: (float)alpha: (int) win;
|
||||||
|
|
||||||
- (NSPoint) mouselocation;
|
- (NSPoint) mouselocation;
|
||||||
- (NSPoint) mouseLocationOnScreen: (int)aScreen window: (int *)win;
|
- (NSPoint) mouseLocationOnScreen: (int)aScreen window: (int *)win;
|
||||||
|
|
|
@ -706,6 +706,12 @@ GSCurrentServer(void)
|
||||||
[self subclassResponsibility: _cmd];
|
[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
|
/** Returns the current mouse location on the default screen. If the
|
||||||
pointer is not on the default screen, an invalid point (-1,-1} is
|
pointer is not on the default screen, an invalid point (-1,-1} is
|
||||||
returned. */
|
returned. */
|
||||||
|
|
|
@ -1106,8 +1106,11 @@ many times.
|
||||||
|
|
||||||
- (void) setAlphaValue: (float)windowAlpha
|
- (void) setAlphaValue: (float)windowAlpha
|
||||||
{
|
{
|
||||||
// FIXME
|
|
||||||
_alphaValue = windowAlpha;
|
_alphaValue = windowAlpha;
|
||||||
|
if (_windowNum)
|
||||||
|
{
|
||||||
|
[GSServerForWindow(self) setalpha: _alphaValue : _windowNum];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (float) alphaValue
|
- (float) alphaValue
|
||||||
|
@ -4209,7 +4212,7 @@ resetCursorRectsForView(NSView *theView)
|
||||||
|
|
||||||
_depthLimit = NSDefaultDepth;
|
_depthLimit = NSDefaultDepth;
|
||||||
_disableFlushWindow = 0;
|
_disableFlushWindow = 0;
|
||||||
_alphaValue = 0.0;
|
_alphaValue = 1.0;
|
||||||
|
|
||||||
_f.is_one_shot = NO;
|
_f.is_one_shot = NO;
|
||||||
_f.is_autodisplay = YES;
|
_f.is_autodisplay = YES;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue