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

GtkTextAppearance for text.

justification

GtkJustification for text.

direction

GtkTextDirection for text.

font

PangoFontDescription for text.

font_scale

Font scale factor.

left_margin

Width of the left margin in pixels.

right_margin

Width of the right margin in pixels.

indent

Amount to indent the paragraph, in pixels.

pixels_above_lines

Pixels of blank space above paragraphs.

pixels_below_lines

Pixels of blank space below paragraphs.

pixels_inside_wrap

Pixels of blank space between wrapped lines in a paragraph.

tabs

Custom PangoTabArray for this text.

wrap_mode

GtkWrapMode for text.

language

PangoLanguage for text.

invisible

Hide the text.

bg_full_height

Background is fit to full line height rather than baseline +/- ascent/descent (font height).

editable

Can edit this text.

no_fallback

Whether to disable font fallback.

letter_spacing

Extra 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

Copies src and returns a new GtkTextAttributes.

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_ref

Increments the reference count on values.

gtk_text_attributes_unref

Decrements the reference count on values, freeing the structure if the reference count reaches 0.