Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/fill/eggfill.h
diff options
context:
space:
mode:
Diffstat (limited to 'fill/eggfill.h')
-rw-r--r--fill/eggfill.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/fill/eggfill.h b/fill/eggfill.h
new file mode 100644
index 0000000..1836043
--- /dev/null
+++ b/fill/eggfill.h
@@ -0,0 +1,77 @@
+/*
+eggfill.h
+
+Fill function and queue list
+
+
+Copyright 2007, NATE-LSI-EPUSP
+
+Oficina is developed in Brazil at Escola Politécnica of
+Universidade de São Paulo. NATE is part of LSI (Integrable
+Systems Laboratory) and stands for Learning, Work and Entertainment
+Research Group. Visit our web page:
+www.lsi.usp.br/nate
+Suggestions, bugs and doubts, please email oficina@lsi.usp.br
+
+Oficina is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2 of
+the License.
+
+Oficina is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public
+License along with Oficina; if not, write to the
+Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+Boston, MA 02110-1301 USA.
+The copy of the GNU General Public License is found in the
+COPYING file included in the source distribution.
+
+
+Authors:
+
+Joyce Alessandra Saul (joycealess@gmail.com)
+Andre Mossinato (andremossinato@gmail.com)
+Nathalia Sautchuk Patrício (nathalia.sautchuk@gmail.com)
+Pedro Kayatt (pekayatt@gmail.com)
+Rafael Barbolo Lopes (barbolo@gmail.com)
+Alexandre A. Gonçalves Martinazzo (alexandremartinazzo@gmail.com)
+
+Colaborators:
+Bruno Gola (brunogola@gmail.com)
+
+Group Manager:
+Irene Karaguilla Ficheman (irene@lsi.usp.br)
+
+Cientific Coordinator:
+Roseli de Deus Lopes (roseli@lsi.usp.br)
+
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <gtk/gtk.h>
+
+/*to implement a queue */
+typedef struct _tno {
+ int info;
+ struct _tno *next;
+} no;
+
+typedef struct _tqueue{
+ no *front;
+ no *rear;
+} queue;
+
+
+int queue_is_empty(queue *q);
+queue *queue_init(void);
+void disposequeue(queue *q);
+void queue_make_empty(queue *q);
+void queue_enqueue(int element, queue *q);
+void queue_dequeue(queue *q);
+/*end of queue*/
+
+void fill(GdkDrawable *drawable, GdkGC *gc, int x, int y, int width, int height, int color);