Rich Graphic Interface with Ruby

D

Diego Bernardes

What is the best way to get a really nice gui in ruby?

Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
Opengl but i think its alot complicated, have any other good one that i
dont know? cairo?..?


Thanks
 
J

James Britt

Diego said:
What is the best way to get a really nice gui in ruby?

Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
Opengl but i think its alot complicated, have any other good one that i
dont know? cairo?..?

Use Swing with JRuby + Monkeybars

Magically easy, cross-platform, pure-Ruby goodness.


http://monkeybars.rubyforge.org/



--
James Britt

"In physics the truth is rarely perfectly clear, and that is certainly
universally the case in human affairs. Hence, what is not surrounded by
uncertainty cannot be the truth."
- R. Feynman
 
D

Daniel Brumbaugh Keeney

What is the best way to get a really nice gui in ruby?

Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
Opengl but i think its alot complicated, have any other good one that i
dont know? cairo?..?

If you're looking for something lower-level, perhaps

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/GtkGLExt
http://cairographics.org/rcairo/
http://raa.ruby-lang.org/project/opengl/
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=X11

IIRC, you can also access the native windows API with the win32
libraries. However, I don't know of anyone using these libraries. Most
people prefer abstract GUI toolkits, such as

ruby-gnome2
WxRuby
QtRuby
FXRuby
Tk

WxRuby has an "Advanced User Interface" set of widgets if you're just
looking for something looking a little "shinier".

Daniel Brumbaugh Keeney
 
E

Eleanor McHugh

If you're looking for something lower-level, perhaps

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/GtkGLExt
http://cairographics.org/rcairo/
http://raa.ruby-lang.org/project/opengl/
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=X11

IIRC, you can also access the native windows API with the win32
libraries. However, I don't know of anyone using these libraries. Most
people prefer abstract GUI toolkits, such as

ruby-gnome2
WxRuby
QtRuby
FXRuby
Tk

WxRuby has an "Advanced User Interface" set of widgets if you're just
looking for something looking a little "shinier".

And of course don't forget Shoes :)

http://code.whytheluckystiff.net/shoes/


Ellie

Eleanor McHugh
Games With Brains
 
P

paron

What is the best way to get a really nice gui in ruby?

Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
Opengl but i think its alot complicated, have any other good one that i
dont know? cairo?..?

Thanks

If you search 'ruby xul' you'll find a couple of projects using
RubyOnRails for the backend and xul for the UI. Xul has a ton of
widgets, including canvas and SVG, so you can do a lot with it. (It is
the engine for Mozilla products like Firefox.)You could use it on any
OS that runs Firefox, presumably.

It means using Javascript for the UI internals, but you don't have to
do browser sniffing and all the workarounds for Internet Explorer, so
it is not bad at all. Besides, most of the real processing would
happen on the server.

Ron
 
M

M. Edward (Ed) Borasky

Diego said:
What is the best way to get a really nice gui in ruby?

Opengl? Flex? Air now is going to Linux, maybe a alternative, i like
Opengl but i think its alot complicated, have any other good one that i
dont know? cairo?..?


Thanks

Well ... define "really nice GUI" ... :) :)

Seriously, most of the toolkits will do the common things and require
similar levels of coding effort. But since you mention OpenGL, I'm
assuming you want something involving 3D and motion.
 
D

Diego Bernardes

M. Edward (Ed) Borasky said:
Well ... define "really nice GUI" ... :) :)

Seriously, most of the toolkits will do the common things and require
similar levels of coding effort. But since you mention OpenGL, I'm
assuming you want something involving 3D and motion.

Things like this:
http://screenfashion.org/the_wiinstrument_on_leopard.png
Nice colors, animations, blur...
This application is build on top of Gosu, im making a game with gosu too
so i know a little of it, gonna give it a try

Im tired of the same look app all the time, year after year...

I think the only way its opengl or air(flash/javascript), im gonna use
flash because its more easy XD if it dont do what i want to do i switch
to opengl >.< to use flash with ruby its with the AMF protocol right?
the rubyamf? anyone already used it?

Among the normal toolkits (gtk,qt,wx,...) i really like Shoes, have some
nice features from Processing and NodeBox and have a nice coding, i
liked alot :)
 
V

Vitor P.

[Note: parts of this message were removed to make it a legal post.]

Things like this:
http://screenfashion.org/the_wiinstrument_on_leopard.png
Nice colors, animations, blur...
This application is build on top of Gosu, im making a game with gosu too
so i know a little of it, gonna give it a try

Im tired of the same look app all the time, year after year...

I think the only way its opengl or air(flash/javascript), im gonna use
flash because its more easy XD if it dont do what i want to do i switch
to opengl >.< to use flash with ruby its with the AMF protocol right?
the rubyamf? anyone already used it?

Among the normal toolkits (gtk,qt,wx,...) i really like Shoes, have some
nice features from Processing and NodeBox and have a nice coding, i
liked alot :)

That does look cool, indeed. Maybe you should try Clutter (
http://www.clutter-project.org). It's still maturing, but you can do a lot
of interesting stuff, and there were ruby bindings for 0.4.
 
D

Diego Bernardes

Clutter is nice, i didnt made anything on it, i dont know if they will
keep doing the ruby binding, clutter is in the 0.6 version and all the
bindings too only ruby its using 0.4 =(
but, well, tonight i gonna try to do something on it to see :)

for now i gonna try flash and Clutter, maybe opengl (harddddd ='( hehe)


thx everyone :)
 
M

Michael Guterl

Things like this:
http://screenfashion.org/the_wiinstrument_on_leopard.png
Nice colors, animations, blur...
This application is build on top of Gosu, im making a game with gosu too
so i know a little of it, gonna give it a try

Im tired of the same look app all the time, year after year...

I think the only way its opengl or air(flash/javascript), im gonna use
flash because its more easy XD if it dont do what i want to do i switch
to opengl >.< to use flash with ruby its with the AMF protocol right?
the rubyamf? anyone already used it?

I have used RubyAMF before but only when integrating with Rails. It
takes a little bit of playing around to get associations working
properly, but overall it works well.
If you're going to use Flex, I'd recommend using the Cairngorm
framework to structure your application.

I built some rake tasks which inspects your rails app and generates a
lot of the actionscript boilerplate associated with tying Rails and
Cairngorm together... It is almost in a releasable state, let me know
if you're interested.
Among the normal toolkits (gtk,qt,wx,...) i really like Shoes, have some
nice features from Processing and NodeBox and have a nice coding, i
liked alot :)

Michael Guterl
 
D

Diego Bernardes

I built some rake tasks which inspects your rails app and generates a
lot of the actionscript boilerplate associated with tying Rails and
Cairngorm together... It is almost in a releasable state, let me know
if you're interested.


Michael Guterl

i am! di3go.bernardes dot gmail dot com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,111
Latest member
PorterZ31

Latest Threads

Top