SDL Glade like GUI

Just got thinking about this, why isn’t there a gui for SDL that you can
graphically make the GUI like GTK’s Glade? If there is, I’m interested in
what it might be and how featured it may be compared to Glade.

Hello !

Just got thinking about this, why isn’t there a gui for SDL that you can
graphically make the GUI like GTK’s Glade? If there is, I’m interested in
what it might be and how featured it may be compared to Glade.

There are GUIs for SDL, for example ParaGUI, but
i don’t think there is any GUI Toolkit for SDL that
has a GUI builder.

The reason why there are not so many GUI Toolkits
with SDL, especially like QT and GTK, is simple.
SDL 1.2 only supports one window, which
makes it useless for GUI Toolkit porting.

But SDL 1.3/2.0 will change that, and maybe we will see
great Toolkits coming to SDL, for example FLTK.

CU

Hello!

By the way, it would be really neat to allow SDL to be integrated in other
GUI like GTK+, QT or even wxWdigets :wink: .

See you

2008/8/15 Torsten Giebl > Hello !

Just got thinking about this, why isn’t there a gui for SDL that you can

graphically make the GUI like GTK’s Glade? If there is, I’m interested in
what it might be and how featured it may be compared to Glade.

There are GUIs for SDL, for example ParaGUI, but
i don’t think there is any GUI Toolkit for SDL that
has a GUI builder.

The reason why there are not so many GUI Toolkits
with SDL, especially like QT and GTK, is simple.
SDL 1.2 only supports one window, which
makes it useless for GUI Toolkit porting.

But SDL 1.3/2.0 will change that, and maybe we will see
great Toolkits coming to SDL, for example FLTK.

CU


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I’ve been looking into GTK + SDL some more. I’ve found some other
alternatives.

http://www.libsdl.org/projects/gtk-demo/
This example is pretty dated. I had GTK+2 on my system yet I had to install
1.2. Also, it’s got X11 code so it’s not cross-platform. Is there a similar
example with GTK+2. I’m assuming it would be real similar to this.


I took a quick look at the site, but it appears somewhat out dated also as
the last activity was 2001.

http://gtkglext.sourceforge.net/
This actually looked something like I might be interested in. As I recently
have been getting into OpenGL.

I understand that Torsten said that SDL1.2 can only support 1 window, but
that doesn’t seem to be a concern of mine at this point, and I did compile
the gtk-demo and it is similar to what I am looking for. I prefer most apps
to be in 1 window anyway. I’m guessing the intended point here is that SDL
cannot create child windows inside of another? Also as far as adding a
movable toolbar to my app, would that be out of the question, as most
toolbars are drag and droppable. I would think that even if this is not
possible, you could still create a user interface to spawn another
process/app or at least have the option to hide unhide/rearrange the order
of the toolbars…

Maybe it seems I’m straying somewhat from the original question, but since
the gtk-demo clearly shows that they can be mixed, why wouldn’t glade still
be a practical solution?On Sat, Aug 16, 2008 at 7:19 AM, Warren LEVIN wrote:

Hello!

By the way, it would be really neat to allow SDL to be integrated in other
GUI like GTK+, QT or even wxWdigets :wink: .

See you

2008/8/15 Torsten Giebl

Hello !

Just got thinking about this, why isn’t there a gui for SDL that you can

graphically make the GUI like GTK’s Glade? If there is, I’m interested in
what it might be and how featured it may be compared to Glade.

There are GUIs for SDL, for example ParaGUI, but
i don’t think there is any GUI Toolkit for SDL that
has a GUI builder.

The reason why there are not so many GUI Toolkits
with SDL, especially like QT and GTK, is simple.
SDL 1.2 only supports one window, which
makes it useless for GUI Toolkit porting.

But SDL 1.3/2.0 will change that, and maybe we will see
great Toolkits coming to SDL, for example FLTK.

CU


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I understand that Torsten said that SDL1.2 can only support 1 window, but
that doesn’t seem to be a concern of mine at this point, and I did compile
the gtk-demo and it is similar to what I am looking for. I prefer most apps
to be in 1 window anyway. I’m guessing the intended point here is that SDL
cannot create child windows inside of another? Also as far as adding a
movable toolbar to my app, would that be out of the question, as most
toolbars are drag and droppable. I would think that even if this is not
possible, you could still create a user interface to spawn another
process/app or at least have the option to hide unhide/rearrange the order
of the toolbars…

Maybe it seems I’m straying somewhat from the original question, but since
the gtk-demo clearly shows that they can be mixed, why wouldn’t glade still
be a practical solution?

It’s not so much a limitation on what your overall application can do,
as to what can happen within the SDL window.

In SDL 1.2, there’s no such thing as “child windows”, in fact, there’s
no concept of “window”, there’s just a “current video mode”, which has
flags, and one of them control whether that “video mode” is fullscreen
or not. You can’t resize SDL windows, because SDL 1.2 applications are
in a bit of delusional state where they think they’re actually in full
control of the situation, barely acknowledging that there’s even a
"close window" button. SDL 1.2 applications like to hang out together
and reminisce of DOS and talk about their favourite VGA register
hacks. :slight_smile:

When mixing SDL and GTK+, what you can do is create a child window in
GTK+, and tell SDL “this is the screen”. So SDL doesn’t really know
there’s anything outside of its window, for it, that’s the whole
world. You application just patronizes it a little bit…

The GTK+ part of the application can have as many windows as it wants
(but can only have one SDL “viewport” in the whole application), use
popout toolbars, be designed with Glade, whatever you want. But inside
the lone SDL viewport, there’s no Glade, there’s no toolbar, there’s
just SDL stuff.

The suggestion to use ParaGUI was to be able to put some GUI inside
of SDL, ParaGUI being a GUI toolkit for SDL (much like GTK+ is a GUI
toolkit for X11).

SDL is like the Matrix or something, and GTK+ is the real world. :-)On Thu, Jan 15, 2009 at 12:40 AM, Jonathan Greig wrote:


http://pphaneuf.livejournal.com/

You want the GTK+ Indirect Renderer project:

http://nanosleep.org/wiki/GTK%2B_Indirect_Renderer

This is a GDK back-end based on Cairo, a vector graphics library which
in turn can be connected to SDL or OpenGL.

I have been unable to find the time to see how mature or stable this
is. I also want to use Glade XML to build in-game GUIs (which can have
the look you want using GTK+ themes.) Please keep the list and/or me
well-informed of your progress, it’s a very interesting subject, and
one very important to me.On Thu, Jan 15, 2009 at 12:40 AM, Jonathan Greig wrote:

I’ve been looking into GTK + SDL some more.


http://codebad.com/

To clarify, when I say “in-game GUI” I mean completely within the
game. GDK needs to produce new top-level windows in order to provide
things like tearable menus and toolbars. If there’s anything not yet
implemented in GTK+IR, it’s probably spawning new SDL windows, because
that’s a fairly new feature. This suits my purposes just fine however.
If anything, I would probably want to write my own windowing layer
into the GDK-backend so that the windows “exist within” (as so to
speak) my game window.On Thu, Jan 15, 2009 at 10:28 AM, Donny Viszneki <@Donny_Viszneki> wrote:

I also want to use Glade XML to build in-game GUIs


http://codebad.com/