gtksource.style
Module for [Style] class
Types 3
classStyle : gobject.object.ObjectWrap
Represents a style.
The [gtksource.style.Style] structure is used to describe text attributes which are set when given style is used.
Methods
StyleGidBuilder builder()Get builder for [gtksource.style.Style] Returns: New builder objectstring background() @propertybool backgroundSet() @propertybool bold() @propertybool boldSet() @propertystring foreground() @propertybool foregroundSet() @propertybool italic() @propertybool italicSet() @propertystring lineBackground() @propertybool lineBackgroundSet() @propertypango.types.Underline pangoUnderline() @propertystring scale() @propertybool scaleSet() @propertybool strikethrough() @propertybool strikethroughSet() @propertystring underlineColor() @propertybool underlineColorSet() @propertybool underlineSet() @propertypango.types.Weight weight() @propertybool weightSet() @propertyvoid apply(gtk.text_tag.TextTag tag)This function modifies the [gtk.texttag.TextTag] properties that are related to the #GtkSourceStyle properties. Other [gtk.texttag.TextTag] properties are left untouched.gtksource.style.Style copy()Creates a copy of style, that is a new #GtkSourceStyle instance which has the same attributes set. Returns: copy of style, call [gobject.object.ObjectWrap.unref] when you are done with it.Methods
T background(string propval)T backgroundSet(bool propval)T bold(bool propval)T boldSet(bool propval)T foreground(string propval)T foregroundSet(bool propval)T italic(bool propval)T italicSet(bool propval)T lineBackground(string propval)T lineBackgroundSet(bool propval)T pangoUnderline(pango.types.Underline propval)T scale(string propval)T scaleSet(bool propval)T strikethrough(bool propval)T strikethroughSet(bool propval)T underlineColor(string propval)T underlineColorSet(bool propval)T underlineSet(bool propval)T weight(pango.types.Weight propval)T weightSet(bool propval)