| 1 |
============ |
|---|
| 2 |
GtkImageView |
|---|
| 3 |
============ |
|---|
| 4 |
|
|---|
| 5 |
Copyright © 2007-2008 Björn Lindqvist <bjourne@gmail.com> |
|---|
| 6 |
|
|---|
| 7 |
This is the README file for the GtkImageView widget. |
|---|
| 8 |
|
|---|
| 9 |
GtkImageView is a widget that provides a zoomable and panable view of |
|---|
| 10 |
a GdkPixbuf. It is intended to be usable in most types of image |
|---|
| 11 |
viewing applications. |
|---|
| 12 |
|
|---|
| 13 |
Compilation |
|---|
| 14 |
=========== |
|---|
| 15 |
The usual business: |
|---|
| 16 |
|
|---|
| 17 |
$ ./configure --prefix=/some/prefix |
|---|
| 18 |
$ make |
|---|
| 19 |
$ make install |
|---|
| 20 |
|
|---|
| 21 |
You can also use the --enable-gtk-doc configure argument to enable |
|---|
| 22 |
building of API documentation. Because GtkImageView uses c99, you must |
|---|
| 23 |
use a version of gcc newer than 2.96. The gnome-common module must |
|---|
| 24 |
also be installed. |
|---|
| 25 |
|
|---|
| 26 |
Todo |
|---|
| 27 |
==== |
|---|
| 28 |
|
|---|
| 29 |
* Maybe make rotations work correctly. |
|---|
| 30 |
* Implement shifted selection rectangle moving and resizing. |
|---|
| 31 |
|
|---|
| 32 |
Announcement |
|---|
| 33 |
============ |
|---|
| 34 |
|
|---|
| 35 |
(To be posted to the following mailing lists periodically: |
|---|
| 36 |
* gnome-announce-list@gnome.org |
|---|
| 37 |
* gnome-list@gnome.org |
|---|
| 38 |
|
|---|
| 39 |
Subject: [ANN] GtkImageView 1.6.3 - Image viewer widget for GTK+ |
|---|
| 40 |
) |
|---|
| 41 |
|
|---|
| 42 |
I'm pleased to finally announce GtkImageView 1.6.3! |
|---|
| 43 |
|
|---|
| 44 |
Description |
|---|
| 45 |
----------- |
|---|
| 46 |
GtkImageView is a simple image viewer widget for GTK+. Similar to the |
|---|
| 47 |
image viewer panes in gThumb or Eye of Gnome. It makes writing image |
|---|
| 48 |
viewing and editing applications easy. Among its features are: |
|---|
| 49 |
|
|---|
| 50 |
* Mouse and keyboard zooming. |
|---|
| 51 |
* Scrolling and dragging. |
|---|
| 52 |
* Adjustable interpolation. |
|---|
| 53 |
* Fullscreen mode. |
|---|
| 54 |
* GIF animation support. |
|---|
| 55 |
* Ability to make selections. |
|---|
| 56 |
* Extensible using a tool system. |
|---|
| 57 |
|
|---|
| 58 |
Bindings exists for Perl and Python. |
|---|
| 59 |
|
|---|
| 60 |
Download |
|---|
| 61 |
-------- |
|---|
| 62 |
Check it out from Subversion: |
|---|
| 63 |
|
|---|
| 64 |
svn co http://publicsvn.bjourne.webfactional.com/gtkimageview |
|---|
| 65 |
|
|---|
| 66 |
Or download the latest release tarball: |
|---|
| 67 |
|
|---|
| 68 |
http://trac.bjourne.webfactional.com/attachment/wiki/WikiStart/gtkimageview-1.6.3.tar.gz?format=raw |
|---|
| 69 |
|
|---|
| 70 |
API documentation can be found online: |
|---|
| 71 |
|
|---|
| 72 |
http://trac.bjourne.webfactional.com/chrome/common/gtkimageview-docs/ |
|---|
| 73 |
|
|---|
| 74 |
Or by browsing to the ./docs/reference/html/index.html file. |
|---|
| 75 |
|
|---|
| 76 |
Project website: http://trac.bjourne.webfactional.com |
|---|
| 77 |
|
|---|
| 78 |
Examples |
|---|
| 79 |
-------- |
|---|
| 80 |
Here is the canonical example for using the widget:: |
|---|
| 81 |
|
|---|
| 82 |
#include <gtkimageview/gtkimagescrollwin.h> |
|---|
| 83 |
#include <gtkimageview/gtkimageview.h> |
|---|
| 84 |
... |
|---|
| 85 |
GtkWidget *view = gtk_image_view_new (); |
|---|
| 86 |
GtkWidget *scroll = gtk_image_scroll_win_new (GTK_IMAGE_VIEW (view)); |
|---|
| 87 |
|
|---|
| 88 |
/* Where "box" is a GtkBox already part of your layout. */ |
|---|
| 89 |
gtk_box_pack_start (GTK_BOX (box), scroll, TRUE, TRUE, 0); |
|---|
| 90 |
|
|---|
| 91 |
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file ("someimage.png", NULL); |
|---|
| 92 |
gtk_image_view_set_pixbuf (GTK_IMAGE_VIEW (view), pixbuf, TRUE); |
|---|
| 93 |
|
|---|
| 94 |
Future |
|---|
| 95 |
------ |
|---|
| 96 |
* Gtk# bindings. |
|---|
| 97 |
* Haskell bindings. |
|---|