gtk.text_attributes

Module for [TextAttributes] class

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
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
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.
double fontScale() @propertyGet `fontScale` field. Returns: Font scale factor.
void fontScale(double propval) @propertySet `fontScale` field. Params: propval = Font scale factor.
int leftMargin() @propertyGet `leftMargin` field. Returns: Width of the left margin in pixels.
void leftMargin(int propval) @propertySet `leftMargin` field. Params: propval = Width of the left margin in pixels.
int rightMargin() @propertyGet `rightMargin` field. Returns: Width of the right margin in pixels.
void rightMargin(int propval) @propertySet `rightMargin` field. Params: propval = Width of the right margin in pixels.
int indent() @propertyGet `indent` field. Returns: Amount to indent the paragraph, 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.
gtk.types.WrapMode wrapMode() @propertyGet `wrapMode` field. Returns: #GtkWrapMode for text.
void wrapMode(gtk.types.WrapMode propval) @propertySet `wrapMode` field. Params: propval = #GtkWrapMode for text.
pango.language.Language language() @propertyGet `language` field. Returns: #PangoLanguage for text.
void language(pango.language.Language propval) @propertySet `language` field. Params: propval = #PangoLanguage for text.
uint invisible() @propertyGet `invisible` field. Returns: Hide the text.
void invisible(uint propval) @propertySet `invisible` field. Params: propval = Hide the 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).
uint editable() @propertyGet `editable` field. Returns: Can edit this text.
void editable(uint propval) @propertySet `editable` field. Params: propval = Can edit this text.
uint noFallback() @propertyGet `noFallback` field. Returns: Whether to disable font fallback.
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 units
void letterSpacing(int propval) @propertySet `letterSpacing` field. Params: propval = Extra space to insert between graphemes, in Pango units
gtk.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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a #GtkTextAttributes, which describes a set of properties on some text. Returns: a new #GtkTextAttributes, free with [gtk.text_attributes.TextAttributes.unref].