// GlossCausticShader GlossCausticShaderView.m // // Copyright © 2008, Roy Ratcliffe, Lancaster, United Kingdom // All rights reserved // //------------------------------------------------------------------------------ #import "GlossCausticShaderView.h" #import "RRGlossCausticShader.h" @implementation GlossCausticShaderView - (void)drawRect:(NSRect)rect { // Shade from the top-left corner of the bounds to the bottom-left. NSRect bounds = [self bounds]; [shader drawShadingFromPoint:NSMakePoint(NSMinX(bounds), NSMaxY(bounds)) toPoint:NSMakePoint(NSMinX(bounds), NSMinY(bounds)) inContext:[[NSGraphicsContext currentContext] graphicsPort]]; } - (IBAction)update:sender { // First update the shader. Something has changed. [shader update]; [self setNeedsDisplay:YES]; } @end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 20722 | jdputsch | initial branch, prep for -Zapp= support | ||
//guest/michael_bishop/MacMenu/src/3rdParty/GlossCausticShader/GlossCausticShaderView.m | |||||
#1 | 8331 | Matt Attaway |
Adding initial version of MacMenu for Perforce MacMenu is a helpful Perforce client that sits in your toolbar. It allows you to run standard Perforce operations on the document that is open the currently active editor/viewer. |