libgtkimreg3
Gtk+ widget to select region of a (gdkimlib) image
Usage
GtkType gtk_imreg_get_type
(void);
gint gtk_imreg_get_left
(GtkImReg
*
imreg);
gint gtk_imreg_get_top
(GtkImReg
*
imreg);
gint gtk_imreg_get_right
(GtkImReg
*
imreg);
gint gtk_imreg_get_bottom
(GtkImReg
*
imreg);
Overview
Select an area in an image given as GdkImlib structure and obtain the coordinates of this image. The user_area can be NULL or an user supplied widget to add certain functionality.
The gtk_imreg_get_ functions are useful in an OK-callback to obtain the chosen coordinates. The gtk_imreg_set_ functions enable the user to preset a region selection.
Examples
See testimreg.c which is shipped with the sources. In a Debian system you can find it under
/usr/doc/libgtkimreg-dev/example/testimreg
next to an appropriate Makefile and an image example.
Requires
GTK+ 1.2, GdkImlib 1.9.2 or higher