学习gtkmm有几周了,英语太烂了,硬着头皮边看边记,还没把握,发上来,大家斧正
Single-item Containers
单项容器
The single-item container widgets derive from Gtk::Bin, which provides the add() and remove() methods for the child widget. Note that Gtk::Button and Gtk::Window are technically single-item containers, but we have discussed them already elsewhere.
单项容器由Gtk::Bin派生而来,它为管理子控件提供了add()和remove()方法。严格来说Gtk::Button 和 Gtk::Window也是单项容器,我们已在别处进行了讨论。
We also discuss the Gtk::Paned widget, which allows you to divide a window into two separate "panes". This widget actually contains two child widgets, but the number is fixed so it seems appropriate.
我们同时还讨论Gtk::Paned控件,它允许你将一个窗口分隔为两个独立的区——“panes”。它实际上包含两个子控件,但数目固定(为两个)似乎很适当。(?)
§ 7.1.1. Frame
§ 7.1.2. Paned
§ 7.1.3. ScrolledWindow
§ 7.1.4. AspectFrame
§ 7.1.5. Alignment
Frames can enclose one or a group of widgets within a box, optionally with a title. For instance, you might place a group of RadioButtons or CheckButtons in a Frame.
Frames可以将在一个盒子里的一个或一组控件围起来,并指定一个标题。如,你可以将一组RadioButton或CheckButton放进一个Frame里。
§ 7.1.1.1. 示例