aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-07-07 23:36:17 +0200
committerThomas White <taw@bitwiz.org.uk>2016-07-07 23:36:17 +0200
commit86caa7da9afb4f2dbd3912da7b28e9ebc448aa72 (patch)
tree484209cc4356b5fe21bf575c5d03f4a278514d4b /src/frame.c
parentf2d8a677bc509b05c1ec07a990e497a20db51695 (diff)
Allow typing into non-text paragraphs
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/frame.c b/src/frame.c
index 32de26e..d818d6c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -45,13 +45,6 @@ struct text_run
double col[4];
};
-enum para_type
-{
- PARA_TYPE_TEXT,
- PARA_TYPE_IMAGE,
- PARA_TYPE_CALLBACK
-};
-
struct _paragraph
{
enum para_type type;
@@ -1070,3 +1063,15 @@ void *get_para_bvp(Paragraph *para)
if ( para->type != PARA_TYPE_CALLBACK ) return NULL;
return para->bvp;
}
+
+
+SCBlock *para_scblock(Paragraph *para)
+{
+ return para->scblock;
+}
+
+
+enum para_type para_type(Paragraph *para)
+{
+ return para->type;
+}