updated release notes.
[cpuHistory.git] / TranslucentWindow.m
blob11c72beb651ab29fca8aed06ecff12cb3bd41c9a
1 //
2 //  TranslucentView.m
3 //
4 //  Created by Takashi T. Hamada on Thu Nov 01 2000.
5 //  Copyright (c) 2000,2001 Takashi T. Hamada. All rights reserved.
6 //
7 //  Modifications:
8 //  bb 26.06.2002 - removed the _transparency method
9 //
11 #import "TranslucentWindow.h"
14 @implementation TranslucentWindow
16 //-------------------------------------------------------------
17 // set the transparency
18 //-------------------------------------------------------------
19 //- (float)_transparency
20 //{
21 //    return 0.9999999999;
22 //}
26 // Not much here, just calling the following private API.
27 extern void _NSSetWindowOpacity(int windowNumber, BOOL isOpaque);
30 //-------------------------------------------------------------
31 // make the window (pseudo) transparent
32 //-------------------------------------------------------------
33 - initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
35     if (self = [super initWithContentRect:contentRect styleMask:aStyle backing:bufferingType defer:flag])
36         _NSSetWindowOpacity([self windowNumber], NO);
38     [self setAcceptsMouseMovedEvents:YES];      // for dragging itself by receiving the mouse events
39     
40     return self;
44 //-------------------------------------------------------------
45 // no shadow is needed
46 //-------------------------------------------------------------
47 - (BOOL)hasShadow
49     return NO;
53 //-------------------------------------------------------------
54 // For displaying the tooltips with transparent window
55 //-------------------------------------------------------------
56 - (BOOL)canBecomeKeyWindow
58     return YES;
61 @end