summaryrefslogtreecommitdiff
path: root/frontends/cocoa/PSMTabBarControl/NSBezierPath_AMShading.h
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-06-01 20:11:38 +0200
committerSven Weidauer <sven@5sw.de>2017-06-05 10:51:18 +0200
commit6b2425b375ee2e9ae0cd50d94493efb2256ebd80 (patch)
tree6a3a498960723a9c7e5d1b334c648ec6699f5d3d /frontends/cocoa/PSMTabBarControl/NSBezierPath_AMShading.h
parentf855774e1a479941f3cdea919a3e9c4de14dbe6a (diff)
downloadnetsurf-6b2425b375ee2e9ae0cd50d94493efb2256ebd80.tar.gz
netsurf-6b2425b375ee2e9ae0cd50d94493efb2256ebd80.tar.bz2
Revert "remove cocoa frontend"
This reverts commit d6c07925417eaea27c85996bc243f93e27b1bcd0.
Diffstat (limited to 'frontends/cocoa/PSMTabBarControl/NSBezierPath_AMShading.h')
-rw-r--r--frontends/cocoa/PSMTabBarControl/NSBezierPath_AMShading.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/frontends/cocoa/PSMTabBarControl/NSBezierPath_AMShading.h b/frontends/cocoa/PSMTabBarControl/NSBezierPath_AMShading.h
new file mode 100644
index 000000000..fd2c2dde4
--- /dev/null
+++ b/frontends/cocoa/PSMTabBarControl/NSBezierPath_AMShading.h
@@ -0,0 +1,23 @@
+//
+// NSBezierPath_AMShading.h
+// ------------------------
+//
+// Created by Andreas on 2005-06-01.
+// Copyright 2005 Andreas Mayer. All rights reserved.
+//
+// based on http://www.cocoadev.com/index.pl?GradientFill
+
+
+#import <Cocoa/Cocoa.h>
+
+@interface NSBezierPath (AMShading)
+
+- (void)customHorizontalFillWithCallbacks:(CGFunctionCallbacks) functionCallbacks firstColor:(NSColor *)firstColor secondColor:(NSColor *)secondColor;
+- (void)customVerticalFillWithCallbacks:(CGFunctionCallbacks) functionCallbacks firstColor:(NSColor *)firstColor secondColor:(NSColor *)secondColor;
+
+- (void)linearGradientFillWithStartColor:(NSColor *)startColor endColor:(NSColor *)endColor;
+- (void)linearVerticalGradientFillWithStartColor:(NSColor *)startColor endColor:(NSColor *)endColor;
+
+- (void)bilinearGradientFillWithOuterColor:(NSColor *)outerColor innerColor:(NSColor *)innerColor;
+
+@end