| Home | Trees | Indices | Help |
|
|---|
|
|
This is the API reference for PyGtkImageView which is a set of Python bindings for the GTK+ widget GtkImageView.
The latest releases of both these bindings and GtkImageView itself can always be found at http://trac.bjourne.webfactional.com.
PyGtkImageView contains a simple but full-featured image viewer widget similar to the image viewer panes in gThumb or Eye of GNOME. The main class in the module is ImageView.
This API documentation can be found in the ./docs directory. HTML and PDF documentation is generated by the bash script makedocs.sh. To build the documentation, you need to have the following tools installed:
Then just run the script:
$ ./makedocs.sh
The source for the documentation is found in the ./docs/gtkimageview.py file.
Keep in mind that this documentation is not built from the library source. This is because while epydoc does support generating documentation from extension modules, the result is generally very poor (GTK+ and PyGTK is partially to blame for that).
Epydoc has no support for extracting documentation for signals, which is why signals are here documented as methods prefixed with sig_*. For example, the description for the signal "pixbuf-changed" is found in the method description ImageView.sig_pixbuf_changed.
The examples should make it clear how these signals are supposed to be used.
For that reason, epydoc cannot automatically discern which GTK+ classes GtkImageView's classes subclass. Instead, see the class descriptions for inheritance information.
Major changes between version of PyGtkImageView. For a complete history, also see the Release history document in GtkImageView.
None! First release. :)
Author: Björn Lindqvist
Requires: Python 2.2+, GtkImageView, PyGTK
Version: 1.1.0
License: LGPL
Copyright: © 2007 Björn Lindqvist
To Do:| Classes | |
|
PixbufDrawOpts Container class which holds options for how the pixbuf should be drawn. |
|
|
PixbufDrawCache Cache that ensures fast redraws by storing the last draw operation. |
|
|
IImageTool IImageTool is an interface that defines how ImageView interacts with objects that acts as tools. |
|
|
ImageToolDragger ImageToolDragger is the default image tool for ImageView. |
|
|
ImageToolSelector ImageToolSelector is a tool for selecting areas of an image. |
|
|
ImageNav ImageNav is a popup window that shows a downscaled preview of the pixbuf that ImageView is showing. |
|
|
ImageScrollWin Provides a widget similar in appearance to gtk.ScrollableWindow that is more suitable for displaying ImageView's. |
|
|
ImageView ImageView is a full-featured general purpose image viewer widget for GTK. |
|
|
AnimView AnimView subclasses ImageView. |
|
| Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Variables | |
TRANSP_COLOR = 1Enumeration value to use a single color for transparent parts. |
|
TRANSP_GRID = 2Enumeration value to use a light and dark gray grid for transparent parts. |
|
TRANSP_BACKGROUND = 3Enumeration value to use the widgets background color for transparent parts. |
|
DRAW_METHOD_SCALE = 0Enumeration value to scale the area of the pixbuf to draw and put the result in cache. |
|
DRAW_METHOD_CONTAINS = 1Enumeration value to get the area of the pixbuf to draw from the cache and not update the cache afterwards. |
|
DRAW_METHOD_SCROLL = 2Enumeration value to partially use the cache and scale the region not cached. |
|
| Function Details |
Returns a string with the format "major.minor.micro" which denotes the runtime version of GtkImageView being used. Note that this is the version of the underlying C library, to retrieve the version of the Python bindings use gtkimageview.__version__. >>> gtkimageview.library_version() '1.5.0' |
|
|
|
|
|
| Variables Details |
DRAW_METHOD_SCALEEnumeration value to scale the area of the pixbuf to draw and put the result in cache. This is the slowest draw method as the whole area to be drawn must be rescaled. It is mostly used when no part of PixbufDrawCache:s cache is valid.
|
DRAW_METHOD_CONTAINSEnumeration value to get the area of the pixbuf to draw from the cache and not update the cache afterwards.See Also: PixbufDrawCache.get_method()
|
DRAW_METHOD_SCROLLEnumeration value to partially use the cache and scale the region not cached. The cache is updated with the result.See Also: PixbufDrawCache.get_method()
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Mar 13 01:05:07 2008 | http://epydoc.sourceforge.net |