Gtk2HsContentsIndex
Graphics.UI.Gtk.Misc.DrawingArea
Description

A user-defined widget.

  • The DrawingArea widget is used for creating custom user interface elements. It's essentially a blank widget. Drawing on the Drawable returned by drawingAreaGetWindow has to be done each time the window manager sends "expose" events. Note that the library automatically clears the exposed area to the background color before sending the expose event, and that drawing is implicitly clipped to the exposed area. Other events which are interesting for interacting are mouse and butten events defined in Widget. If the widget changes in size (which it does initially), a "configure" event is emitted.
Synopsis
data DrawingArea
class WidgetClass o => DrawingAreaClass o
castToDrawingArea :: GObjectClass obj => obj -> DrawingArea
drawingAreaNew :: IO DrawingArea
drawingAreaGetDrawWindow :: DrawingArea -> IO DrawWindow
drawingAreaGetSize :: DrawingArea -> IO (Int, Int)
Documentation
data DrawingArea
Instances
DrawingAreaClass DrawingArea
WidgetClass DrawingArea
ObjectClass DrawingArea
GObjectClass DrawingArea
class WidgetClass o => DrawingAreaClass o
Instances
DrawingAreaClass DrawingArea
DrawingAreaClass Curve
castToDrawingArea :: GObjectClass obj => obj -> DrawingArea
drawingAreaNew :: IO DrawingArea
Create a new custom widget.
drawingAreaGetDrawWindow :: DrawingArea -> IO DrawWindow
Retrieves the Drawable part.
drawingAreaGetSize :: DrawingArea -> IO (Int, Int)

Returns the current size.

  • This information may be out of date if the use is resizing the window.
Produced by Haddock version 0.6