[1343:14] static extends: object
Generated metadata helpers for TextTag class surfaces.
properties ()
Returns property metadata for
TextTag.
A list.[22:7] extends: object
Can be applied to text contained in a GtkTextBuffer. You may wish to begin
by reading the text widget conceptual overview,
which gives an overview of all the objects and data types related to the text
widget and how they work together. Tags should be in the
[class@Gtk.TextTagTable] for a given GtkTextBuffer before using them with
that buffer. [method@Gtk.TextBuffer.create_tag] is the best way to create
tags. See “gtk4-demo” for numerous examples. For each property of
GtkTextTag, there is a “set” property, e.g. “font-set” corresponds to
“font”. These “set” properties reflect whether a property has been set or
not. They are maintained by GTK and you should not set them independently.
TextTag (name = null)
Creates a
GtkTextTag.
name is tag name.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setAccumulativemargin (bool Value)
Whether the margins accumulate or override each other. When set to %TRUE the margins of this tag are added to the margins of any other non-accumulative margins present. When set to %FALSE the margins override one another (the default).
Value is the new property value.None.setAllowbreaks (bool Value)
Whether breaks are allowed.
Value is the new property value.None.setAllowbreaksset (bool Value)
Whether the
allow-breaksproperty is set.
Value is the new property value.None.setBackground (string Value)
Background color as a string.
Value is the new property value.None.setBackgroundfullheight (bool Value)
Whether the background color fills the entire line height or only the height of the tagged characters.
Value is the new property value.None.setBackgroundfullheightset (bool Value)
Whether the
background-full-heightproperty is set.
Value is the new property value.None.setBackgroundset (bool Value)
Whether the
backgroundproperty is set.
Value is the new property value.None.setDirection (string Value)
Text direction, e.g. right-to-left or left-to-right.
Value is the new property value.None.setEditable (bool Value)
Whether the text can be modified by the user.
Value is the new property value.None.setEditableset (bool Value)
Whether the
editableproperty is set.
Value is the new property value.None.setFallback (bool Value)
Whether font fallback is enabled. When set to %TRUE, other fonts will be substituted where the current font is missing glyphs.
Value is the new property value.None.setFallbackset (bool Value)
Whether the
fallbackproperty is set.
Value is the new property value.None.setFamily (string Value)
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
Value is the new property value.None.setFamilyset (bool Value)
Whether the
familyproperty is set.
Value is the new property value.None.setFont (string Value)
Font description as string, e.g. "Sans Italic 12". Note that the initial value of this property depends on the internals of
PangoFontDescription.
Value is the new property value.None.setFontdesc (object Value)
Font description as a
PangoFontDescription.
Value is the new property value.None.setFontfeatures (string Value)
OpenType font features, as a string.
Value is the new property value.None.setFontfeaturesset (bool Value)
Whether the
font-featuresproperty is set.
Value is the new property value.None.setForeground (string Value)
Foreground color as a string.
Value is the new property value.None.setForegroundset (bool Value)
Whether the
foregroundproperty is set.
Value is the new property value.None.setIndent (int Value)
Amount to indent the paragraph, in pixels. A negative value of indent will produce a hanging indentation. That is, the first line will have the full width, and subsequent lines will be indented by the absolute value of indent.
Value is the new property value.None.setIndentset (bool Value)
Whether the
indentproperty is set.
Value is the new property value.None.setInserthyphens (bool Value)
Whether to insert hyphens at breaks.
Value is the new property value.None.setInserthyphensset (bool Value)
Whether the
insert-hyphensproperty is set.
Value is the new property value.None.setInvisible (bool Value)
Whether this text is hidden. Note that there may still be problems with the support for invisible text, in particular when navigating programmatically inside a buffer containing invisible segments.
Value is the new property value.None.setInvisibleset (bool Value)
Whether the
invisibleproperty is set.
Value is the new property value.None.setJustification (string Value)
Left, right, or center justification.
Value is the new property value.None.setJustificationset (bool Value)
Whether the
justificationproperty is set.
Value is the new property value.None.setLanguage (string Value)
The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used. Note that the initial value of this property depends on the current locale, see also [func@Gtk.get_default_language].
Value is the new property value.None.setLanguageset (bool Value)
Whether the
languageproperty is set.
Value is the new property value.None.setLeftmargin (int Value)
Width of the left margin in pixels.
Value is the new property value.None.setLeftmarginset (bool Value)
Whether the
left-marginproperty is set.
Value is the new property value.None.setLetterspacing (int Value)
Extra spacing between graphemes, in Pango units.
Value is the new property value.None.setLetterspacingset (bool Value)
Whether the
letter-spacingproperty is set.
Value is the new property value.None.setLineheight (double Value)
Factor to scale line height by.
Value is the new property value.None.setLineheightset (bool Value)
Whether the
line-heightproperty is set.
Value is the new property value.None.setOverline (string Value)
Style of overline for this text.
Value is the new property value.None.setOverlinergbaset (bool Value)
Whether the
overline-rgbaproperty is set.
Value is the new property value.None.setOverlineset (bool Value)
Whether the
overlineproperty is set.
Value is the new property value.None.setParagraphbackground (string Value)
The paragraph background color as a string.
Value is the new property value.None.setParagraphbackgroundset (bool Value)
Whether the
paragraph-backgroundproperty is set.
Value is the new property value.None.setPixelsabovelines (int Value)
Pixels of blank space above paragraphs.
Value is the new property value.None.setPixelsabovelinesset (bool Value)
Whether the
pixels-above-linesproperty is set.
Value is the new property value.None.setPixelsbelowlines (int Value)
Pixels of blank space below paragraphs.
Value is the new property value.None.setPixelsbelowlinesset (bool Value)
Whether the
pixels-below-linesproperty is set.
Value is the new property value.None.setPixelsinsidewrap (int Value)
Pixels of blank space between wrapped lines in a paragraph.
Value is the new property value.None.setPixelsinsidewrapset (bool Value)
Whether the
pixels-inside-wrapproperty is set.
Value is the new property value.None.setRightmargin (int Value)
Width of the right margin, in pixels.
Value is the new property value.None.setRightmarginset (bool Value)
Whether the
right-marginproperty is set.
Value is the new property value.None.setRise (int Value)
Offset of text above the baseline, in Pango units. Negative values go below the baseline.
Value is the new property value.None.setRiseset (bool Value)
Whether the
riseproperty is set.
Value is the new property value.None.setScale (double Value)
Font size as a scale factor relative to the default font size. This properly adapts to theme changes, etc. so is recommended. Pango predefines some scales such as %PANGO_SCALE_X_LARGE.
Value is the new property value.None.setScaleset (bool Value)
Whether the
scaleproperty is set.
Value is the new property value.None.setSentence (bool Value)
Whether this tag represents a single sentence. This affects cursor movement.
Value is the new property value.None.setSentenceset (bool Value)
Whether the
sentenceproperty is set.
Value is the new property value.None.setShowspaces (string Value)
How to render invisible characters.
Value is the new property value.None.setShowspacesset (bool Value)
Whether the
show-spacesproperty is set.
Value is the new property value.None.setSize (int Value)
Font size in Pango units.
Value is the new property value.None.setSizepoints (double Value)
Font size in points.
Value is the new property value.None.setSizeset (bool Value)
Whether the
sizeproperty is set.
Value is the new property value.None.setStretch (string Value)
Font stretch as a
PangoStretch, e.g. %PANGO_STRETCH_CONDENSED.
Value is the new property value.None.setStretchset (bool Value)
Whether the
stretchproperty is set.
Value is the new property value.None.setStrikethrough (bool Value)
Whether to strike through the text.
Value is the new property value.None.setStrikethroughrgbaset (bool Value)
If the
strikethrough-rgbaproperty has been set.
Value is the new property value.None.setStrikethroughset (bool Value)
Whether the
strikethroughproperty is set.
Value is the new property value.None.setStyle (string Value)
Font style as a
PangoStyle, e.g. %PANGO_STYLE_ITALIC.
Value is the new property value.None.setStyleset (bool Value)
Whether the
styleproperty is set.
Value is the new property value.None.setTabs (object Value)
Custom tabs for this text.
Value is the new property value.None.setTabsset (bool Value)
Whether the
tabsproperty is set.
Value is the new property value.None.setTexttransform (string Value)
How to transform the text for display.
Value is the new property value.None.setTexttransformset (bool Value)
Whether the
text-transformproperty is set.
Value is the new property value.None.setUnderline (string Value)
Style of underline for this text.
Value is the new property value.None.setUnderlinergbaset (bool Value)
If the
underline-rgbaproperty has been set.
Value is the new property value.None.setUnderlineset (bool Value)
Whether the
underlineproperty is set.
Value is the new property value.None.setVariant (string Value)
Font variant as a
PangoVariant, e.g. %PANGO_VARIANT_SMALL_CAPS.
Value is the new property value.None.setVariantset (bool Value)
Whether the
variantproperty is set.
Value is the new property value.None.setWeight (int Value)
Font weight as an integer.
Value is the new property value.None.setWeightset (bool Value)
Whether the
weightproperty is set.
Value is the new property value.None.setWord (bool Value)
Whether this tag represents a single word. This affects line breaks and cursor movement.
Value is the new property value.None.setWordset (bool Value)
Whether the
wordproperty is set.
Value is the new property value.None.setWrapmode (string Value)
Whether to wrap lines never, at word boundaries, or at character boundaries.
Value is the new property value.None.setWrapmodeset (bool Value)
Whether the
wrap-modeproperty is set.
Value is the new property value.None.changed (bool size_changed)
Emits the [signal@Gtk.TextTagTable::tag-changed] signal on the
GtkTextTagTablewhere the tag is included. The signal is already emitted when setting aGtkTextTagproperty. This function is useful for aGtkTextTagsubclass.
size_changed is whether the change affects the GtkTextView layout.None.get_priority ()
Get the tag priority.
set_priority (int priority)
Sets the priority of a
GtkTextTag. Valid priorities start at 0 and go to one less than [method@Gtk.TextTagTable.get_size]. Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag. Higher priority tags “win” if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with [method@Gtk.TextBuffer.create_tag], which adds the tag to the buffer’s table automatically.
priority is the new priority.None.