Chart-gtk-1.5.1: Utility functions for using the chart library with GTK

Copyright(c) Tim Docker 2006
LicenseBSD-style (see chart/COPYRIGHT)
Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Chart.Gtk

Description

 

Synopsis

Documentation

renderableToWindow :: Renderable a -> Int -> Int -> IO () Source

Display a renderable in a gtk window.

Note that this is a convenience function that initialises GTK on it's first call, but not subsequent calls. Hence it's unlikely to be compatible with other code using gtk. In that case use createRenderableWindow.

toWindow :: (Default r, ToRenderable r) => Int -> Int -> EC r () -> IO () Source

Generate a new GTK window from the state content of an EC computation. The state may have any type that is an instance of ToRenderable

createRenderableWindow :: Renderable a -> Int -> Int -> IO Window Source

Create a new GTK window displaying a renderable.