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

FXRootWindow.h

Go to the documentation of this file.
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,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: FXRootWindow.h,v 1.23 2006/01/22 17:58:09 fox Exp $                      *
00023 ********************************************************************************/
00024 #ifndef FXROOTWINDOW_H
00025 #define FXROOTWINDOW_H
00026 
00027 #ifndef FXCOMPOSITE_H
00028 #include "FXComposite.h"
00029 #endif
00030 
00031 namespace FX {
00032 
00033 
00034 /// Root window
00035 class FXAPI FXRootWindow : public FXComposite {
00036   FXDECLARE(FXRootWindow)
00037 protected:
00038   FXRootWindow(){}
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   /// Perform layout
00061   virtual void layout();
00062 
00063   /// Return width of the root window
00064   virtual FXint getDefaultWidth();
00065 
00066   /// Return height of the root window
00067   virtual FXint getDefaultHeight();
00068 
00069   /// No op
00070   virtual void recalc();
00071 
00072   /// Root window can not be moved
00073   virtual void move(FXint x,FXint y);
00074 
00075   /// Root window can not be resized
00076   virtual void resize(FXint w,FXint h);
00077 
00078   /// Root window can not be positioned
00079   virtual void position(FXint x,FXint y,FXint w,FXint h);
00080 
00081   /// Root window can not get focus
00082   virtual void setFocus();
00083 
00084   /// Root window can not loose
00085   virtual void killFocus();
00086 
00087   /// Destructor
00088   virtual ~FXRootWindow();
00089   };
00090 
00091 }
00092 
00093 #endif

Copyright © 1997-2005 Jeroen van der Zijp