Difference between revisions of "Gtk2Hs"

From HaskellWiki
Jump to navigation Jump to search
(remove Mac install instructions (link to subpage))
(delete outdated links + update some of the information)
 
(5 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
== Homepage ==
 
== Homepage ==
   
http://haskell.org/gtk2hs/
+
http://projects.haskell.org/gtk2hs/
   
 
== Tutorials and Demos ==
 
== Tutorials and Demos ==
Line 21: Line 21:
 
== Status ==
 
== Status ==
   
  +
See [[Gtk2Hs/Installation#Supported_Versions]] for details on which systems should be able to build Gtk2Hs and which are known to be able to build Gtk2Hs.
It currently works with Gtk+ 2.0 through to 2.22 on Unix, Win32 and MacOS X.
 
Details please check : http://www.gtk.org/language-bindings.html
 
 
It currently builds with ghc 5.04.3 through to 7.xx.x (6.12.2 have runtime bug, don't use it)
 
   
 
== Installation Notes ==
 
== Installation Notes ==
   
* [[Gtk2Hs/Windows|Windows]]
+
See [[Gtk2Hs/Installation]].
* [[Gtk2Hs/Mac|Mac]]
 
 
=== Ubuntu ===
 
 
Installing ThreadScope on Ubuntu is easy. First, install the dependencies
 
 
sudo apt-get install libgtk2.0-dev libpango1.0-dev libglib2.0-dev libcairo2-dev
 
 
and then install ThreadScope
 
 
cabal install ThreadScope
 
   
 
== Demos ==
 
== Demos ==
Line 52: Line 38:
 
These are links to FAQS on the main site.
 
These are links to FAQS on the main site.
 
*[http://haskell.org/gtk2hs/archives/2005/06/23/hiding-the-console-on-windows/#more-26 Hiding the console on windows]
 
*[http://haskell.org/gtk2hs/archives/2005/06/23/hiding-the-console-on-windows/#more-26 Hiding the console on windows]
*[http://haskell.org/gtk2hs/archives/2005/07/24/writing-multi-threaded-guis/#more-38 Writing multi-threaded GUIs]
 
*[http://haskell.org/gtk2hs/archives/2005/06/24/building-from-source-on-windows/#more-15 Building on Windows]
 
 
*[http://haskell.org/gtk2hs/development/#darcs Checkout instructions]. Also see [[Darcs]]
 
*[http://haskell.org/gtk2hs/development/#darcs Checkout instructions]. Also see [[Darcs]]
   

Latest revision as of 20:16, 1 December 2012

What is it?

Gtk2Hs is a Haskell binding to Gtk+ 2.x. Using it, one can write Gtk+ based applications with GHC.

Homepage

http://projects.haskell.org/gtk2hs/

Tutorials and Demos

http://www.haskell.org/haskellwiki/Gtk2Hs/Tutorials

Some demonstration programs can be found at:

http://code.haskell.org/gtk2hs/gio/demo/
http://code.haskell.org/gtk2hs/pango/demo/
http://code.haskell.org/gtk2hs/cairo/demo/
http://code.haskell.org/gtk2hs/gtk/demo/

Status

See Gtk2Hs/Installation#Supported_Versions for details on which systems should be able to build Gtk2Hs and which are known to be able to build Gtk2Hs.

Installation Notes

See Gtk2Hs/Installation.

Demos

OpenGL and Gtk2Hs

Gtk2Hs/Demos/GtkGLext/hello.hs

Gtk2Hs/Demos/GtkGLext/terrain.hs requires Gtk2Hs/Demos/GtkGLext/terrain.xpm

FAQs

These are links to FAQS on the main site.