Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Enable: low-level drawing and interaction
Failed to load latest commit information.
docs Fixes based PR comments.
enable Merge pull request #168 from enthought/feature/button-tool
examples Add button tool, tests, docs, and mouse_enter handler to testing.
integrationtests/kiva/agg adjust kiva imports
kiva Store version data in kiva._version
.coveragerc add coverall to the travis ci builds
.gitignore Store version data in kiva._version
.travis.yml build cairo when using venv with site-packages
.travis_before_install fix typo
.travis_before_install_noqt Make sure X11 gets started for Python 2.6 on TravisCI.
CHANGES.txt Typo in CHANGES.txt [skip ci]
LICENSE.txt * Egg-building infrastructure improvements (adding README.txt, LICENS…
MANIFEST.in Add tests that read from .png files.
README.rst add coverage status badge
TODO.txt adjust kiva imports
dev_requirements.txt revert to installing PIL
image_LICENSE.txt fixed imports to new locations
image_LICENSE_CP.txt Updating license files to match the format of the other projects.
image_LICENSE_Eclipse.txt converting to unix line endings and removing excess whitespace
image_LICENSE_Nuvola.txt converting to unix line endings and removing excess whitespace
image_LICENSE_OOo.txt converting to unix line endings and removing excess whitespace
requirements-2.6.txt add dev requirements for python 2.6
setup.py Merge branch 'master' into fix/dev-versioning

README.rst

enable: low-level drawing and interaction

http://github.enthought.com/enable

Build status Coverage status

The Enable project provides two related multi-platform packages for drawing GUI objects.

  • Enable: An object drawing library that supports containment and event notification.
  • Kiva: A multi-platform DisplayPDF vector drawing engine.

Enable

The Enable package is a multi-platform object drawing library built on top of Kiva. The core of Enable is a container/component model for drawing and event notification. The core concepts of Enable are:

  • Component
  • Container
  • Events (mouse, drag, and key events)

Enable provides a high-level interface for creating GUI objects, while enabling a high level of control over user interaction. Enable is a supporting technology for the Chaco and BlockCanvas projects.

Kiva

Kiva is a multi-platform DisplayPDF vector drawing engine that supports multiple output backends, including Windows, GTK, and Macintosh native windowing systems, a variety of raster image formats, PDF, and Postscript.

DisplayPDF is more of a convention than an actual specification. It is a path-based drawing API based on a subset of the Adobe PDF specification. Besides basic vector drawing concepts such as paths, rects, line sytles, and the graphics state stack, it also supports pattern fills, antialiasing, and transparency. Perhaps the most popular implementation of DisplayPDF is Apple's Quartz 2-D graphics API in Mac OS X.

Kiva Features

Kiva currently implements the following features:

  • paths and compiled paths; arcs, bezier curves, rectangles
  • graphics state stack
  • clip stack, disjoint rectangular clip regions
  • raster image blitting
  • arbitrary affine transforms of the graphics context
  • bevelled and mitered joins
  • line width, line dash
  • Freetype or native fonts
  • RGB, RGBA, or grayscale color depths
  • transparency

Prerequisites

You must have the following libraries installed before building or installing the Enable project:

Something went wrong with that request. Please try again.