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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXComposite.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                       C o m p o s i t e   W i d g e t                         *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1997,2012 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 #ifndef FXCOMPOSITE_H
00022 #define FXCOMPOSITE_H
00023 
00024 #ifndef FXWINDOW_H
00025 #include "FXWindow.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00032 class FXAPI FXComposite : public FXWindow {
00033   FXDECLARE(FXComposite)
00034 protected:
00035   FXComposite(){}
00036   FXComposite(FXApp* a,FXVisual *vis);
00037   FXComposite(FXApp* a,FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h);
00038 private:
00039   FXComposite(const FXComposite&);
00040   FXComposite &operator=(const FXComposite&);
00041 public:
00042   long onKeyPress(FXObject*,FXSelector,void*);
00043   long onKeyRelease(FXObject*,FXSelector,void*);
00044   long onFocusNext(FXObject*,FXSelector,void*);
00045   long onFocusPrev(FXObject*,FXSelector,void*);
00046   long onCmdUpdate(FXObject*,FXSelector,void*);
00047 public:
00048 
00050   FXComposite(FXComposite* p,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
00051 
00053   virtual void create();
00054 
00056   virtual void detach();
00057 
00059   virtual void destroy();
00060 
00062   virtual void layout();
00063 
00065   virtual FXint getDefaultWidth();
00066 
00068   virtual FXint getDefaultHeight();
00069 
00071   FXint maxChildWidth() const;
00072 
00074   FXint maxChildHeight() const;
00075 
00077   virtual FXbool isComposite() const;
00078 
00080   virtual ~FXComposite();
00081   };
00082 
00083 }
00084 
00085 #endif

Copyright © 1997-2011 Jeroen van der Zijp