Beispiel #1
0
int main(int argc, char *argv[]) {
    Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "org.gtkmm.example");
    Gtk::Window window;
    window.set_border_width(40);
    Gtk::Button close("Close");

    window.add(close);
    close.signal_clicked().connect(sigc::mem_fun(window, &Gtk::Window::unset_application));
    
    window.show_all();
    app->run(window);
    return 0;
}
Beispiel #2
0
void
DoScaledText()
{
    InitGtkmm();

    Gtk::Window win;
    ScaledText t_wdg;

    win.set_title("Scaled Text");
    win.set_border_width(0);

    win.set_default_size(300, 100);
    win.add(t_wdg);
    RunWindow(win);
}