From 639a32ea7ecfdb3a098e8e116a72301029506b5c Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Thu, 15 Apr 2010 17:03:33 -0400 Subject: [PATCH] CPWindow alpha value support. --- AppKit/CPWindow/CPWindow.j | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index 7a916d9eb..219963545 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -883,6 +883,23 @@ CPTexturedBackgroundWindowMask return _contentView; } +/*! + Applies an alpha value to the window. + @param aValue the alpha value to apply +*/ +- (void)setAlphaValue:(float)aValue +{ + [_windowView setAlphaValue:aValue]; +} + +/*! + Returns the alpha value of the window. +*/ +- (float)alphaValue +{ + return [_windowView alphaValue]; +} + /*! Sets the window's background color. @param aColor the new color for the background