SuperclassesDocumented Subclasses
None
Direct Slotsaccumulative-marginThe accumulative-margin property of type :boolean (Read / Write) 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). Default value: false allow-breaksThe allow-breaks property of type :boolean (Read / Write) Whether breaks are allowed. Default value: true allow-breaks-setThe allow-breaks-set property of type :boolean (Read / Write) Whether this tag affects line breaks. Default value: false backgroundThe background property of type :string (Write) The background color as a string. Default value: nil background-full-heightThe background-full-height property of type :boolean (Read / Write)
Whether the background color fills the entire line height or only the height of the tagged characters. Default value: false background-full-height-setThe background-full-height-set property of type :boolean (Read / Write) Whether this tag affects background height. Default value: false background-rgbaThe background-rgba property of type gdk:rgba (Read / Write) The background color. background-setThe background-set property of type :boolean (Read / Write) Whether this tag affects the background color. Default value: false directionThe direction property of type gtk:text-direction (Read / Write) The text direction, for example, the :ltr value for left-to-right. Default value: :none editableThe editable property of type :boolean (Read / Write) Whether the text can be modified by the user. Default value: true editable-setThe editable-set property of type :boolean (Read / Write) Whether this tag affects text editability. Default value: false fallbackThe fallback property of type :boolean (Read / Write) Whether font fallback is enabled. When set to true, other fonts will be substituted where the current font is missing glyphs. Default value: true fallback-setThe fallback-set property of type :boolean (Read / Write) Whether this tag affects font fallback. Default value: false familyThe family property of type :string (Read / Write)
The name of the font family, for example, Sans, Helvetica, Times, Monospace. Default value: nil family-setThe family-set property of type :boolean (Read / Write) Whether this tag affects the font family. Default value: false fontThe font property of type :string (Read / Write)
The font description as string, for example, "Sans Italic 12". Note that
the initial value of this property depends on the internals of the Pango font description. Default value: nil font-descThe font-desc property of type pango:font-description (Read / Write) The font description as a Pango font description. font-featuresThe font-features property of type :string (Read / Write) The OpenType font features, as a string. Default value: nil font-features-setThe font-features-set property of type :boolean (Read / Write) Whether this tag affects font features. Default value: false foregroundThe foreground property of type :string (Write) The foreground color as a string. Default value: nil foreground-rgbaThe foreground-rgba property of type gdk:rgba (Read / Write) The foreground color. foreground-setThe foreground-set property of type :boolean (Read / Write) Whether this tag affects the foreground color. Default value: false indentThe indent property of type :int (Read / Write) The amount to indent the paragraph, in pixels. Default value: 0 indent-setThe indent-set property of type :boolean (Read / Write) Whether this tag affects indentation. Default value: false insert-hyphensThe insert-hyphens property of type :boolean (Read / Write) Whether to insert hyphens at breaks. Default value: true insert-hyphens-setThe insert-hyphens-set property of type :boolean (Read / Write) Whether this tag affects insertion of hyphens. Default value: false invisibleThe invisible property of type :boolean (Read / Write)
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 text buffer containing invisible segments. Default value: false invisible-setThe invisible-set property of type :boolean (Read / Write) Whether this tag affects text visibility. Default value: false justificationThe justification property of type gtk:justification (Read / Write) The left, right, or center justification. Default value: :left justification-setThe justification-set property of type :boolean (Read / Write) Whether this tag affects paragraph justification. Default value: false languageThe language property of type :string (Read / Write)
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 the gtk:default-language function. Default value: nil language-setThe language-set property of type :boolean (Read / Write) Whether this tag affects the language the text is rendered as. Default value: false left-marginThe left-margin property of type :int (Read / Write) The width of the left margin in pixels. Allowed values: >= 0 Default value: 0 left-margin-setThe left-margin-set property of type :boolean (Read / Write) Whether this tag affects the left margin. Default value: false letter-spacingThe letter-spacing property of type :int (Read / Write) The extra spacing between graphemes, in Pango units. Allowed values: >= 0 Default value: 0 letter-spacing-setThe letter-spacing-set property of type :boolean (Read / Write) Whether this tag affects letter spacing. Default value: false line-heightThe line-height property of type :float (Read / Write) The factor to scale line height by. Since 4.6 line-height-setThe line-height-set property of type :boolean (Read / Write) Whether this tag affects line height. Since 4.6 Default value: false nameThe name property of type :string (Read / Write / Construct) The name used to refer to the text tag, nil for anonymous tags. Default value: nil overlineThe overline property of type pango:overline (Read / Write) The style of overline for this text. Default value: :none overline-rgbaThe overline-rgba property of type gdk:rgba (Read / Write) The color of overline for this text. overline-rgba-setThe overline-rgba-set property of type :boolean (Read / Write) Whether this tag affects overlining color. Default value: false overline-setThe overline-set property of type :boolean (Read / Write) Whether this tag affects overlining. Default value: false paragraph-backgroundThe paragraph-background property of type :string (Write) The paragraph background color as a string. Default value: nil paragraph-background-rgbaThe paragraph-background-rgba property of type gdk:rgba (Read / Write) The paragraph background color. paragraph-background-setThe paragraph-background-set property of type :boolean (Read / Write) Whether this tag affects the paragraph background color. Default value: false pixels-above-linesThe pixels-above-lines property of type :int (Read / Write) The pixels of blank space above paragraphs. Allowed values: >= 0 Default value: 0 pixels-above-lines-setThe pixels-above-lines-set property of type :boolean (Read / Write) Whether this tag affects the number of pixels above lines. Default value: false pixels-below-linesThe pixels-below-lines property of type :int (Read / Write) The pixels of blank space below paragraphs. Allowed values: >= 0 Default value: 0 pixels-below-lines-setThe pixels-below-lines-set property of type :boolean (Read / Write) Whether this tag affects the number of pixels below lines. Default value: false pixels-inside-wrapThe pixels-inside-wrap property of type :int (Read / Write) The pixels of blank space between wrapped lines in a paragraph. Allowed values: >= 0 Default value: 0 pixels-inside-wrap-setThe pixels-inside-wrap-set property of type :boolean (Read / Write) Whether this tag affects the number of pixels between wrapped lines. Default value: false right-marginThe right-margin property of type :int (Read / Write) The width of the right margin in pixels. Allowed values: >= 0 Default value: 0 right-margin-setThe right-margin-set property of type :boolean Read / Write) Whether this tag affects the right margin. Default value: false riseThe rise property of type :int (Read / Write)
The offset of text above the baseline, below the baseline if rise is negative, in Pango units. Default value: 0 rise-setThe rise-set property of type :boolean (Read / Write) Whether this tag affects the rise. Default value: false scaleThe scale property of type :double (Read / Write)
The 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 the pango:+scale-x-large+ value. Allowed values: >= 0 Default value: 1 scale-setThe scale-set property of type :boolean (Read / Write) Whether this tag scales the font size by a factor. Default value: false sentenceThe sentence property of type :boolean (Read / Write)
Whether this tag represents a single sentence. This affects cursor movement. Since 4.6 Default value: false sentence-setThe sentence-set property of type :boolean (Read / Write) Whether this tag affects the sentence property. Since 4.6 Default value: false show-spacesThe show-spaces property of type pango:show-flags (Read / Write) How to render invisible characters. show-spaces-setThe show-spaces-set property of type :boolean (Read / Write) Whether this tag affects rendering of invisible characters. Default value: false sizeThe size property of type :int (Read / Write) The font size in Pango units. Allowed values: >= 0 Default value: 0 size-pointsThe size-points property of type :double (Read / Write) The font size in points. Allowed values: >= 0 Default value: 0 size-setThe size-set property of type :boolean (Read / Write) Whether this tag affects the font size. Default value: false stretchThe stretch property of type pango:stretch (Read / Write) The font stretch, for example, the :condensed value. Default value: :normal stretch-setThe stretch-set property of type :boolean (Read / Write) Whether this tag affects the font stretch. Default value: false strikethroughThe strikethrough property of type :boolean (Read / Write) Whether to strike through the text. Default value: false strikethrough-rgbaThe strikethrough-rgba property of type gdk:rgba (Read / Write)
This property modifies the color of strikeouts. If not set, strikeouts will use the forground color. strikethrough-rgba-setThe strikethrough-rgba-set property of type :boolean (Read / Write) Whether the strikethrough-rgba property has been set. Default value: false strikethrough-setThe strikethrough-set property of type :boolean (Read / Write) Whether this tag affects strikethrough. Default value: false styleThe style property of type pango:style (Read / Write) The font style, for example, the :italic value. Default value: :normal style-setThe style-set property of type :boolean (Read / Write) Whether this tag affects the font style. Default value: false tabsThe tabs property of type pango:tab-array (Read / Write) The custom tabs for this text. tabs-setThe tabs-set property of type :boolean (Read / Write) Whether this tag affects tabs. Default value: false text-transformThe text-transform property of type pango:text-transform (Read / Write) How to transform the text for display. Since 4.6 Default value: :none text-transform-setThe text-transform-set property of type :boolean (Read / Write) Whether this tag affects the text-transform property. Since 4.6 Default value: false underlineThe underline property of type pango:underline (Read / Write) The style of underline for this text. Default value: :none underline-rgbaThe underline-rgba property of type gdk:rgba (Read / Write)
This property modifies the color of underlines. If not set, underlines will use the forground color. If the underline property is set to the :error value of the pango:underline enumeration, an
alternate color may be applied instead of the foreground. Setting this property will always override those defaults. underline-rgba-setThe underline-rgba-set property of type :boolean (Read / Write) Whether the underline-rgba property has been set. Default value: false underline-setThe underline-set property of type :boolean (Read / Write) Whether this tag affects underlining. Default value: false variantThe variant property of type pango:variant (Read / Write) The font variant, for example, the :small-caps value. Default value: :normal variant-setThe variant-set property of type :boolean (Read / Write) Whether this tag affects the font variant. Default value: false weightThe weight property of type :int (Read / Write)
The font weight as an integer, see predefined values in the pango:weight enumeration, for example, the :bold value. Allowed values: >= 0 Default value: 400 weight-setThe weight-set property of type :boolean (Read / Write) Whether this tag affects the font weight. Default value: false wordThe word property of type :boolean (Read / Write)
Whether this tag represents a single word. This affects line breaks and cursor movement. Since 4.6 word-setThe word-set property of type :boolean (Read / Write) Whether this tag affects the word property. Since 4.6 Default value: false wrap-modeThe wrap-mode property of type gtk:wrap-mode (Read / Write)
Whether to wrap lines never, at word boundaries, or at character boundaries. Default value: :none wrap-mode-setThe wrap-mode-set property of type :boolean (Read / Write) Whether this tag affects line wrap mode. Default value: false Details A tag that can be applied to text contained in a gtk:text-buffer
object.
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 gtk:text-tag-table object for a given gtk:text-buffer object before using them with that text buffer. The gtk:text-buffer-create-tag function is the best way to create tags. For each property of the gtk:text-tag class, there is a set property, for example, 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. |
| Returned bySlot Access FunctionsInherited Slot Access FunctionsSee also |