enable.abstract_overlay module

Abstract base class for overlays.

This class is primarily used so that tools can easily distinguish between items underneath them.

class enable.abstract_overlay.AbstractOverlay(component=None, **kw)[source]

Bases: enable.component.Component

The base class for overlays and underlays of the area.

The only default additional feature of an overlay is that it implements an overlay() drawing method that overlays this component on top of another, without the components necessarily having an object containment-ownership relationship.

do_layout(size=None, force=False, component=None)[source]

Tells this component to do a layout at a given size. This differs from the superclass Component.do_layout() in that it accepts an optional component argument.

overlay(other_component, gc, view_bounds=None, mode='normal')[source]

Draws this component overlaid on another component.