Single-item Containers,Frame

来源:互联网 发布:电视网络机顶盒 编辑:程序博客网 时间:2024/06/06 10:41

学习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

7.1.1. Frame

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可以将在一个盒子里的一个或一组控件围起来,并指定一个标题。如,你可以将一组RadioButtonCheckButton放进一个Frame里。

参考

§  7.1.1.1. 示例

7.1.1.1. 示例

7-1 Frame

源代码

原创粉丝点击