aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-05-21 23:42:16 +0200
committerThomas White <taw@bitwiz.org.uk>2011-05-21 23:42:16 +0200
commit18285193ab891014089227a459cfab7c2560af02 (patch)
tree1fcdb08adc359d87e24e60bef69591e6f0c18ede /src/presentation.h
parent06836da21128e7ce72d06e208b19078e69c70f9c (diff)
Add slide rendering machinery
Diffstat (limited to 'src/presentation.h')
-rw-r--r--src/presentation.h42
1 files changed, 38 insertions, 4 deletions
diff --git a/src/presentation.h b/src/presentation.h
index 14829c7..5b219a2 100644
--- a/src/presentation.h
+++ b/src/presentation.h
@@ -31,18 +31,52 @@
#include <gtk/gtk.h>
+enum objtype
+{
+ RECTANGLE,
+};
+
+
+struct object
+{
+ enum objtype type;
+};
+
+
+struct slide
+{
+ cairo_surface_t *render_cache;
+ int render_cache_seq;
+
+ int n_objects;
+ struct object *objects;
+ int object_seq;
+
+ double slide_width;
+ double slide_height;
+};
+
+
struct presentation
{
- char *titlebar;
- char *filename;
+ char *titlebar;
+ char *filename;
GtkWidget *window;
GtkWidget *drawingarea;
GtkUIManager *ui;
GtkActionGroup *action_group;
- double slide_width;
- double slide_height;
+ double slide_width;
+ double slide_height;
+ double border_offs_x;
+ double border_offs_y;
+
+ /* The slide currently being displayed */
+ unsigned int view_slide;
+
+ unsigned int num_slides;
+ struct slide **slides;
};