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,2009 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (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                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 *********************************************************************************
00021 * $Id: FXRootWindow.h,v 1.28 2009/01/06 13:07:27 fox Exp $                      *
00022 ********************************************************************************/
00023 #ifndef FXROOTWINDOW_H
00024 #define FXROOTWINDOW_H
00025 
00026 #ifndef FXCOMPOSITE_H
00027 #include "FXComposite.h"
00028 #endif
00029 
00030 namespace FX {
00031 
00032 
00033 /// Root window
00034 class FXAPI FXRootWindow : public FXComposite {
00035   FXDECLARE(FXRootWindow)
00036 protected:
00037   FXRootWindow(){}
00038 #ifdef WIN32
00039   virtual FXID GetDC() const;
00040   virtual int ReleaseDC(FXID) const;
00041 #endif
00042 private:
00043   FXRootWindow(const FXRootWindow&);
00044   FXRootWindow &operator=(const FXRootWindow&);
00045 public:
00046 
00047   /// Construct root window
00048   FXRootWindow(FXApp* a,FXVisual *vis);
00049 
00050   /// Root window need not be created
00051   virtual void create();
00052 
00053   /// Perform layout
00054   virtual void layout();
00055 
00056   /// Return width of the root window
00057   virtual FXint getDefaultWidth();
00058 
00059   /// Return height of the root window
00060   virtual FXint getDefaultHeight();
00061 
00062   /// No op
00063   virtual void recalc();
00064 
00065   /// Root window can not be moved
00066   virtual void move(FXint x,FXint y);
00067 
00068   /// Root window can not be resized
00069   virtual void resize(FXint w,FXint h);
00070 
00071   /// Root window can not be positioned
00072   virtual void position(FXint x,FXint y,FXint w,FXint h);
00073 
00074   /// Root window can not get focus
00075   virtual void setFocus();
00076 
00077   /// Root window can not loose
00078   virtual void killFocus();
00079 
00080   /// Destructor
00081   virtual ~FXRootWindow();
00082   };
00083 
00084 }
00085 
00086 #endif

Copyright © 1997-2009 Jeroen van der Zijp