unison

Fork of Unison, a bi-directional file synchronization tool
git clone git://git.laack.co/unison.git
Log | Files | Refs | README | LICENSE

ColorGradientView.h (456B)


      1 //
      2 //  ColorGradientView.h
      3 //  uimacnew
      4 //
      5 //  From http://www.katoemba.net/makesnosenseatall/2008/01/09/nsview-with-gradient-background/
      6 //
      7 
      8 #import <Cocoa/Cocoa.h>
      9 
     10 @interface ColorGradientView : NSView
     11 {
     12     NSColor *startingColor;
     13     NSColor *endingColor;
     14     int angle;
     15 }
     16 
     17 // Define the variables as properties
     18 @property(nonatomic, retain) NSColor *startingColor;
     19 @property(nonatomic, retain) NSColor *endingColor;
     20 @property(assign) int angle;
     21 
     22 @end