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

25 lines
592 B
C++

#pragma once
#include <gtkmm.h>
class MyWin : public Gtk::Window{
public:
static MyWin * create();
MyWin(BaseObjectType *cobject,const Glib::RefPtr<Gtk::Builder>& builder);
private:
//Child Widgets
Glib::RefPtr<Gtk::Builder> ref_builder;
Glib::RefPtr<Gio::Settings> m_settings;
Gtk::Button* btnprefs;
Gtk::Overlay* overlay;
Gtk::Image background;
Gtk::Button btnback;
//Signal Handlers
void btnprefs_clicked();
};
static inline void on_hide_window(Gtk::Window* window){
delete window;
}