⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example-3.cc

📁 Developing with Gnome一书examples例子代码
💻 CC
字号:
/* This program displays a couple checkboxes and shows how to change * button labels, how to make widgets sensitive or unsensitive, how to * determine if a checkbox is active, how to provide access keys for * quick keyboard navigation, how to pass other widgets to callbacks * besides the one that receives the event, and how to manually get * gtkmm to update widgets without returning to the main event loop. */#include <gtkmm.h>#include <libglademm/xml.h>#include "ExampleWindow.h"using namespace std;intmain (int argc, char *argv[]){  Glib::RefPtr<Gnome::Glade::Xml> main_window;  Gtk::Main kit(argc, argv);  // load the interface  main_window = Gnome::Glade::Xml::create("example-3.glade");  // Get the main window  ExampleWindow* window;  main_window->get_widget_derived("OptionWindow", window);  // start the event loop  Gtk::Main::run( *window );  return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -