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

25 lines
398 B
C++
Raw Normal View History

2023-01-29 13:22:29 +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;
};