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 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 00049 FXRootWindow(FXApp* a,FXVisual *vis); 00050 00052 virtual void create(); 00053 00055 virtual void detach(); 00056 00058 virtual void destroy(); 00059 00061 virtual void layout(); 00062 00064 virtual FXint getDefaultWidth(); 00065 00067 virtual FXint getDefaultHeight(); 00068 00070 virtual void recalc(); 00071 00073 virtual void move(FXint x,FXint y); 00074 00076 virtual void resize(FXint w,FXint h); 00077 00079 virtual void position(FXint x,FXint y,FXint w,FXint h); 00080 00082 virtual void setFocus(); 00083 00085 virtual void killFocus(); 00086 00088 virtual ~FXRootWindow(); 00089 }; 00090 00091 } 00092 00093 #endif