diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2012-10-16 23:55:39 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2012-10-16 23:55:39 (GMT) | 
| commit | f08d214e1b13bd56e0305e2e4ae511f6f7514195 (patch) | |
| tree | bb307e7ad27c87b02d4b59b9a8bfc201e1b53392 /src/glibext/gbufferline.c | |
| parent | 84581571e138d5b7984b6d3198296013ec157d30 (diff) | |
Skipped documentation when computing line widths for rendering.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@270 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/glibext/gbufferline.c')
| -rw-r--r-- | src/glibext/gbufferline.c | 28 | 
1 files changed, 27 insertions, 1 deletions
| diff --git a/src/glibext/gbufferline.c b/src/glibext/gbufferline.c index 6e3c928..4360f8c 100644 --- a/src/glibext/gbufferline.c +++ b/src/glibext/gbufferline.c @@ -89,6 +89,8 @@ struct _GBufferLine      BufferLineColumn merge_start;           /* Début de la zone globale    */      BufferLineColumn last_used;             /* Dernière colonne utilisée   */ +    bool skip_width;                        /* Pas de taille comptabilisée */ +  };  /* Représentation de fragments de texte en ligne (classe) */ @@ -673,6 +675,25 @@ char *g_buffer_line_get_text(const GBufferLine *line)  /******************************************************************************  *                                                                             * +*  Paramètres  : line = ligne à venir compléter.                              * +*                                                                             * +*  Description : Marque la ligne comme étant sans largeur à comptabiliser.    * +*                                                                             * +*  Retour      : -                                                            * +*                                                                             * +*  Remarques   : -                                                            * +*                                                                             * +******************************************************************************/ + +void g_buffer_line_skip_width(GBufferLine *line) +{ +    line->skip_width = true; + +} + + +/****************************************************************************** +*                                                                             *  *  Paramètres  : line  = ligne à venir compléter.                             *  *                index = index de la colonne visée par la procédure.          *  *                                                                             * @@ -686,7 +707,12 @@ char *g_buffer_line_get_text(const GBufferLine *line)  gint g_buffer_line_get_width(GBufferLine *line, BufferLineColumn index)  { -    return get_column_width(&line->columns[index]); +    gint result;                            /* Largeur à retourner         */ + +    if (line->skip_width) result = 0; +    else result = get_column_width(&line->columns[index]); + +    return result;  } | 
