00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <gtk/gtk.h>
00022 #include <gdk_imlib.h>
00023
00024
00025 enum ActionType
00026 {
00027 ACTION_OPEN_IMAGE1,
00028 ACTION_OPEN_IMAGE2,
00029 ACTION_SAVE_PROJECT,
00030 ACTION_LOAD_PROJECT,
00031 ACTION_SAVE_ANIM
00032 };
00033
00034
00035 #ifdef __cplusplus
00036 extern "C"
00037 {
00038 #endif
00039
00040 void initMorpheous(GtkWidget* widget);
00041
00042 void draw(gint which);
00043
00044 void setAction(enum ActionType a);
00045
00046 void doAction(gchar* filename);
00047
00048 void buttonPress(GdkPoint p, gint which);
00049
00050 void buttonRelease();
00051
00052 void mouseMotion(GdkPoint p, gint which);
00053
00054 void setCreatePoint(gboolean b);
00055
00056 void deleteSelected();
00057
00058 void setViewMorphing(gboolean b);
00059
00060 guchar* getOutputBuffer();
00061
00062 GdkRectangle* getOutputDimensions();
00063
00064 void setProgress(gfloat s);
00065
00066 void renderOutputImage();
00067
00068
00069 #ifdef __cplusplus
00070 }
00071 #endif