Returns the type of the current block. See apitypes.h for PolyBlockType. */
| 355 | |
| 356 | /** Returns the type of the current block. See apitypes.h for PolyBlockType. */ |
| 357 | PolyBlockType PageIterator::BlockType() const { |
| 358 | if (it_->block() == NULL || it_->block()->block == NULL) |
| 359 | return PT_UNKNOWN; // Already at the end! |
| 360 | if (it_->block()->block->poly_block() == NULL) |
| 361 | return PT_FLOWING_TEXT; // No layout analysis used - assume text. |
| 362 | return it_->block()->block->poly_block()->isA(); |
| 363 | } |
| 364 | |
| 365 | /** Returns the polygon outline of the current block. The returned Pta must |
| 366 | * be ptaDestroy-ed after use. */ |
no test coverage detected