billy-gtk4-interface/hello_world.hpp

34 lines
733 B
C++
Raw Normal View History

2024-10-24 11:02:04 +02:00
//
// Created by postaron on 27/09/24.
//
#ifndef LEARNGTK4_HELLO_WORLD_HPP
#define LEARNGTK4_HELLO_WORLD_HPP
#include <gtkmm/button.h>
#include <gtkmm/glarea.h>
#include <gtkmm/box.h>
#include <gtkmm/applicationwindow.h>
2024-10-28 18:58:19 +01:00
#include <gtkmm/popovermenubar.h>
#include <gtkmm/popovermenu.h>
2024-10-24 11:02:04 +02:00
namespace learn_gtkmm4 {
class HelloWorld : public Gtk::ApplicationWindow {
public:
2024-10-28 18:58:19 +01:00
explicit HelloWorld(const Glib::RefPtr<Gio::Menu>& menuModel);
2024-10-24 11:02:04 +02:00
~HelloWorld() override = default;
protected:
void on_button_clicked();
Gtk::Box m_VBox;
2024-10-28 18:58:19 +01:00
Gtk::PopoverMenuBar m_menu_bar;
2024-10-24 11:02:04 +02:00
Gtk::Button m_button;
Gtk::GLArea gl_area;
};
} // learn_gtkmm4
#endif //LEARNGTK4_HELLO_WORLD_HPP