![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
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.17 2002/03/12 07:11:30 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 virtual void layout(); 00040 #ifdef WIN32 00041 virtual FXID GetDC() const; 00042 virtual int ReleaseDC(FXID) const; 00043 #endif 00044 private: 00045 FXRootWindow(const FXRootWindow&); 00046 FXRootWindow &operator=(const FXRootWindow&); 00047 public: 00048 00049 /// Construct root window 00050 FXRootWindow(FXApp* a,FXVisual *vis); 00051 00052 /// Root window need not be created 00053 virtual void create(); 00054 00055 /// Root window may not be detached 00056 virtual void detach(); 00057 00058 /// Root window can not be destroyed 00059 virtual void destroy(); 00060 00061 /// Return width of the root window 00062 virtual FXint getDefaultWidth(); 00063 00064 /// Return height of the root window 00065 virtual FXint getDefaultHeight(); 00066 00067 /// No op 00068 virtual void recalc(); 00069 00070 /// Root window can not be moved 00071 virtual void move(FXint x,FXint y); 00072 00073 /// Root window can not be resized 00074 virtual void resize(FXint w,FXint h); 00075 00076 /// Root window can not be positioned 00077 virtual void position(FXint x,FXint y,FXint w,FXint h); 00078 00079 /// Root window can not get focus 00080 virtual void setFocus(); 00081 00082 /// Root window can not loose 00083 virtual void killFocus(); 00084 00085 /// Destructor 00086 virtual ~FXRootWindow(); 00087 }; 00088 00089 } 00090 00091 #endif