diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-07-07 23:36:17 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-07-07 23:36:17 +0200 |
commit | 86caa7da9afb4f2dbd3912da7b28e9ebc448aa72 (patch) | |
tree | 484209cc4356b5fe21bf575c5d03f4a278514d4b /src/frame.c | |
parent | f2d8a677bc509b05c1ec07a990e497a20db51695 (diff) |
Allow typing into non-text paragraphs
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 19 |
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; +} |