gtk.text_attributes
Module for [TextAttributes] class
class TextAttributes
Types 1
Using #GtkTextAttributes directly should rarely be necessary. It’s primarily useful with [gtk.text_iter.TextIter.getAttributes]. As with most GTK+ structs, the fields in this struct should only be read, never modified directly.
Methods
TextAttributes self()Returns `this`, for use in `with` statements.gtk.text_appearance.TextAppearance appearance() @propertyGet `appearance` field. Returns: #GtkTextAppearance for text.gtk.types.Justification justification() @propertyGet `justification` field. Returns: #GtkJustification for text.void justification(gtk.types.Justification propval) @propertySet `justification` field. Params: propval = #GtkJustification for text.gtk.types.TextDirection direction() @propertyGet `direction` field. Returns: #GtkTextDirection for text.void direction(gtk.types.TextDirection propval) @propertySet `direction` field. Params: propval = #GtkTextDirection for text.pango.font_description.FontDescription font() @propertyGet `font` field. Returns: #PangoFontDescription for text.void font(pango.font_description.FontDescription propval) @propertySet `font` field. Params: propval = #PangoFontDescription for text.void leftMargin(int propval) @propertySet `leftMargin` field. Params: propval = Width of the left margin in pixels.void rightMargin(int propval) @propertySet `rightMargin` field. Params: propval = Width of the right margin in pixels.void indent(int propval) @propertySet `indent` field. Params: propval = Amount to indent the paragraph, in pixels.int pixelsAboveLines() @propertyGet `pixelsAboveLines` field. Returns: Pixels of blank space above paragraphs.void pixelsAboveLines(int propval) @propertySet `pixelsAboveLines` field. Params: propval = Pixels of blank space above paragraphs.int pixelsBelowLines() @propertyGet `pixelsBelowLines` field. Returns: Pixels of blank space below paragraphs.void pixelsBelowLines(int propval) @propertySet `pixelsBelowLines` field. Params: propval = Pixels of blank space below paragraphs.int pixelsInsideWrap() @propertyGet `pixelsInsideWrap` field. Returns: Pixels of blank space between wrapped lines in a paragraph.void pixelsInsideWrap(int propval) @propertySet `pixelsInsideWrap` field. Params: propval = Pixels of blank space between wrapped lines in a paragraph.pango.tab_array.TabArray tabs() @propertyGet `tabs` field. Returns: Custom #PangoTabArray for this text.void tabs(pango.tab_array.TabArray propval) @propertySet `tabs` field. Params: propval = Custom #PangoTabArray for this text.void wrapMode(gtk.types.WrapMode propval) @propertySet `wrapMode` field. Params: propval = #GtkWrapMode for text.void language(pango.language.Language propval) @propertySet `language` field. Params: propval = #PangoLanguage for text.uint bgFullHeight() @propertyGet `bgFullHeight` field. Returns: Background is fit to full line height rather than baseline +/- ascent/descent (font height).void bgFullHeight(uint propval) @propertySet `bgFullHeight` field. Params: propval = Background is fit to full line height rather than baseline +/- ascent/descent (font height).void noFallback(uint propval) @propertySet `noFallback` field. Params: propval = Whether to disable font fallback.int letterSpacing() @propertyGet `letterSpacing` field. Returns: Extra space to insert between graphemes, in Pango unitsvoid letterSpacing(int propval) @propertySet `letterSpacing` field. Params: propval = Extra space to insert between graphemes, in Pango unitsgtk.text_attributes.TextAttributes copy()Copies src and returns a new #GtkTextAttributes. Returns: a copy of src, free with [gtk.text_attributes.TextAttributes.unref]void copyValues(gtk.text_attributes.TextAttributes dest)Copies the values from src to dest so that dest has the same values as src. Frees existing values in dest.