billy-gtk4-interface/hello_world.hpp

26 lines
577 B
C++
Raw Permalink Normal View History

2024-10-24 11:02:04 +02:00
#ifndef LEARNGTK4_HELLO_WORLD_HPP
#define LEARNGTK4_HELLO_WORLD_HPP
2024-10-29 18:01:40 +01:00
#include <glibmm/refptr.h>
2024-10-24 11:02:04 +02:00
#include <gtkmm/applicationwindow.h>
2024-10-29 17:44:21 +01:00
#include <gtkmm/builder.h>
2024-10-24 11:02:04 +02:00
namespace learn_gtkmm4 {
2024-10-29 17:44:21 +01:00
class HelloWorld final : public Gtk::ApplicationWindow {
2024-10-24 11:02:04 +02:00
public:
2024-10-29 17:44:21 +01:00
using Gtk::ApplicationWindow::BaseObjectType;
2024-10-24 11:02:04 +02:00
2024-10-29 17:44:21 +01:00
explicit HelloWorld(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder);
2024-10-24 11:02:04 +02:00
2024-10-29 17:44:21 +01:00
~HelloWorld() final = default;
protected:
Glib::RefPtr<Gtk::Builder> m_builder;
2024-10-24 11:02:04 +02:00
};
} // learn_gtkmm4
#endif //LEARNGTK4_HELLO_WORLD_HPP