diff options
author | Thomas White <taw@physics.org> | 2017-10-17 21:03:39 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-10-17 21:03:39 +0200 |
commit | 9c929b373d0ffa3fbd8e0de670caaab95b58a101 (patch) | |
tree | be1637d5c46b63473cca591951b16b1099413f1e /src/frame.h | |
parent | 54adeb60b85641f6c1d968200eeb5e5d705c51ea (diff) |
Track newlines at end of paragraphs
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index c52df27..1e46239 100644 --- a/src/frame.h +++ b/src/frame.h @@ -123,6 +123,7 @@ extern double total_height(struct frame *fr); extern Paragraph *last_open_para(struct frame *fr); extern Paragraph *current_para(struct frame *fr); extern void close_last_paragraph(struct frame *fr); +extern int last_para_available_for_text(struct frame *fr); extern void show_para(Paragraph *p); extern void set_para_spacing(Paragraph *para, float space[4]); @@ -130,6 +131,9 @@ extern double paragraph_height(Paragraph *para); extern void render_paragraph(cairo_t *cr, Paragraph *para, ImageStore *is, enum is_size isz); +extern int get_newline_at_end(Paragraph *para); +extern void set_newline_at_end(Paragraph *para); + extern void add_run(Paragraph *para, SCBlock *scblock, SCBlock *macro_real, size_t offs_bytes, size_t len_bytes, PangoFontDescription *fdesc, double col[4]); |