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

FXMenuBar.h
1 /********************************************************************************
2 * *
3 * M e n u B a r W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1998,2024 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXMENUBAR_H
22 #define FXMENUBAR_H
23 
24 #ifndef FXTOOLBAR_H
25 #include "FXToolBar.h"
26 #endif
27 
28 namespace FX {
29 
30 
32 class FXAPI FXMenuBar : public FXToolBar {
33  FXDECLARE(FXMenuBar)
34 protected:
35  FXMenuBar(){}
36 private:
37  FXMenuBar(const FXMenuBar&);
38  FXMenuBar &operator=(const FXMenuBar&);
39 public:
40  long onFocusLeft(FXObject*,FXSelector,void*);
41  long onFocusRight(FXObject*,FXSelector,void*);
42  long onEnter(FXObject*,FXSelector,void*);
43  long onLeave(FXObject*,FXSelector,void*);
44  long onMotion(FXObject*,FXSelector,void*);
45  long onButtonPress(FXObject*,FXSelector,void*);
46  long onButtonRelease(FXObject*,FXSelector,void*);
47  long onCmdUnpost(FXObject*,FXSelector,void*);
48 public:
49 
56  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);
57 
62  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);
63 
65  virtual FXbool contains(FXint parentx,FXint parenty) const;
66  };
67 
68 }
69 
70 #endif
Base composite.
Definition: FXComposite.h:32
Definition: FX4Splitter.h:28
A tool bar widget can be docked in a dock site; it automatically adjusts its orientation based on the...
Definition: FXToolBar.h:39
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
Menu bar.
Definition: FXMenuBar.h:32

Copyright © 1997-2022 Jeroen van der Zijp