1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
//
// "$Id$"
//
// Definition of class Fl_MacOS_Sys_Menu_Bar_Driver 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_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);
virtual void create_window_menu();
int find_first_window();
void new_window(Fl_Window *win);
void remove_window(Fl_Window *win);
void rename_window(Fl_Window *win);
static Fl_MacOS_Sys_Menu_Bar_Driver* driver();
};
#endif /* Fl_MacOS_Sys_Menu_Bar_Driver_H */
//
// End of "$Id$".
//
|