gtk_example/main.cpp

16 lines
327 B
C++

#include <gtkmm.h>
class GTKExample : public Gtk::Window {
public:
GTKExample();
};
GTKExample::GTKExample(){
set_title("GTK Example");
set_default_size(800, 450);
}
int main(int argc, char ** argv){
auto app = Gtk::Application::create("com.example.gtk");
return app->make_window_and_run<GTKExample>(argc, argv);
}