#include #include #include #include #include #include class MyWin : public Gtk::Window { public: MyWin(); private: Gtk::VBox layout; Gtk::Label lbl; Gtk::Entry entry; }; MyWin::MyWin() : layout(false, 5), lbl(_("Hello World!")) { set_border_width(5); add(layout); layout.pack_start(lbl, Gtk::PACK_SHRINK); layout.pack_start(entry, Gtk::PACK_SHRINK); Pango::FontDescription fd("Tahoma Bold 32"); entry.modify_font(fd); show_all_children(); } int main(int argc, char** argv) { Gtk::Main kit(argc, argv); MyWin w; Gtk::Main::run(w); return 0; }