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

Safe HaskellSafe-Infered

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.

createRenderableWindow :: Renderable a -> Int -> Int -> IO WindowSource

Create a new GTK window displaying a renderable.