File:  [mozdev] / chimera / SplashScreenWindow.h
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Mar 10 07:36:38 2002 UTC (18 years, 2 months ago) by macserv
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

//  SplashScreenWindow.h
//  Chimera
//  Created by Matt L.  Judy on Sat Mar 09 2002.
//  Copyright (c) 2001 __MyCompanyName__. All rights reserved.

#import <Cocoa/Cocoa.h>

@interface SplashScreenWindow : NSWindow {
    NSImage *_splashImage;
    BOOL	 _fades;
    NSTimer *_fadeTimer;

// The splash method inits the window and displays it, centered, and at the
// size of the image it displays.  That image, by default, is obtained by
// [NSImage imageNamed:@"splash"] , but you can use the setSplashImage:
// method to specify a different one.
// The splash method should be used in your main controller's init method
// in this fashion:  splashWindow = [[SplashScreenWindow alloc] splash];
// The window will release itself whenever you send it the close message.

// By default, the splash screen will appear and disappear normally.  However, you
// can cause the window to fade in when opened and fade out when closed by setting
// setFades:YES .  Set this after alloc, but before you call splash .

// This allows you set the image to something other than [NSImage imageNamed:@"splash"];
// Set this after alloc, but before calling splash .
-(NSImage *)splashImage;
-(void)setSplashImage:(NSImage *)newImage;

-(void)fadeStepUp:(NSTimer *)aTimer;
-(void)fadeStepDown:(NSTimer *)aTimer;


FreeBSD-CVSweb <>