4 // Created by Takashi T. Hamada on Thu Nov 01 2000.
5 // Copyright (c) 2000,2001 Takashi T. Hamada. All rights reserved.
8 // bb 26.06.2002 - removed the _transparency method
11 #import "TranslucentWindow.h"
14 @implementation TranslucentWindow
16 //-------------------------------------------------------------
17 // set the transparency
18 //-------------------------------------------------------------
19 //- (float)_transparency
21 // return 0.9999999999;
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
44 //-------------------------------------------------------------
45 // no shadow is needed
46 //-------------------------------------------------------------
53 //-------------------------------------------------------------
54 // For displaying the tooltips with transparent window
55 //-------------------------------------------------------------
56 - (BOOL)canBecomeKeyWindow