GTK中,是有可能使部件淡入淡出? [英] In Gtk, is it possible to make widgets fade in and out?

查看:169
本文介绍了GTK中,是有可能使部件淡入淡出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有一个标签(或至少标签上的文字)做快速褪色项。看起来这是有可能在混乱,但我不想,直到杂乱锐利包装Ubuntu的使用混乱。有没有办法做到这一点不使用的混乱涉及?

I would like to have a Label (or at least the text on the label) do a quick fade-in. It looks like this is possible in clutter, but I don't want to use clutter until clutter-sharp is packaged for Ubuntu. Is there any way to do this that doesn't involve using clutter?

推荐答案

您可以使用 gtk_widget_get_snapshot (),然后淡出返回使用开罗GdkPixmap

you can use gtk_widget_get_snapshot() and then fade out the GdkPixmap it returns using cairo

这篇关于GTK中,是有可能使部件淡入淡出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆