回复: Can I make GtkPlug transparent?
- From: "李浩" <lihao kylinos cn>
- To: "cecashon" <cecashon aol com>
- Cc: "gtk-app-devel-list" <gtk-app-devel-list gnome org>
- Subject: 回复: Can I make GtkPlug transparent?
- Date: Fri, 30 Jun 2017 08:48:15 +0800
Thanks you Eric.
I will keep trying on it.
Regards,
Lihao
------------------ 原始邮件 ------------------
发件人: "cecashon";
发送时间: 2017年6月27日(星期二) 中午12:22
收件人: "lihao";
抄送: "gtk-app-devel-list";
主题: Re: Can I make GtkPlug transparent?
It looks like both the plug and socket draw to the same window. That would mean that you would have to draw
your window background in both the plug and socket "draw" callback functions. There is a plug2.c and
socket2.c in the following folder that sets the transparency on the different windows to try to figure out
how it could work. With cairo you can draw or load an image. You would just have to do it twice in this case.
Might be stretching GTK a little here. Should work.
https://github.com/cecashon/OrderedSetVelociRaptor/tree/master/Misc/Csamples
Eric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]