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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
TextAttributes self() nothrowReturns `this`, for use in `with` statements.
gtk.text_appearance.TextAppearance appearance() @property nothrowGet `appearance` field. Returns: #GtkTextAppearance for text.
gtk.types.Justification justification() @property nothrowGet `justification` field. Returns: #GtkJustification for text.
void justification(gtk.types.Justification propval) @property nothrowSet `justification` field. Params: propval = #GtkJustification for text.
gtk.types.TextDirection direction() @property nothrowGet `direction` field. Returns: #GtkTextDirection for text.
void direction(gtk.types.TextDirection propval) @property nothrowSet `direction` field. Params: propval = #GtkTextDirection for text.
pango.font_description.FontDescription font() @property nothrowGet `font` field. Returns: #PangoFontDescription for text.
void font(pango.font_description.FontDescription propval) @property nothrowSet `font` field. Params: propval = #PangoFontDescription for text.
double fontScale() @property nothrowGet `fontScale` field. Returns: Font scale factor.
void fontScale(double propval) @property nothrowSet `fontScale` field. Params: propval = Font scale factor.
int leftMargin() @property nothrowGet `leftMargin` field. Returns: Width of the left margin in pixels.
void leftMargin(int propval) @property nothrowSet `leftMargin` field. Params: propval = Width of the left margin in pixels.
int rightMargin() @property nothrowGet `rightMargin` field. Returns: Width of the right margin in pixels.
void rightMargin(int propval) @property nothrowSet `rightMargin` field. Params: propval = Width of the right margin in pixels.
int indent() @property nothrowGet `indent` field. Returns: Amount to indent the paragraph, in pixels.
void indent(int propval) @property nothrowSet `indent` field. Params: propval = Amount to indent the paragraph, in pixels.
int pixelsAboveLines() @property nothrowGet `pixelsAboveLines` field. Returns: Pixels of blank space above paragraphs.
void pixelsAboveLines(int propval) @property nothrowSet `pixelsAboveLines` field. Params: propval = Pixels of blank space above paragraphs.
int pixelsBelowLines() @property nothrowGet `pixelsBelowLines` field. Returns: Pixels of blank space below paragraphs.
void pixelsBelowLines(int propval) @property nothrowSet `pixelsBelowLines` field. Params: propval = Pixels of blank space below paragraphs.
int pixelsInsideWrap() @property nothrowGet `pixelsInsideWrap` field. Returns: Pixels of blank space between wrapped lines in a paragraph.
void pixelsInsideWrap(int propval) @property nothrowSet `pixelsInsideWrap` field. Params: propval = Pixels of blank space between wrapped lines in a paragraph.
pango.tab_array.TabArray tabs() @property nothrowGet `tabs` field. Returns: Custom #PangoTabArray for this text.
void tabs(pango.tab_array.TabArray propval) @property nothrowSet `tabs` field. Params: propval = Custom #PangoTabArray for this text.
gtk.types.WrapMode wrapMode() @property nothrowGet `wrapMode` field. Returns: #GtkWrapMode for text.
void wrapMode(gtk.types.WrapMode propval) @property nothrowSet `wrapMode` field. Params: propval = #GtkWrapMode for text.
pango.language.Language language() @property nothrowGet `language` field. Returns: #PangoLanguage for text.
void language(pango.language.Language propval) @property nothrowSet `language` field. Params: propval = #PangoLanguage for text.
uint invisible() @property nothrowGet `invisible` field. Returns: Hide the text.
void invisible(uint propval) @property nothrowSet `invisible` field. Params: propval = Hide the text.
uint bgFullHeight() @property nothrowGet `bgFullHeight` field. Returns: Background is fit to full line height rather than baseline +/- ascent/descent (font height).
void bgFullHeight(uint propval) @property nothrowSet `bgFullHeight` field. Params: propval = Background is fit to full line height rather than baseline +/- ascent/descent (font height).
uint editable() @property nothrowGet `editable` field. Returns: Can edit this text.
void editable(uint propval) @property nothrowSet `editable` field. Params: propval = Can edit this text.
uint noFallback() @property nothrowGet `noFallback` field. Returns: Whether to disable font fallback.
void noFallback(uint propval) @property nothrowSet `noFallback` field. Params: propval = Whether to disable font fallback.
int letterSpacing() @property nothrowGet `letterSpacing` field. Returns: Extra space to insert between graphemes, in Pango units
void letterSpacing(int propval) @property nothrowSet `letterSpacing` field. Params: propval = Extra space to insert between graphemes, in Pango units
gtk.text_attributes.TextAttributes copy() nothrowCopies 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) nothrowCopies 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].