本文介绍了什么是gtk_box_pack_start和gtk_container_add之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我看来,这两个功能可以用于一些小部件添加到容器中。

It seems to me that both functions can be used to add some widget to the container.

有什么区别?

推荐答案

在一个GtkBox,下面的伪code是等价的:

On a GtkBox, the following pseudo-code is equivalent:

gtk_container_add(box, widget)
gtk_box_pack_start(box, widget, default_expand, default_expand, 0)

这篇关于什么是gtk_box_pack_start和gtk_container_add之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 03:47