开发者

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

开发者 https://www.devze.com 2022-12-30 00:03 出处:网络
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 p

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

精彩评论

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

关注公众号