Added ITSplashScreen stuff. Added ITSplashScreen.h to ITKit header.
[ITKit.git] / ITSplashWindow.m
1 #import "ITSplashWindow.h"
2 #import "ITSplashView.h"
3
4 @implementation ITSplashWindow
5
6 - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
7 {
8         if ( (self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) ) {
9                 [self setOpaque:NO];
10                 [self setBackgroundColor:[NSColor clearColor]];
11                 [self setHasShadow:YES];
12         }
13         return self;
14 }
15
16 - (BOOL)canBecomeKeyWindow
17 {
18         return YES;
19 }
20
21 @end