testing-repository/Gtkmm3/gtk108_settings/src/MyWin.hh

25 lines
592 B
C++
Raw Normal View History

2021-09-10 21:35:21 +08:00
#pragma once
#include <gtkmm.h>
class MyWin : public Gtk::Window{
public:
static MyWin * create();
MyWin(BaseObjectType *cobject,const Glib::RefPtr<Gtk::Builder>& builder);
private:
2021-09-11 11:18:23 +08:00
//Child Widgets
2021-09-10 21:35:21 +08:00
Glib::RefPtr<Gtk::Builder> ref_builder;
Glib::RefPtr<Gio::Settings> m_settings;
2021-09-11 11:18:23 +08:00
Gtk::Button* btnprefs;
2021-09-12 09:43:39 +08:00
Gtk::Overlay* overlay;
Gtk::Image background;
Gtk::Button btnback;
2021-09-11 11:18:23 +08:00
//Signal Handlers
void btnprefs_clicked();
2021-09-10 21:35:21 +08:00
};
2021-09-17 11:04:05 +08:00
static inline void on_hide_window(Gtk::Window* window){
delete window;
}