Re: NPAPI Z-order

[email protected] Wed, 24 Apr 2013 06:25:23 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.plugins
Message-ID <[email protected]>
I mean transparent (totally clear). 

If I don't paint in it there is a lot of invalid pixels painted (like there is a memory buffer that hasn't been cleared). 


On Wednesday, April 24, 2013 3:20:25 PM UTC+2, Benjamin Smedberg wrote:
> On 4/24/2013 5:01 AM, [email protected] wrote:
> 
> > I changed the code such that NPN_SetValue is called from the plugin indicating that it is windowless.
> 
> >
> 
> > Now I get a GraphicsExpose XEvent. I can draw a colored rectangle given the provided Display, but I can't make it transparent.
> 
> Do you mean "transparent" or "translucent"? If you really just want 
> 
> transparent areas, don't draw on those areas.
> 
> 
> 
> If what you really want is translucent areas, then you should probably 
> 
> read the code of our test plugin: 
> 
> http://mxr.mozilla.org/mozilla-central/source/dom/plugins/test/testplugin/nptest_gtk2.cpp
> 
> 
> 
> In particular take a look at "pluginDrawSolid" "pluginDrawWindow" and 
> 
> the GraphicsExpose case in pluginHandleEvent. It uses cairo to draw a 
> 
> translucent box.
> 
> 
> 
> --BDS