Struct
GtkTextAttributes
Description [src]
struct GtkTextAttributes {
GtkTextAppearance appearance;
GtkJustification justification;
GtkTextDirection direction;
PangoFontDescription* font;
gdouble font_scale;
gint left_margin;
gint right_margin;
gint indent;
gint pixels_above_lines;
gint pixels_below_lines;
gint pixels_inside_wrap;
PangoTabArray* tabs;
GtkWrapMode wrap_mode;
PangoLanguage* language;
guint invisible : 1;
guint bg_full_height : 1;
guint editable : 1;
guint no_fallback : 1;
gint letter_spacing;
}
Using GtkTextAttributes directly should rarely be necessary.
It’s primarily useful with gtk_text_iter_get_attributes().
As with most GTK+ structs, the fields in this struct should only
be read, never modified directly.
Structure members
appearance:GtkTextAppearanceGtkTextAppearancefor text.justification:GtkJustificationGtkJustificationfor text.direction:GtkTextDirectionGtkTextDirectionfor text.font:PangoFontDescriptionPangoFontDescriptionfor text.font_scale:gdoubleFont scale factor.
left_margin:gintWidth of the left margin in pixels.
right_margin:gintWidth of the right margin in pixels.
indent:gintAmount to indent the paragraph, in pixels.
pixels_above_lines:gintPixels of blank space above paragraphs.
pixels_below_lines:gintPixels of blank space below paragraphs.
pixels_inside_wrap:gintPixels of blank space between wrapped lines in a paragraph.
tabs:PangoTabArrayCustom
PangoTabArrayfor this text.wrap_mode:GtkWrapModeGtkWrapModefor text.language:PangoLanguagePangoLanguagefor text.invisible:guintHide the text.
bg_full_height:guintBackground is fit to full line height rather than baseline +/- ascent/descent (font height).
editable:guintCan edit this text.
no_fallback:guintWhether to disable font fallback.
letter_spacing:gintExtra space to insert between graphemes, in Pango units.
Constructors
gtk_text_attributes_new
Creates a GtkTextAttributes, which describes
a set of properties on some text.
Instance methods
gtk_text_attributes_copy_values
Copies the values from src to dest so that dest has
the same values as src. Frees existing values in dest.
gtk_text_attributes_unref
Decrements the reference count on values, freeing the structure
if the reference count reaches 0.