Re: Invisible Window
Re: Invisible Window
- Subject: Re: Invisible Window
- From: Matthias Fripp <email@hidden>
- Date: Sun, 12 May 2002 23:11:14 -0700
I didn't see the demonstration, but Apple's Round Transparent Window
example is very educational in this respect.
http://developer.apple.com/samplecode/Sample_Code/Cocoa/RoundTransparentWindow.
htm
As I recall, you can adjust the alpha level of objects in your window,
and you can also provide an alpha mask for the window itself. I think
that if you made the whole window transparent, it would also make your
objects invisible. But if you used a mask for the window that exactly
matched the outline of the objects, they'd appear to float on the
desktop. I also noticed that the drop shadow (if you use one) respects
the alpha mask for the window, so it exactly follows the outline of the
opaque part of your window, making the rest of the window effectively
non-existent.
Matthias
On Sunday, May 12, 2002, at 10:43 PM, email@hidden wrote:
There was a wonderful demonstration at WWDC of some rotating gears using
Quarts and/or OpenGL. The gears were partially transparent (it was
demonstration of alpha Compositing), but more interestingly for me, the
window it was drawing was also invisible. The object looked liked it
floated
on top of the desktop. Does anyone have source code example of how this
can
be done?
Thanks,
Steve Sheets
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.