nanogui: Transparent window with Nano-X
Subject:
Re: [nanogui] Transparent window with Nano-X
From:
"Greg Haerr" ####@####.####
Date:
7 Dec 2005 18:01:10 +0000
Message-Id: <053301c5fb58$38c22ab0$6401a8c0@gregnewport>
> I want to create a transparent window using nano-X. What I'm trying to
> do is like that :
> There will be a window with some objects (geometrical figure) on top of
> that. But the background of the window should be transparent, so that
> anything on desktop below the window could be seen. There is a demo
> program named 'malpha' within '/src/bin/' which deals with transparency.
> But that doesn't serve my purpose because background is not transparent
> here.
The malpha demo shows that with external-to-server coding, it
is possible to simulate alpha blended surfaces with Microwindows.
This capability is not present in the server, however.
> Could anyone tell me whether this is really possible with Nano-X ? Or
> any idea about how to do this ?
Well, it's certainly possible, but not without writing some tricky code
to add transparency handling to all windows and all refresh code.
I'd say its a pretty hard project. If you really want to do this,
make sure you completely understand how malpha.c works,
as well as all the code in nanox/srvutil.c.
Regards,
Greg