aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/layout.h
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-10-08 08:21:47 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-10-08 08:21:47 +0800
commit3b1a500fd323b3f3908477f3df66f1ab0ad7674b (patch)
treeb052f622e5e907e079d4d7d8d813cd72558c9ea4 /calendar/gui/layout.h
parent192c70b9786324c3e27e8bca79300c09033d860f (diff)
downloadgsoc2013-evolution-3b1a500fd323b3f3908477f3df66f1ab0ad7674b.tar
gsoc2013-evolution-3b1a500fd323b3f3908477f3df66f1ab0ad7674b.tar.gz
gsoc2013-evolution-3b1a500fd323b3f3908477f3df66f1ab0ad7674b.tar.bz2
gsoc2013-evolution-3b1a500fd323b3f3908477f3df66f1ab0ad7674b.tar.lz
gsoc2013-evolution-3b1a500fd323b3f3908477f3df66f1ab0ad7674b.tar.xz
gsoc2013-evolution-3b1a500fd323b3f3908477f3df66f1ab0ad7674b.tar.zst
gsoc2013-evolution-3b1a500fd323b3f3908477f3df66f1ab0ad7674b.zip
Doh, add the files - Federico
svn path=/trunk/; revision=433
Diffstat (limited to 'calendar/gui/layout.h')
-rw-r--r--calendar/gui/layout.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/calendar/gui/layout.h b/calendar/gui/layout.h
new file mode 100644
index 0000000000..b87cf7e36b
--- /dev/null
+++ b/calendar/gui/layout.h
@@ -0,0 +1,25 @@
+/* Event layout engine for Gnomecal
+ *
+ * Copyright (C) 1998 The Free Software Foundation
+ *
+ * Authors: Miguel de Icaza <miguel@nuclecu.unam.mx>
+ * Federico Mena <federico@nuclecu.unam.mx>
+ */
+
+#ifndef LAYOUT_H
+#define LAYOUT_H
+
+#include "calendar.h"
+
+
+/* This is the main layout function for overlapping events. You pass in a list of CalendarObject
+ * structures and it will calculate a nice non-overlapping layout for them.
+ *
+ * It returns the number of slots ("columns") that you need to take into account when actually
+ * painting the events, the array of the first slot index that each event occupies, and the array of
+ * number of slots that each event occupies. You have to free both arrays.
+ */
+void layout_events (GList *events, int *num_slots, int **allocations, int **slots);
+
+
+#endif