Go to the source code of this file.
◆ determine_newline_type()
char determine_newline_type |
( |
WERD * |
word, |
|
|
BLOCK * |
block, |
|
|
WERD * |
next_word, |
|
|
BLOCK * |
next_block |
|
) |
| |
test line ends
- Parameters
-
word | word to do |
block | current block |
next_word | next word |
next_block | block of next word |
Definition at line 220 of file output.cpp.
234 if (next_word ==
nullptr || next_block ==
nullptr || block != next_block)
236 if (next_word->
space () > 0)
242 end_gap = block_box.
right () - word_box.
right ();
243 end_gap -= (int32_t) block->
space ();
244 width = next_box.
right () - next_box.
left ();
int16_t space() const
return spacing
TBOX bounding_box() const
bool flag(WERD_FLAGS mask) const
void bounding_box(ICOORD &bottom_left, ICOORD &top_right) const
get box