aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/narrative_priv.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-03-30 17:32:24 +0100
committerThomas White <taw@bitwiz.me.uk>2019-03-30 17:32:24 +0100
commit5a1e588c3fbdce549e0b3c487e2671c679890675 (patch)
treece7f29799aa02cec088d2ec676069ae4ac9cac8d /libstorycode/narrative_priv.h
parent96c903e0756e8a85649c1f7d8d6aa1b146b8c038 (diff)
Get rid of Presentation structure
It doesn't have any reason to exist. A Narrative defines the top-level object already. This is, after all, a narrative-based presentation system. This removes a lot of faff surrounding retrieving the Narrative from the Presentation. It also removes a gigantic place for bugs to hide in keeping the Presentation's view of the slides in sync with the Narrative's opinion. What was that quote? "Code is terrible, and we want as little of it as possible in our program."
Diffstat (limited to 'libstorycode/narrative_priv.h')
-rw-r--r--libstorycode/narrative_priv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libstorycode/narrative_priv.h b/libstorycode/narrative_priv.h
index 1a461c4..065b416 100644
--- a/libstorycode/narrative_priv.h
+++ b/libstorycode/narrative_priv.h
@@ -27,6 +27,7 @@
#include <pango/pangocairo.h>
#endif
+#include "imagestore.h"
#include "storycode.h"
#include "slide.h"
@@ -72,8 +73,14 @@ struct narrative_item
struct _narrative
{
+ Stylesheet *stylesheet;
+ ImageStore *imagestore;
+ int saved;
+ const char *language;
+
int n_items;
struct narrative_item *items;
+
double w;
double space_l;
double space_r;