summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-12-04 17:39:19 +0000
committerManolo Gouy <Manolo>2017-12-04 17:39:19 +0000
commit8612fea27712a41d7e8167cef964d7098b1d733d (patch)
tree4a92a869d02394605364270525c467022d2fd24d /src/drivers
parent6586b77975636da3d96d277d7556a8bbc8d0031b (diff)
Make Fl_Sys_Menu_Bar class usable in static initializers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H b/src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H
new file mode 100644
index 000000000..9ea966a79
--- /dev/null
+++ b/src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H
@@ -0,0 +1,50 @@
+//
+// "$Id$"
+//
+// system menu bar widget for the Fast Light Tool Kit (FLTK).
+//
+// Copyright 2017 by Bill Spitzak and others.
+//
+// This library is free software. Distribution and use rights are outlined in
+// the file "COPYING" which should have been included with this file. If this
+// file is missing or damaged, see the license at:
+//
+// http://www.fltk.org/COPYING.php
+//
+// Please report all bugs and problems on the following page:
+//
+// http://www.fltk.org/str.php
+//
+
+#ifndef Fl_MacOS_Sys_Menu_Bar_Driver_H
+#define Fl_MacOS_Sys_Menu_Bar_Driver_H
+
+#include <FL/Fl_Sys_Menu_Bar_Driver.H>
+
+class Fl_MacOS_Sys_Menu_Bar_Driver : public Fl_Sys_Menu_Bar_Driver {
+public:
+ Fl_MacOS_Sys_Menu_Bar_Driver();
+ virtual ~Fl_MacOS_Sys_Menu_Bar_Driver();
+ virtual void update();
+ virtual void draw() {}
+ virtual void about(Fl_Callback *cb, void *data);
+ virtual int add(const char* label, int shortcut, Fl_Callback *cb, void *user_data, int flags);
+ virtual int add(const char* str);
+ virtual int insert(int index, const char* label, int shortcut, Fl_Callback *cb, void *user_data, int flags);
+ virtual void menu(const Fl_Menu_Item *m);
+ virtual void shortcut (int i, int s);
+ virtual void setonly (Fl_Menu_Item *item);
+ virtual void clear();
+ virtual int clear_submenu(int index);
+ virtual void remove(int index);
+ virtual void replace(int index, const char *name);
+ virtual void mode(int i, int fl);
+ static Fl_MacOS_Sys_Menu_Bar_Driver* new_driver();
+};
+
+
+#endif /* Fl_MacOS_Sys_Menu_Bar_Driver_H */
+
+//
+// End of "$Id$".
+//