Página Principal   Hierarquia de Classes   Lista de Componentes   Lista de Arquivos   Componentes Membros  

controller.hpp

00001 /*      controller.hpp - Morpheous
00002  *
00003  *  $Header: /home/aldon/cvs/Morpheous/include/controller.hpp,v 1.2 2003/07/27 20:16:38 aldon Exp $
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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 /* __cplusplus */
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 /* __cplusplus */

Gerado em Sun Sep 21 20:18:44 2003 para Morpheous por doxygen1.2.13.1 escrito por Dimitri van Heesch, © 1997-2001