Shaped windows

hello,

thought of doing some transparency tricks with a window on WinXP and i
wonder whether SDL supports shaped windows already. actually what i mean i
believe is called Region’s (in Win). would be great to use my existing SDL
code base for this. so does SDL support those features and is it possible on
other platforms at all? (e.g. Mac and X)

Thanks

SDL IMHO is not appropriate for this type of
application. Moreover, MS Windows Window-Regioning is,
obviously, Windows specific. If you want to use
Window-Regioning, you might be able to come up with a
simple hack (probably using overlays) combined with
Window-Regioning to create an SDL app with a shaped
window. However, both from a design perspective and
from a technological perspective, Window-Regioning is
a Composition-layer effect, and therefore it follows
that you should be writing an application that uses
your windowing system’s window composition to display
your application. If you want to do shaped Windows in
a cross-platform app, the best approach idealogically
and technologically would be to try and come up with a
way to use Window-Regioning in a cross-platform
toolkit like wxWindows (note: I heard they changed
their name,) and work from there.

Sorry for such a long paragraph.

— Sebastian Posch <sebastian.posch at chello.at> wrote:> hello,

thought of doing some transparency tricks with a
window on WinXP and i
wonder whether SDL supports shaped windows already.
actually what i mean i
believe is called Region’s (in Win). would be great
to use my existing SDL
code base for this. so does SDL support those
features and is it possible on
other platforms at all? (e.g. Mac and X)

Thanks


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.

thanks,

FYI i just found the following entry in TODO of SDL 1.2.7:

  • Shaped windows, windows without borders

so i guess there is a chance of making it into sdl sometime.
and yeah, you’re right, wxWindows is called wxWidgets now.

<From: Donny Viszneki <smxrk yahoo.com>
<Subject: Re: shaped windows
<Newsgroups: gmane.comp.lib.sdl
<Date: Wed, 26 May 2004 20:49:46 -0700
<
<SDL IMHO is not appropriate for this type of
<application. Moreover, MS Windows Window-Regioning is,
<obviously, Windows specific. If you want to use
<Window-Regioning, you might be able to come up with a
<simple hack (probably using overlays) combined with
<Window-Regioning to create an SDL app with a shaped
<window. However, both from a design perspective and
<from a technological perspective, Window-Regioning is
<a Composition-layer effect, and therefore it follows
<that you should be writing an application that uses
<your windowing system’s window composition to display
<your application. If you want to do shaped Windows in
<a cross-platform app, the best approach idealogically
<and technologically would be to try and come up with a
<way to use Window-Regioning in a cross-platform
<toolkit like wxWindows (note: I heard they changed
<their name,) and work from there.
<
<Sorry for such a long paragraph.

Search SDL’s documentation for the video flag SDL_NOFRAME, I’m sure you
can go from there.

Good luck,

-JuanOn Thu, 2004-05-27 at 04:09, Sebastian Posch wrote:

thanks,

FYI i just found the following entry in TODO of SDL 1.2.7:

  • Shaped windows, windows without borders

— Sebastian Posch <sebastian.posch at chello.at> wrote:

thanks,

FYI i just found the following entry in TODO of SDL
1.2.7:

  • Shaped windows, windows without borders

so i guess there is a chance of making it into sdl
sometime.
and yeah, you’re right, wxWindows is called
wxWidgets now.

Well I can honestly say I hope it’s not a very high
priority for SDL to have shaped windows. Window
shaping is a composition layer effect, it should have
nothing to do with SDL. What kind of application would
you want to make a shaped window for that you would
want to use SDL for anyhow? Shaped windows are for
GUIs that are small and sleek and a rectangle isn’t
the best shape for it. Or just for eye candy. In
either case you really should be using your windowing
environment’s window composition system.>

<From: Donny Viszneki <smxrk yahoo.com>
<Subject: Re: shaped windows
<Newsgroups: gmane.comp.lib.sdl
<Date: Wed, 26 May 2004 20:49:46 -0700
<
<SDL IMHO is not appropriate for this type of
<application. Moreover, MS Windows Window-Regioning
is,
<obviously, Windows specific. If you want to use
<Window-Regioning, you might be able to come up with
a
<simple hack (probably using overlays) combined with
<Window-Regioning to create an SDL app with a shaped
<window. However, both from a design perspective and
<from a technological perspective, Window-Regioning
is
<a Composition-layer effect, and therefore it
follows
<that you should be writing an application that uses
<your windowing system’s window composition to
display
<your application. If you want to do shaped Windows
in
<a cross-platform app, the best approach
idealogically
<and technologically would be to try and come up
with a
<way to use Window-Regioning in a cross-platform
<toolkit like wxWindows (note: I heard they changed
<their name,) and work from there.
<
<Sorry for such a long paragraph.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.