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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXMenuBar.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                             M e n u B a r   W i d g e t                       *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1998,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 FXMENUBAR_H
00022 #define FXMENUBAR_H
00023 
00024 #ifndef FXTOOLBAR_H
00025 #include "FXToolBar.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00032 class FXAPI FXMenuBar : public FXToolBar {
00033   FXDECLARE(FXMenuBar)
00034 protected:
00035   FXMenuBar(){}
00036 private:
00037   FXMenuBar(const FXMenuBar&);
00038   FXMenuBar &operator=(const FXMenuBar&);
00039 public:
00040   long onFocusLeft(FXObject*,FXSelector,void*);
00041   long onFocusRight(FXObject*,FXSelector,void*);
00042   long onEnter(FXObject*,FXSelector,void*);
00043   long onLeave(FXObject*,FXSelector,void*);
00044   long onMotion(FXObject*,FXSelector,void*);
00045   long onButtonPress(FXObject*,FXSelector,void*);
00046   long onButtonRelease(FXObject*,FXSelector,void*);
00047   long onCmdUnpost(FXObject*,FXSelector,void*);
00048 public:
00049 
00056   FXMenuBar(FXComposite* p,FXComposite* q,FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=3,FXint pr=3,FXint pt=2,FXint pb=2,FXint hs=DEFAULT_SPACING,FXint vs=DEFAULT_SPACING);
00057 
00062   FXMenuBar(FXComposite* p,FXuint opts,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=3,FXint pr=3,FXint pt=2,FXint pb=2,FXint hs=DEFAULT_SPACING,FXint vs=DEFAULT_SPACING);
00063 
00065   virtual FXbool contains(FXint parentx,FXint parenty) const;
00066   };
00067 
00068 }
00069 
00070 #endif

Copyright © 1997-2011 Jeroen van der Zijp