开发者

In Gtk, is it possible to make widgets fade in and out?

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开发者_JAVA技巧 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?


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


I've never seen it in any of the more common GTK themes, but Google Chrome's new theme does this, and it uses GTK. So, I'm going to say yes, but not many use it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜