FXSplashWindow.h

Go to the documentation of this file.
00001 /********************************************************************************
00002 *                                                                               *
00003 *                            S p l a s h    W i n d o w                         *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2004,2006 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or                 *
00009 * modify it under the terms of the GNU Lesser General Public                    *
00010 * License as published by the Free Software Foundation; either                  *
00011 * version 2.1 of the License, or (at your option) any later version.            *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU             *
00016 * Lesser General Public License for more details.                               *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public              *
00019 * License along with this library; if not, write to the Free Software           *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00021 *********************************************************************************
00022 * $Id: FXSplashWindow.h,v 1.10 2006/01/22 17:58:09 fox Exp $                     *
00023 ********************************************************************************/
00024 #ifndef FXSPLASHWINDOW_H
00025 #define FXSPLASHWINDOW_H
00026 
00027 #ifndef FXTOPWINDOW_H
00028 #include "FXTopWindow.h"
00029 #endif
00030 
00031 namespace FX {
00032 
00033 
00035 enum {
00036   SPLASH_SIMPLE    = 0,                 
00037   SPLASH_SHAPED    = 0x02000000,        
00038   SPLASH_OWNS_ICON = 0x04000000,        
00039   SPLASH_DESTROY   = 0x08000000         
00040   };
00041 
00042 
00049 class FXAPI FXSplashWindow : public FXTopWindow {
00050   FXDECLARE(FXSplashWindow)
00051 protected:
00052   FXIcon *icon;         // Really big icon
00053   FXuint  delay;        // Delay before hiding
00054 protected:
00055   FXSplashWindow();
00056 private:
00057   FXSplashWindow(const FXSplashWindow&);
00058   FXSplashWindow &operator=(const FXSplashWindow&);
00059 public:
00060   long onPaint(FXObject*,FXSelector,void*);
00061 public:
00062 
00064   FXSplashWindow(FXApp* ap,FXIcon* ic,FXuint opts=SPLASH_SIMPLE,FXuint ms=5000);
00065 
00067   FXSplashWindow(FXWindow* ow,FXIcon* ic,FXuint opts=SPLASH_SIMPLE,FXuint ms=5000);
00068 
00070   virtual void create();
00071 
00073   virtual void detach();
00074 
00076   virtual void show();
00077 
00079   virtual void show(FXuint placement);
00080 
00082   virtual void hide();
00083 
00085   virtual FXint getDefaultWidth();
00086 
00088   virtual FXint getDefaultHeight();
00089 
00091   void setIcon(FXIcon* ic);
00092 
00094   FXIcon* getIcon() const { return icon; }
00095 
00097   void setDelay(FXuint ms);
00098 
00100   FXuint getDelay() const { return delay; }
00101 
00103   virtual void save(FXStream& store) const;
00104 
00106   virtual void load(FXStream& store);
00107 
00109   virtual ~FXSplashWindow();
00110   };
00111 
00112 }
00113 
00114 #endif

(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:24 2009 for TnFOX by doxygen v1.4.7