1
#ifndef TEXT_BOUNDARY_H_INKSCAPE
2
#define TEXT_BOUNDARY_H_INKSCAPE
4
/** \file Definition of text_boundary. */
7
* License: May be redistributed with or without modifications under the terms of the Gnu General
8
* Public License as published by the Free Software Foundation, version 2 or (at your option) any
12
#include "libnrtype/boundary-type.h"
16
* A character/word/paragraph boundary in the text, used by TextWrapper.
18
* (Boundaries are paired.)
20
struct text_boundary {
21
/** Index of the boundary in the text: first char of the text chunk if 'start' boundary, char
22
* right after the boundary otherwise.
25
BoundaryType type; ///< Kind of boundary.
26
bool start; ///< Indicates whether this marks the beginning or end of a chunk.
27
unsigned other; ///< Index in bounds[] of the corresponding end/beginning boundary.
28
unsigned old_ix; ///< Temporary storage used solely SortBoundaries.
29
/// Data for this boundary; usually, one int is enough.
38
#endif /* !TEXT_BOUNDARY_H_INKSCAPE */
43
c-file-style:"stroustrup"
44
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :