Drawing Area resource panel

The Drawing Area resource panel is a simple dialog used to set the resources specific to Drawing Area widgets.

The resources specific to a Drawing Area widget fall into three categories: Margins, Resize Policy and Callbacks.

The Margin width and height can be set to explicitly specify the size of the margin around the Drawing Area.

Resize Policy can be set to indicate how a widget is to react to ConfigureNotify events. There are three basic policies: None, Any and Grow. A Policy of None means that the Drawing Area should remain at fixed size. Grow should only expand the widget and Any should shrink or expand the widget as circumstances require.

Drawing Area specific Callbacks are of three types: Expose, Input and Resize. An Expose callback is called whenever an Expose Event is generated for the widget; the callback should repaint all or part of the contents of the Drawing Area depending on the exposed area. An Input callback can be used for managing input events within the Drawing Area; you could for example use the callback to create an interactive drawing program. The Resize callback is called whenever a ConfigureNotify event occurs as the result of the widget being resized.

Callbacks can be registered for the widget by selecting the Callbacks... option from the X-Designer Widget menu.

If you cannot find the resource you want to set in the Drawing Area resource panel, it may be found in the Core Resources Panel (in the Widget menu at the top of the X-Designer display).

See also: