Logo Search packages:      
Sourcecode: inkscape version File versions


Go to the documentation of this file.
/** @file
 * @brief Definition of the structure text_boundary
/* This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * See the file COPYING for details.


#include "libnrtype/boundary-type.h"

 * A character/word/paragraph boundary in the text, used by TextWrapper.
 * (Boundaries are paired.)
00023 struct text_boundary {
    /** Index of the boundary in the text: first char of the text chunk if 'start' boundary, char
     *  right after the boundary otherwise.
00027     int uni_pos;
00028     BoundaryType type;    ///< Kind of boundary.
00029     bool start;   ///< Indicates whether this marks the beginning or end of a chunk.
00030     unsigned other;   ///< Index in bounds[] of the corresponding end/beginning boundary.
00031     unsigned old_ix;  ///< Temporary storage used solely SortBoundaries.
    /// Data for this boundary; usually, one int is enough.
    union {
        int i;
        double f;
        void *p;
    } data;


  Local Variables:
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :

Generated by  Doxygen 1.6.0   Back to index