fltk/src/drivers/Cocoa/Fl_MacOS_Sys_Menu_Bar_Driver.H
Albrecht Schlosser f09e17c3c5 Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files

The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
2020-07-06 20:28:20 +02:00

50 lines
1.7 KiB
C++

//
// 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:
//
// https://www.fltk.org/COPYING.php
//
// Please see the following page on how to report bugs and issues:
//
// https://www.fltk.org/bugs.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 */