summaryrefslogtreecommitdiff
path: root/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-05-23 11:18:45 +0100
committerVincent Sanders <vince@kyllikki.org>2017-05-23 11:18:45 +0100
commitd6c07925417eaea27c85996bc243f93e27b1bcd0 (patch)
tree7c4155f513a9d2a9dc91cfb0e5de9637995340af /frontends/cocoa/PSMTabBarControl/PSMTabDragView.m
parent681586139fa83a53b1174ad93d764c5c92b900f3 (diff)
downloadnetsurf-d6c07925417eaea27c85996bc243f93e27b1bcd0.tar.gz
netsurf-d6c07925417eaea27c85996bc243f93e27b1bcd0.tar.bz2
remove cocoa frontend
The cocoa frontend has been broken for a few years and we have no maintainer. It was removed from the CI six months ago and has already bitrotted so it cannot be compiled.
Diffstat (limited to 'frontends/cocoa/PSMTabBarControl/PSMTabDragView.m')
-rw-r--r--frontends/cocoa/PSMTabBarControl/PSMTabDragView.m62
1 files changed, 0 insertions, 62 deletions
diff --git a/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m b/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m
deleted file mode 100644
index 2c9781dbc..000000000
--- a/frontends/cocoa/PSMTabBarControl/PSMTabDragView.m
+++ /dev/null
@@ -1,62 +0,0 @@
-//
-// PSMTabDragView.m
-// PSMTabBarControl
-//
-// Created by Kent Sutherland on 6/17/07.
-// Copyright 2007 Kent Sutherland. All rights reserved.
-//
-
-#import "PSMTabDragView.h"
-
-
-@implementation PSMTabDragView
-
-- (id)initWithFrame:(NSRect)frame {
- if((self = [super initWithFrame:frame])) {
- _alpha = 1.0;
- }
- return self;
-}
-
-- (void)dealloc {
- [_image release];
- [_alternateImage release];
- [super dealloc];
-}
-
-- (void)drawRect:(NSRect)rect {
- //1.0 fade means show the primary image
- //0.0 fade means show the secondary image
- CGFloat primaryAlpha = _alpha + 0.001f, alternateAlpha = 1.001f - _alpha;
- NSRect srcRect;
- srcRect.origin = NSZeroPoint;
- srcRect.size = [_image size];
-
- [_image drawInRect:[self bounds] fromRect:srcRect operation:NSCompositeSourceOver fraction:primaryAlpha];
- srcRect.size = [_alternateImage size];
- [_alternateImage drawInRect:[self bounds] fromRect:srcRect operation:NSCompositeSourceOver fraction:alternateAlpha];
-}
-
-- (void)setFadeValue:(CGFloat)value {
- _alpha = value;
-}
-
-- (NSImage *)image {
- return _image;
-}
-
-- (void)setImage:(NSImage *)image {
- [_image release];
- _image = [image retain];
-}
-
-- (NSImage *)alternateImage {
- return _alternateImage;
-}
-
-- (void)setAlternateImage:(NSImage *)image {
- [_alternateImage release];
- _alternateImage = [image retain];
-}
-
-@end