API reference: Difference between revisions
m (Add section for D-BUS interface documentation.) |
(→GUI Libraries: Break out and add direct pango link) |
||
Line 24: | Line 24: | ||
** [http://www.vrplumber.com/sugar-docs/sugar.chat.html Clipboard] -- activity's interface to the UI's clipboard interface |
** [http://www.vrplumber.com/sugar-docs/sugar.chat.html Clipboard] -- activity's interface to the UI's clipboard interface |
||
** [http://www.vrplumber.com/sugar-docs/sugar.datastore.datastore.html Datastore] -- activity's interface to the datastore service |
** [http://www.vrplumber.com/sugar-docs/sugar.datastore.datastore.html Datastore] -- activity's interface to the datastore service |
||
* [http://www.pygtk.org/reference.html Gtk], [http://www.vrplumber.com/sugar-docs/gtk.html (PyDoc)] -- GUI library underlying the Sugar UI |
* [http://www.pygtk.org/reference.html Gtk], [http://www.vrplumber.com/sugar-docs/gtk.html (PyDoc)] -- GUI library underlying the Sugar UI |
||
** [http://www.pygtk.org/docs/pygtk/atk-class-reference.html Accessibility Toolkit (ATK)] [http://www.vrplumber.com/sugar-docs/atk.html (PyDoc)] -- tools for providing accessible interfaces |
|||
** [http://www.pygtk.org/docs/pygobject/index.html GObject] [http://www.vrplumber.com/sugar-docs/gobject.html (PyDoc)] -- non-GUI core library |
|||
⚫ | |||
* [http://www.vrplumber.com/sugar-docs/hippo.html Hippo Canvas] -- canvas mechanism used by the Sugar.graphics libraries |
* [http://www.vrplumber.com/sugar-docs/hippo.html Hippo Canvas] -- canvas mechanism used by the Sugar.graphics libraries |
||
* [http://cairographics.org/pycairo/ Cairo] [http://www.vrplumber.com/sugar-docs/cairo.html (PyDoc)] -- Low-level vector graphics rendering library |
* [http://cairographics.org/pycairo/ Cairo] [http://www.vrplumber.com/sugar-docs/cairo.html (PyDoc)] -- Low-level vector graphics rendering library |
||
* [http://www.vrplumber.com/sugar-docs/rsvg.html RSVG] -- Library for rendering SVG text from files/strings onto Cairo Canvases |
* [http://www.vrplumber.com/sugar-docs/rsvg.html RSVG] -- Library for rendering SVG text from files/strings onto Cairo Canvases |
||
⚫ | |||
=== High-Level Widgets === |
=== High-Level Widgets === |
Revision as of 05:02, 2 September 2007
The OLPC platform includes a large number of libraries and services. This page attempts to gather links to reference works which can be used when programming the XO laptops. This reference is primarily intended for Software Developers.
Platform Requirements
- Human interaction guidelines (HIG) for Sugar activities
- Activity Bundles describes the packaging structure
- Understanding sugar code provides an overview of how Sugar interacts with activities, including startup and shutdown, useful to understand the environment in which your activity will run
- Bitfrost summary (full spec) the security system which will control activities and their interaction with the system and other users
- Software components is a somewhat old document describing the various pieces of software and libraries involved in the system.
Python Libraries
Where official reference documentation isn't available, PyDoc-generated documentation is provided. You can generate local copies of the PyDoc-generated documentation from a running official image. Script is available via bzr branch http://www.vrplumber.com/bzr/autodoc
GUI Libraries
Libraries for creating standard Windows-Icon-Menu-Pointer (WIMP) GUI applications.
- Sugar Architecture (PyDoc) -- core UI and service libraries
- Gtk, (PyDoc) -- GUI library underlying the Sugar UI
- Hippo Canvas -- canvas mechanism used by the Sugar.graphics libraries
- Cairo (PyDoc) -- Low-level vector graphics rendering library
- RSVG -- Library for rendering SVG text from files/strings onto Cairo Canvases
High-Level Widgets
GUI (GTK) controls which expose the functionality of entire complex applications for use by other projects.
- Abiword -- GTK widget embedding the Abiword Word-Processor
- HulaHop -- embeds a Gecko 1.9 (Firefox 3.0 ocore) rendering widget XXX confirm that's what it really is
- Evince -- PDF (and similar) document viewer as a GTK widget
Multimedia Libraries
Libraries that deal with multimedia and gaming functionality.
- GStreamer (PyDoc) -- multimedia streaming library
- CSound -- the CSound audio-generation library
- OLPC Games -- PyGame wrapper that makes working within the OLPC-XO environment relatively straightforward (Strongly recommended for PyGame usage on the XO!)
- PyGame -- GUI library suitable for Sprite-based 2D game development
Communications and Networking
Libraries for connecting to other processes, either on the local machine or across the network
- D-BUS (PyDoc) -- desktop messaging (Remote Procedure Call (RPC) and Asynchronous Signalling) engine
- Telepathy -- buddy and connection management including cross-machine RPC over D-BUS
- PyXPCOM -- Library for controlling XPCOM applications (currently just XULRunner on the XO) XXX Should be available, but doesn't appear to be (that is, import xpcom doesn't work)
Support Libraries
Libraries which aren't neither GUI nor multi-media
- SECore -- search engine implementation
- JSON -- Javascript Object Notation parser/linearisation library
- UrlGrabber -- url downloading library
- OLPC -- the data-store implementation
Extraneous Libraries
Libraries which are present in the current builds, but not particularly "part" of the Sugar environment and which may be removed eventually.
Smalltalk Libraries
C Libraries
D-BUS Services
- Avahi -- local service discovery, e.g. for finding particular services provided on the mesh network
- NetworkManager -- network management service
- Hardware Abstraction Layer Daemon (hald) -- control of standard hardware functionality