testing-repository/Gtkmm4/gtk144_gtkui6/src/MenuBar.hh

25 lines
398 B
C++
Raw Normal View History

2023-01-17 15:41:12 +08:00
#pragma once
#include <gtkmm.h>
enum class WinShown
{
DEFAULT,
WIN_1,
WIN_2
};
class MenuBar
{
public:
MenuBar();
~MenuBar();
void change_menu(WinShown win_id);
Gtk::PopoverMenuBar *menubar;
private:
// Menu Models
Glib::RefPtr<Gtk::Builder> builder_def, builder_win1, builder_win2;
Glib::RefPtr<Gio::MenuModel> model_default, model_win1, model_win2;
};