![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
00001 /******************************************************************************** 00002 * * 00003 * C o m p o s i t e 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: FXComposite.h,v 1.30 2009/01/06 13:07:22 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXCOMPOSITE_H 00024 #define FXCOMPOSITE_H 00025 00026 #ifndef FXWINDOW_H 00027 #include "FXWindow.h" 00028 #endif 00029 00030 namespace FX { 00031 00032 00033 /// Base composite 00034 class FXAPI FXComposite : public FXWindow { 00035 FXDECLARE(FXComposite) 00036 protected: 00037 FXComposite(){} 00038 FXComposite(FXApp* a,FXVisual *vis); 00039 FXComposite(FXApp* a,FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h); 00040 private: 00041 FXComposite(const FXComposite&); 00042 FXComposite &operator=(const FXComposite&); 00043 public: 00044 long onKeyPress(FXObject*,FXSelector,void*); 00045 long onKeyRelease(FXObject*,FXSelector,void*); 00046 long onFocusNext(FXObject*,FXSelector,void*); 00047 long onFocusPrev(FXObject*,FXSelector,void*); 00048 long onCmdUpdate(FXObject*,FXSelector,void*); 00049 public: 00050 00051 /// Constructor 00052 FXComposite(FXComposite* p,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0); 00053 00054 /// Create server-side resources 00055 virtual void create(); 00056 00057 /// Detach server-side resources 00058 virtual void detach(); 00059 00060 /// Destroy server-side resources 00061 virtual void destroy(); 00062 00063 /// Perform layout 00064 virtual void layout(); 00065 00066 /// Return default width 00067 virtual FXint getDefaultWidth(); 00068 00069 /// Return default height 00070 virtual FXint getDefaultHeight(); 00071 00072 /// Return the width of the widest child window 00073 FXint maxChildWidth() const; 00074 00075 /// Return the height of the tallest child window 00076 FXint maxChildHeight() const; 00077 00078 /// Overrides this virtual function to return true 00079 virtual FXbool isComposite() const; 00080 00081 /// Destructor 00082 virtual ~FXComposite(); 00083 }; 00084 00085 } 00086 00087 #endif
![]() |