Author: rmottola
Date: Sun Jul 26 23:04:57 2015
New Revision: 38840

URL: http://svn.gna.org/viewcvs/gnustep?rev=38840&view=rev
Log:
add alphaValue property... although we don't use it anyway it helps to compile 
stuff

Modified:
    libs/gui/trunk/Headers/AppKit/NSView.h
    libs/gui/trunk/Source/NSView.m

Modified: libs/gui/trunk/Headers/AppKit/NSView.h
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Headers/AppKit/NSView.h?rev=38840&r1=38839&r2=38840&view=diff
==============================================================================
--- libs/gui/trunk/Headers/AppKit/NSView.h      (original)
+++ libs/gui/trunk/Headers/AppKit/NSView.h      Sun Jul 26 23:04:57 2015
@@ -119,6 +119,7 @@
   NSInteger _gstate;
   void *_nextKeyView;
   void *_previousKeyView;
+  CGFloat _alphaValue;
 
 @public
   /*
@@ -227,6 +228,15 @@
 - (BOOL) isFlipped;
 - (BOOL) isRotatedFromBase;
 - (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

Modified: libs/gui/trunk/Source/NSView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSView.m?rev=38840&r1=38839&r2=38840&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSView.m      (original)
+++ libs/gui/trunk/Source/NSView.m      Sun Jul 26 23:04:57 2015
@@ -630,6 +630,8 @@
   //_nextKeyView = 0;
   //_previousKeyView = 0;
 
+  _alphaValue = 1.0;
+  
   return self;
 }
 
@@ -1638,6 +1640,18 @@
         }
     }
 }
+
+
+- (CGFloat) alphaValue
+{
+  return _alphaValue;
+}
+
+- (void)setAlphaValue: (CGFloat)alpha
+{
+  _alphaValue = alpha;
+}
+
 
 - (NSRect) centerScanRect: (NSRect)aRect
 {


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to