Skip to main content

low-level drawing and interaction

Project description

https://docs.enthought.com/enable

Build 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 the Enable/Kiva project:

  • Setuptools

  • Numpy

  • SWIG

  • fonttools

  • (on Linux) X11-devel (development tools for X11)

  • (on Linux) libglu1-mesa-dev (OpenGL utility library for development)

  • (on Mac OS X) Cython

Enable/Kiva also have the following requirements:

Runtime:

Optional:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enable-5.3.0.tar.gz (3.9 MB view details)

Uploaded Source

File details

Details for the file enable-5.3.0.tar.gz.

File metadata

  • Download URL: enable-5.3.0.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.3 tqdm/4.62.3 importlib-metadata/4.4.0 keyring/16.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.12

File hashes

Hashes for enable-5.3.0.tar.gz
Algorithm Hash digest
SHA256 024cabe1bd617b69e58d67a893448bc0cb5bf9cf854e4fb093139c9d34c239a4
MD5 2306fbc8998076547f226d528f69eeba
BLAKE2b-256 120e196271698c95fe068150a10f0a68b97da649f82fbbf11e280473ec07030c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page