diff options
Diffstat (limited to 'libstorycode/narrative_render_cairo.h')
-rw-r--r-- | libstorycode/narrative_render_cairo.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libstorycode/narrative_render_cairo.h b/libstorycode/narrative_render_cairo.h index 93941df..690517d 100644 --- a/libstorycode/narrative_render_cairo.h +++ b/libstorycode/narrative_render_cairo.h @@ -30,14 +30,17 @@ #include "presentation.h" #include "imagestore.h" +struct edit_pos +{ + int para; /* Paragraph number (corresponding to narrative items) */ + int pos; /* Byte position within paragraph (yes, really) */ + int trail; /* 1 = end of character, 0 = before */ +}; extern int narrative_wrap_range(Narrative *n, Stylesheet *stylesheet, PangoLanguage *lang, PangoContext *pc, double w, - ImageStore *is, int min, int max); - -extern int narrative_wrap(Narrative *n, Stylesheet *stylesheet, - PangoLanguage *lang, PangoContext *pc, double w, - ImageStore *is); + ImageStore *is, int min, int max, + struct edit_pos sel_start, struct edit_pos sel_end); extern double narrative_get_height(Narrative *n); |