在Gtk中,是否可以使小部件淡入淡出?

发布于 2024-09-01 10:01:58 字数 250 浏览 3 评论 0原文

我想要一个Label(或者至少是标签上的文本)进行快速淡入。看起来这可能在混乱中,但在为 Ubuntu 打包 clutter-sharp 之前我不想使用 clutter。有没有什么方法可以做到这一点而不涉及使用混乱?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

南街九尾狐 2024-09-08 10:01:58

您可以使用 gtk_widget_get_snapshot() ,然后使用 cairo 淡出它返回的 GdkPixmap

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

﹏半生如梦愿梦如真 2024-09-08 10:01:58

我从未在任何更常见的 GTK 主题中见过它,但 Google Chrome 的新主题做到了这一点,并且它使用 GTK。所以,我想说是的,但没有多少人使用它。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文