diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-13 20:02:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-13 20:05:10 -0400 |
commit | c8212c485827cddd3c9a6a7c2a57e54d9254a10c (patch) | |
tree | b20cd0938e947fd50d5ea1ac792e065a8ea84643 /pango/pango-break.h | |
parent | b3cd1503ae2cf6ab9e12d8ba86934e23dfee3898 (diff) | |
download | pango-c8212c485827cddd3c9a6a7c2a57e54d9254a10c.tar.gz |
Clean up docs a bit
Avoid duplicate comments in struct defintions.
Diffstat (limited to 'pango/pango-break.h')
-rw-r--r-- | pango/pango-break.h | 58 |
1 files changed, 13 insertions, 45 deletions
diff --git a/pango/pango-break.h b/pango/pango-break.h index 92af390b..b035506e 100644 --- a/pango/pango-break.h +++ b/pango/pango-break.h @@ -71,7 +71,7 @@ G_BEGIN_DECLS * those following Latin, Cyrillic or Greek base characters. * @is_expandable_space: is a whitespace character that can possibly be * expanded for justification purposes. (Since: 1.18) - * @is_word_boundary: is a word boundary. + * @is_word_boundary: is a word boundary, as defined by UAX#29. * More specifically, means that this is not a position in the middle * of a word. For example, both sides of a punctuation mark are * considered word boundaries. This flag is particularly useful when @@ -85,51 +85,19 @@ G_BEGIN_DECLS */ struct _PangoLogAttr { - guint is_line_break : 1; /* Can break line in front of character */ - - guint is_mandatory_break : 1; /* Must break line in front of character */ - - guint is_char_break : 1; /* Can break here when doing char wrap */ - - guint is_white : 1; /* Whitespace character */ - - /* Cursor can appear in front of character (i.e. this is a grapheme - * boundary, or the first character in the text). - */ - guint is_cursor_position : 1; - - /* Note that in degenerate cases, you could have both start/end set on - * some text, most likely for sentences (e.g. no space after a period, so - * the next sentence starts right away). - */ - - guint is_word_start : 1; /* first character in a word */ - guint is_word_end : 1; /* is first non-word char after a word */ - - /* There are two ways to divide sentences. The first assigns all - * intersentence whitespace/control/format chars to some sentence, - * so all chars are in some sentence; is_sentence_boundary denotes - * the boundaries there. The second way doesn't assign - * between-sentence spaces, etc. to any sentence, so - * is_sentence_start/is_sentence_end mark the boundaries of those - * sentences. - */ - guint is_sentence_boundary : 1; - guint is_sentence_start : 1; /* first character in a sentence */ - guint is_sentence_end : 1; /* first non-sentence char after a sentence */ - - /* If set, backspace deletes one character rather than - * the entire grapheme cluster. - */ + guint is_line_break : 1; + guint is_mandatory_break : 1; + guint is_char_break : 1; + guint is_white : 1; + guint is_cursor_position : 1; + guint is_word_start : 1; + guint is_word_end : 1; + guint is_sentence_boundary : 1; + guint is_sentence_start : 1; + guint is_sentence_end : 1; guint backspace_deletes_character : 1; - - /* Only few space variants (U+0020 and U+00A0) have variable - * width during justification. - */ - guint is_expandable_space : 1; - - /* Word boundary as defined by UAX#29 */ - guint is_word_boundary : 1; /* is NOT in the middle of a word */ + guint is_expandable_space : 1; + guint is_word_boundary : 1; }; /* Determine information about cluster/word/line breaks in a string |