Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXRootWindow.h

00001 /********************************************************************************
00002 *                                                                               *
00003 *                     R o o t   W i n d o w   W i d g e t                       *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1997,2002 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: FXRootWindow.h,v 1.15 2002/01/18 22:42:54 jeroen Exp $                   *
00023 ********************************************************************************/
00024 #ifndef FXROOTWINDOW_H
00025 #define FXROOTWINDOW_H
00026 
00027 #ifndef FXCOMPOSITE_H
00028 #include "FXComposite.h"
00029 #endif
00030 
00031 
00032 
00033 /// Root window
00034 class FXAPI FXRootWindow : public FXComposite {
00035   FXDECLARE(FXRootWindow)
00036 protected:
00037   FXRootWindow(){}
00038   virtual void layout();
00039 #ifdef WIN32
00040   virtual FXID GetDC() const;
00041   virtual int ReleaseDC(FXID) const;
00042 #endif
00043 private:
00044   FXRootWindow(const FXRootWindow&);
00045   FXRootWindow &operator=(const FXRootWindow&);
00046 public:
00047 
00048   /// Construct root window
00049   FXRootWindow(FXApp* a,FXVisual *vis);
00050 
00051   /// Root window need not be created
00052   virtual void create();
00053 
00054   /// Root window may not be detached
00055   virtual void detach();
00056 
00057   /// Root window can not be destroyed
00058   virtual void destroy();
00059 
00060   /// Return width of the root window
00061   virtual FXint getDefaultWidth();
00062 
00063   /// Return height of the root window
00064   virtual FXint getDefaultHeight();
00065 
00066   /// No op
00067   virtual void recalc();
00068 
00069   /// Root window can not be moved
00070   virtual void move(FXint x,FXint y);
00071 
00072   /// Root window can not be resized
00073   virtual void resize(FXint w,FXint h);
00074 
00075   /// Root window can not be positioned
00076   virtual void position(FXint x,FXint y,FXint w,FXint h);
00077 
00078   /// Root window can not get focus
00079   virtual void setFocus();
00080 
00081   /// Root window can not loose
00082   virtual void killFocus();
00083 
00084   /// Destructor
00085   virtual ~FXRootWindow();
00086   };
00087 
00088 
00089 #endif