回复: Can I make GtkPlug transparent?



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]