Name

DrawingArea —

A user-defined widget.

Synopsis

drawingAreaNew:: IO DrawingArea
drawingAreaGetDrawWindow:: DrawingArea -> IO DrawWindow
drawingAreaGetSize:: DrawingArea -> IO (Int,Int)

Introduction

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.

Constructors

drawingAreaNew

Create a new custom widget.

drawingAreaNew

Methods

drawingAreaGetDrawWindow

Retrieves the Drawable part.

drawingAreaGetDrawWindow:: DrawingArea:: IO DrawWindow
da

drawingAreaGetSize

Returns the current size.

drawingAreaGetSize:: DrawingArea:: IO (Int,Int)
da

This information may be out of date if the use is resizing the window.