Update docs
Document new fields in GtkTextAttributes, remove redundant comments.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
/* gtktexttag.c - text tag object
|
/* gtktextattributes.h - text attributes
|
||||||
*
|
*
|
||||||
* Copyright (c) 1992-1994 The Regents of the University of California.
|
* Copyright (c) 1992-1994 The Regents of the University of California.
|
||||||
* Copyright (c) 1994-1997 Sun Microsystems, Inc.
|
* Copyright (c) 1994-1997 Sun Microsystems, Inc.
|
||||||
@ -155,6 +155,8 @@ struct _GtkTextAppearance
|
|||||||
* @bg_full_height: Background is fit to full line height rather than
|
* @bg_full_height: Background is fit to full line height rather than
|
||||||
* baseline +/- ascent/descent (font height).
|
* baseline +/- ascent/descent (font height).
|
||||||
* @editable: Can edit this text.
|
* @editable: Can edit this text.
|
||||||
|
* @no_fallback: Whether to disable font fallback.
|
||||||
|
* @letter_spacing: Extra space to insert between graphemes, in Pango units
|
||||||
*
|
*
|
||||||
* Using #GtkTextAttributes directly should rarely be necessary.
|
* Using #GtkTextAttributes directly should rarely be necessary.
|
||||||
* It’s primarily useful with gtk_text_iter_get_attributes().
|
* It’s primarily useful with gtk_text_iter_get_attributes().
|
||||||
@ -172,7 +174,6 @@ struct _GtkTextAttributes
|
|||||||
GtkJustification justification;
|
GtkJustification justification;
|
||||||
GtkTextDirection direction;
|
GtkTextDirection direction;
|
||||||
|
|
||||||
/* Individual chunks of this can be set/unset as a group */
|
|
||||||
PangoFontDescription *font;
|
PangoFontDescription *font;
|
||||||
|
|
||||||
gdouble font_scale;
|
gdouble font_scale;
|
||||||
@ -187,37 +188,26 @@ struct _GtkTextAttributes
|
|||||||
|
|
||||||
PangoTabArray *tabs;
|
PangoTabArray *tabs;
|
||||||
|
|
||||||
GtkWrapMode wrap_mode; /* How to handle wrap-around for this tag.
|
GtkWrapMode wrap_mode;
|
||||||
* Must be GTK_WRAPMODE_CHAR,
|
|
||||||
* GTK_WRAPMODE_NONE, GTK_WRAPMODE_WORD
|
|
||||||
*/
|
|
||||||
|
|
||||||
PangoLanguage *language;
|
PangoLanguage *language;
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
/* Paragraph background */
|
|
||||||
GdkColor *pg_bg_color;
|
GdkColor *pg_bg_color;
|
||||||
|
|
||||||
/*< public >*/
|
/*< public >*/
|
||||||
/* hide the text */
|
|
||||||
guint invisible : 1;
|
guint invisible : 1;
|
||||||
|
|
||||||
/* Background is fit to full line height rather than
|
|
||||||
* baseline +/- ascent/descent (font height)
|
|
||||||
*/
|
|
||||||
guint bg_full_height : 1;
|
guint bg_full_height : 1;
|
||||||
|
|
||||||
/* can edit this text */
|
|
||||||
guint editable : 1;
|
guint editable : 1;
|
||||||
|
|
||||||
guint no_fallback: 1;
|
guint no_fallback: 1;
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
/* Paragraph background */
|
|
||||||
GdkRGBA *pg_bg_rgba;
|
GdkRGBA *pg_bg_rgba;
|
||||||
|
|
||||||
|
/*< public >*/
|
||||||
gint letter_spacing;
|
gint letter_spacing;
|
||||||
|
|
||||||
|
/*< private >*/
|
||||||
guint padding[2];
|
guint padding[2];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user