FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

Fl_Sys_Menu_Bar.H
1 //
2 // "$Id: Fl_Sys_Menu_Bar.H 9637 2012-07-24 04:37:22Z matt $"
3 //
4 // MacOS system menu bar header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18
19 #ifndef Fl_Sys_Menu_Bar_H
20 #define Fl_Sys_Menu_Bar_H
21
22 #include "Fl_Menu_Bar.H"
23 #include "x.H"
24
25 #if defined(__APPLE__) || defined(FL_DOXYGEN)
26
35 class FL_EXPORT Fl_Sys_Menu_Bar : public Fl_Menu_Bar {
36 protected:
37 void draw();
38 public:
44 Fl_Sys_Menu_Bar(int x,int y,int w,int h,const char *l=0);
45 const Fl_Menu_Item *menu() const {return Fl_Menu_::menu();}
46 void menu(const Fl_Menu_Item *m);
47 int add(const char* label, int shortcut, Fl_Callback*, void *user_data=0, int flags=0);
48 int insert(int index, const char* label, int shortcut, Fl_Callback *cb, void *user_data=0, int flags=0);
49 void remove(int n);
50 void replace(int rank, const char *name);
51 void clear();
52 int clear_submenu(int index);
53 #if ! defined(FL_DOXYGEN)
54 enum menuOrItemOperation { itemAtIndex, setKeyEquivalent, setKeyEquivalentModifierMask, setState, initWithTitle,
55 numberOfItems, setSubmenu, setEnabled, addSeparatorItem, setTitle, removeItem, addNewItem };
56 // function doMenuOrItemOperation is in file Fl_cocoa.mm because it contains objective-c code
57 static void *doMenuOrItemOperation( menuOrItemOperation operation, ...);
58 #endif
59 };
60
61 #else
62
63 typedef Fl_Menu_Bar Fl_Sys_Menu_Bar;
64
65 #endif // defined(__APPLE__) || defined(FL_DOXYGEN)
66
67 #endif // Fl_Sys_Menu_Bar_H
68
69 //
70 // End of "$Id: Fl_Sys_Menu_Bar.H 9637 2012-07-24 04:37:22Z matt $".
71 //
Fl_Callback
void( Fl_Callback)(Fl_Widget *, void *)
Default callback type definition for all fltk widgets (by far the most used)
Definition: Fl_Widget.H:49
- © 1998-2012 by Bill Spitzak and others.