Update gtk70

This commit is contained in:
daleclack 2021-04-24 11:46:50 +08:00
parent e0d2cec6e3
commit 25a58cb481
2 changed files with 9 additions and 1 deletions

View File

@ -1,9 +1,16 @@
#include <gtkmm.h>
#include "src/winpe.xpm"
int main(int argc,char **argv){
auto app=Gtk::Application::create(argc,argv,"org.gtkmm.test");
Gtk::Window window;
window.set_default_size(200,200);
window.set_default_size(640,360);
window.set_icon_name("org.gtk.daleclack");
window.set_title("Gtkmm 3 test");
Glib::RefPtr<Gdk::Pixbuf> pixbuf=Gdk::Pixbuf::create_from_xpm_data(winpe);
Glib::RefPtr<Gdk::Pixbuf> sized=pixbuf->scale_simple(640,360,Gdk::InterpType::INTERP_BILINEAR);
Gtk::Image image1 (sized);
window.add(image1);
window.show_all();
return app->run(window);
}

View File

@ -0,0 +1 @@