billy-gtk4-interface/hello_world.hpp

29 lines
622 B
C++
Raw Normal View History

2024-10-24 11:02:04 +02:00
#ifndef LEARNGTK4_HELLO_WORLD_HPP
#define LEARNGTK4_HELLO_WORLD_HPP
#include <gtkmm/applicationwindow.h>
2024-10-29 17:44:21 +01:00
#include <gtkmm/builder.h>
namespace Gtk {
class Box;
}
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;
Gtk::Box *m_ui_box{ nullptr };
2024-10-24 11:02:04 +02:00
};
} // learn_gtkmm4
#endif //LEARNGTK4_HELLO_WORLD_HPP