This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 14374d9981a9e1c76d6f83287ca3d71612c8d659 (commit) via 58de8652bc7329e9307ddca14ea8e28775d328ec (commit) from 1c86bf51648b295323c49f14f63c14fee0f33dcf (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/14374d9981a9e1c76d6f83287ca3d71612c8d...
commit 14374d9981a9e1c76d6f83287ca3d71612c8d659 Author: Cyril Hrubis metan@ucw.cz Date: Sat Mar 23 20:21:56 2013 +0100
doc: Update X11 backend docs.
diff --git a/doc/backends.txt b/doc/backends.txt index 8cfb010..2d1398a 100644 --- a/doc/backends.txt +++ b/doc/backends.txt @@ -118,7 +118,12 @@ time).
This backend feeds key events into global input queue.
-TODO: X11 backend will be changed to support more windows at a time. +This backends supports multiple windows. Each time you call the initialization +rutine new backend structure is returned. All backend instances share the xlib +connection so you need to wait or poll only on one of them. Each backend, on +the other hand, has its own input queue. + +TIP: See mutliple windows link:example_x11_windows.html[example].
[source,c] ------------------------------------------------------------------------------- diff --git a/doc/example_x11_windows.txt b/doc/example_x11_windows.txt new file mode 100644 index 0000000..4e4bb31 --- /dev/null +++ b/doc/example_x11_windows.txt @@ -0,0 +1,8 @@ +Graphics Backend Example +------------------------ +.An example how to create and manage two windows using the X11 backend + +[source,c] +------------------------------------------------------------------ +include::../demos/c_simple/x11_windows.c[] +------------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/58de8652bc7329e9307ddca14ea8e28775d32...
commit 58de8652bc7329e9307ddca14ea8e28775d328ec Author: Cyril Hrubis metan@ucw.cz Date: Sat Mar 23 20:06:37 2013 +0100
doc: pywrap: Starts python loaders docs.
diff --git a/doc/Makefile b/doc/Makefile index 4537bf9..840ea66 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -5,7 +5,7 @@ SOURCES=general.txt context.txt loaders.txt filters.txt basic_types.txt get_put_pixel.txt blits.txt progress_callback.txt text_api.txt event_queue.txt
-SOURCES+=core_python.txt gfx_python.txt +SOURCES+=core_python.txt gfx_python.txt loaders_python.txt
EXAMPLE_SOURCES=$(wildcard example_*.txt)
diff --git a/doc/asciidoc.conf b/doc/asciidoc.conf index 8ce8d85..af20f91 100644 --- a/doc/asciidoc.conf +++ b/doc/asciidoc.conf @@ -60,6 +60,7 @@ endif::disable-javascript[] <ul> <li><a href="core_python.html">Core</a></li> <li><a href="gfx_python.html">Gfx</a></li> + <li><a href="loaders_python.html">Loaders</a></li> </ul> </div>
diff --git a/doc/loaders_python.txt b/doc/loaders_python.txt new file mode 100644 index 0000000..4ac158b --- /dev/null +++ b/doc/loaders_python.txt @@ -0,0 +1,28 @@ +Python Loaders module +--------------------- + +The python binding maps mostly to the C API with the 'GP_' prefix stripped. + +Loaders adds support for loading and storing contexts into/from various image +fomats. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.loaders as loaders + + img = loaders.Load(path, callback=None) + +------------------------------------------------------------------------------- + +Loads an image from a file. + +May raise 'OSError' with errno set to 'EPERM', 'EISDIR', 'ENOENT' or any other +'errno' set by 'open(2)', 'read(2)', 'seek(2)'. + +May raise 'OSError' with errno set to 'ENOSYS' on unsupported or not recognized +format. + +May raise 'OSError' with errno set to 'EIO' when file is damaged. + +May raise 'OSError' with errno set to 'ECANCELED' when action was interrupted +by callback.
-----------------------------------------------------------------------
Summary of changes: doc/Makefile | 2 +- doc/asciidoc.conf | 1 + doc/backends.txt | 7 ++++- ...ogress_callback.txt => example_x11_windows.txt} | 3 +- doc/loaders_python.txt | 28 ++++++++++++++++++++ 5 files changed, 38 insertions(+), 3 deletions(-) copy doc/{example_loaders_progress_callback.txt => example_x11_windows.txt} (63%) create mode 100644 doc/loaders_python.txt
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.