[英]Redraw GtkWidget
I have a GtkImage that I am manipulating with a GdkPixbuf. 我有一个GtkImage,我正在使用GdkPixbuf进行操作。 When I change it, I need to redraw it to make the changes take effect.
当我更改它时,我需要重绘它以使更改生效。 Right now I am doing this by hiding and then showing the image.
现在我通过隐藏然后显示图像来做到这一点。 What would be the proper way of doing this?
这样做的正确方法是什么?
gtk_widget_queue_draw()函数使小部件区域无效并强制重绘。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.