| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
#ifndef __GTK_IIMAGE_TOOL_H__ |
|---|
| 21 |
#define __GTK_IIMAGE_TOOL_H__ |
|---|
| 22 |
|
|---|
| 23 |
#include <gdk/gdk.h> |
|---|
| 24 |
#include <gtk/gtk.h> |
|---|
| 25 |
#include "image_view_drawer.h" |
|---|
| 26 |
|
|---|
| 27 |
G_BEGIN_DECLS |
|---|
| 28 |
|
|---|
| 29 |
#define GTK_TYPE_IIMAGE_TOOL (gtk_iimage_tool_get_type ()) |
|---|
| 30 |
#define GTK_IIMAGE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IIMAGE_TOOL, GtkIImageTool)) |
|---|
| 31 |
#define GTK_IIMAGE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IIMAGE_TOOL, GtkIImageToolClass)) |
|---|
| 32 |
#define GTK_IS_IIMAGE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IIMAGE_TOOL)) |
|---|
| 33 |
#define GTK_IS_IIMAGE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IIMAGE_TOOL)) |
|---|
| 34 |
#define GTK_IIMAGE_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_IIMAGE_TOOL, GtkIImageToolClass)) |
|---|
| 35 |
|
|---|
| 36 |
typedef struct _GtkIImageTool GtkIImageTool; |
|---|
| 37 |
typedef struct _GtkIImageToolClass GtkIImageToolClass; |
|---|
| 38 |
|
|---|
| 39 |
struct _GtkIImageToolClass |
|---|
| 40 |
{ |
|---|
| 41 |
GTypeInterface parent; |
|---|
| 42 |
gboolean (*button_press) (GtkIImageTool *tool, |
|---|
| 43 |
GdkEventButton *ev); |
|---|
| 44 |
gboolean (*button_release) (GtkIImageTool *tool, |
|---|
| 45 |
GdkEventButton *ev); |
|---|
| 46 |
gboolean (*motion_notify) (GtkIImageTool *tool, |
|---|
| 47 |
GdkEventMotion *ev); |
|---|
| 48 |
GdkCursor* (*cursor_at_point) (GtkIImageTool *tool, |
|---|
| 49 |
int x, |
|---|
| 50 |
int y); |
|---|
| 51 |
void (*pixbuf_changed) (GtkIImageTool *tool, |
|---|
| 52 |
gboolean reset_fit); |
|---|
| 53 |
void (*paint_image) (GtkIImageTool *tool, |
|---|
| 54 |
DrawSettings *ds, |
|---|
| 55 |
GdkDrawable *drawable); |
|---|
| 56 |
}; |
|---|
| 57 |
|
|---|
| 58 |
GType gtk_iimage_tool_get_type (void) G_GNUC_CONST; |
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
gboolean gtk_iimage_tool_button_press (GtkIImageTool *tool, |
|---|
| 63 |
GdkEventButton *ev); |
|---|
| 64 |
gboolean gtk_iimage_tool_button_release (GtkIImageTool *tool, |
|---|
| 65 |
GdkEventButton *ev); |
|---|
| 66 |
gboolean gtk_iimage_tool_motion_notify (GtkIImageTool *tool, |
|---|
| 67 |
GdkEventMotion *ev); |
|---|
| 68 |
void gtk_iimage_tool_pixbuf_changed (GtkIImageTool *tool, |
|---|
| 69 |
gboolean reset_fit); |
|---|
| 70 |
void gtk_iimage_tool_paint_image (GtkIImageTool *tool, |
|---|
| 71 |
DrawSettings *ds, |
|---|
| 72 |
GdkDrawable *drawable); |
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 |
GdkCursor *gtk_iimage_tool_cursor_at_point (GtkIImageTool *tool, |
|---|
| 76 |
int x, |
|---|
| 77 |
int y); |
|---|
| 78 |
|
|---|
| 79 |
#endif |
|---|
| 80 |
|
|---|