Hi ppl,
I'm just checking out CLX. On Windows, I liked programmin' round windows, is this possible
with X too? And if it is, how can it be done??
thanks in advance...
...Sebastian
Sebastian Boldt <··············@t-online.de> writes:
> Hi ppl,
>
> I'm just checking out CLX. On Windows, I liked programmin' round windows, is this possible
> with X too? And if it is, how can it be done??
>
In X11, you can use the shape extension to create shaped windows. I'm
not sure how to do this with CLX (or with C xlib, for that matter :)).
> thanks in advance...
> ...Sebastian
hth,
--
BPT <···@tunes.org> /"\ ASCII Ribbon Campaign
backronym for Linux: \ / No HTML or RTF in mail
Linux Is Not Unix X No MS-Word in mail
Meme plague ;) ---------> / \ Respect Open Standards
Sebastian Boldt wrote:
> I'm just checking out CLX. On Windows, I liked programmin' round windows, is this possible
> with X too? And if it is, how can it be done??
Yes, xeyes is one example of a standard application using nonrectangular
window.s I believe this is done by giving the window a transparency
mask with the desired shape. Search your favorite X11 documentation for "transparency" and you should find it, or else look at the source for
xclock. Transparency didn't arrive until some version like X11R4, but
that's older than some readers of this list...
"Steven M. Haflich" <·······@pacbell.net> writes:
> Sebastian Boldt wrote:
>
> > I'm just checking out CLX. On Windows, I liked programmin' round windows, is this possible
> > with X too? And if it is, how can it be done??
>
> Yes, xeyes is one example of a standard application using nonrectangular
> window.s I believe this is done by giving the window a transparency
> mask with the desired shape. Search your favorite X11 documentation for "transparency" and you should find it, or else look at the source for
> xclock. Transparency didn't arrive until some version like X11R4, but
> that's older than some readers of this list...
xeyes uses the SHAPE extension to get non-rectangular windows:
googling for "x shape extension" is instructive. See e.g.
http://cvsweb.netbsd.org/bsdweb.cgi/xsrc/xc/doc/specs/Xext/shape.ms
for some version of the spec.
-dan
--
http://ww.telent.net/cliki/ - Link farm for free CL-on-Unix resources