gi-gtk-3.0.31: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.TextTag

Contents

Description

You may wish to begin by reading the [text widget conceptual overview][TextWidget] 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 TextTagTable for a given TextBuffer before using them with that buffer.

gtk_text_buffer_create_tag() is the best way to create tags. See “gtk3-demo” for numerous examples.

For each property of TextTag, 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.

Synopsis

Exported types

newtype TextTag Source #

Memory-managed wrapper type.

Constructors

TextTag (ManagedPtr TextTag) 
Instances
GObject TextTag Source # 
Instance details

Defined in GI.Gtk.Objects.TextTag

Methods

gobjectType :: IO GType #

HasParentTypes TextTag Source # 
Instance details

Defined in GI.Gtk.Objects.TextTag

type ParentTypes TextTag Source # 
Instance details

Defined in GI.Gtk.Objects.TextTag

type ParentTypes TextTag = Object ': ([] :: [Type])

class (GObject o, IsDescendantOf TextTag o) => IsTextTag o Source #

Type class for types which can be safely cast to TextTag, for instance with toTextTag.

Instances
(GObject o, IsDescendantOf TextTag o) => IsTextTag o Source # 
Instance details

Defined in GI.Gtk.Objects.TextTag

toTextTag :: (MonadIO m, IsTextTag o) => o -> m TextTag Source #

Cast to TextTag, for types for which this is known to be safe. For general casts, use castTo.

noTextTag :: Maybe TextTag Source #

A convenience alias for Nothing :: Maybe TextTag.

Methods

changed

textTagChanged Source #

Arguments

:: (HasCallStack, MonadIO m, IsTextTag a) 
=> a

tag: a TextTag.

-> Bool

sizeChanged: whether the change affects the TextView layout.

-> m () 

Emits the TextTagTable::tag-changed signal on the TextTagTable where the tag is included.

The signal is already emitted when setting a TextTag property. This function is useful for a TextTag subclass.

Since: 3.20

event

textTagEvent Source #

Arguments

:: (HasCallStack, MonadIO m, IsTextTag a, IsObject b) 
=> a

tag: a TextTag

-> b

eventObject: object that received the event, such as a widget

-> Event

event: the event

-> TextIter

iter: location where the event was received

-> m Bool

Returns: result of signal emission (whether the event was handled)

Emits the “event” signal on the TextTag.

getPriority

textTagGetPriority Source #

Arguments

:: (HasCallStack, MonadIO m, IsTextTag a) 
=> a

tag: a TextTag

-> m Int32

Returns: The tag’s priority.

Get the tag priority.

new

textTagNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe Text

name: tag name, or Nothing

-> m TextTag

Returns: a new TextTag

Creates a TextTag. Configure the tag using object arguments, i.e. using g_object_set().

setPriority

textTagSetPriority Source #

Arguments

:: (HasCallStack, MonadIO m, IsTextTag a) 
=> a

tag: a TextTag

-> Int32

priority: the new priority

-> m () 

Sets the priority of a TextTag. Valid priorities start at 0 and go to one less than textTagTableGetSize. 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 gtk_text_buffer_create_tag(), which adds the tag to the buffer’s table automatically.

Properties

accumulativeMargin

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).

Since: 2.12

constructTextTagAccumulativeMargin :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “accumulative-margin” property. This is rarely needed directly, but it is used by new.

getTextTagAccumulativeMargin :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “accumulative-margin” property. When overloading is enabled, this is equivalent to

get textTag #accumulativeMargin

setTextTagAccumulativeMargin :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “accumulative-margin” property. When overloading is enabled, this is equivalent to

set textTag [ #accumulativeMargin := value ]

background

No description available in the introspection data.

clearTextTagBackground :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “background” property to Nothing. When overloading is enabled, this is equivalent to

clear #background

constructTextTagBackground :: IsTextTag o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “background” property. This is rarely needed directly, but it is used by new.

setTextTagBackground :: (MonadIO m, IsTextTag o) => o -> Text -> m () Source #

Set the value of the “background” property. When overloading is enabled, this is equivalent to

set textTag [ #background := value ]

backgroundFullHeight

No description available in the introspection data.

constructTextTagBackgroundFullHeight :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “background-full-height” property. This is rarely needed directly, but it is used by new.

getTextTagBackgroundFullHeight :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “background-full-height” property. When overloading is enabled, this is equivalent to

get textTag #backgroundFullHeight

setTextTagBackgroundFullHeight :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “background-full-height” property. When overloading is enabled, this is equivalent to

set textTag [ #backgroundFullHeight := value ]

backgroundFullHeightSet

No description available in the introspection data.

constructTextTagBackgroundFullHeightSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “background-full-height-set” property. This is rarely needed directly, but it is used by new.

getTextTagBackgroundFullHeightSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “background-full-height-set” property. When overloading is enabled, this is equivalent to

get textTag #backgroundFullHeightSet

setTextTagBackgroundFullHeightSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “background-full-height-set” property. When overloading is enabled, this is equivalent to

set textTag [ #backgroundFullHeightSet := value ]

backgroundGdk

Background color as a Color.

clearTextTagBackgroundGdk :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “background-gdk” property to Nothing. When overloading is enabled, this is equivalent to

clear #backgroundGdk

constructTextTagBackgroundGdk :: IsTextTag o => Color -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “background-gdk” property. This is rarely needed directly, but it is used by new.

getTextTagBackgroundGdk :: (MonadIO m, IsTextTag o) => o -> m (Maybe Color) Source #

Get the value of the “background-gdk” property. When overloading is enabled, this is equivalent to

get textTag #backgroundGdk

setTextTagBackgroundGdk :: (MonadIO m, IsTextTag o) => o -> Color -> m () Source #

Set the value of the “background-gdk” property. When overloading is enabled, this is equivalent to

set textTag [ #backgroundGdk := value ]

backgroundRgba

Background color as a RGBA.

Since: 3.2

clearTextTagBackgroundRgba :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “background-rgba” property to Nothing. When overloading is enabled, this is equivalent to

clear #backgroundRgba

constructTextTagBackgroundRgba :: IsTextTag o => RGBA -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “background-rgba” property. This is rarely needed directly, but it is used by new.

getTextTagBackgroundRgba :: (MonadIO m, IsTextTag o) => o -> m (Maybe RGBA) Source #

Get the value of the “background-rgba” property. When overloading is enabled, this is equivalent to

get textTag #backgroundRgba

setTextTagBackgroundRgba :: (MonadIO m, IsTextTag o) => o -> RGBA -> m () Source #

Set the value of the “background-rgba” property. When overloading is enabled, this is equivalent to

set textTag [ #backgroundRgba := value ]

backgroundSet

No description available in the introspection data.

constructTextTagBackgroundSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “background-set” property. This is rarely needed directly, but it is used by new.

getTextTagBackgroundSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “background-set” property. When overloading is enabled, this is equivalent to

get textTag #backgroundSet

setTextTagBackgroundSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “background-set” property. When overloading is enabled, this is equivalent to

set textTag [ #backgroundSet := value ]

direction

No description available in the introspection data.

constructTextTagDirection :: IsTextTag o => TextDirection -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “direction” property. This is rarely needed directly, but it is used by new.

getTextTagDirection :: (MonadIO m, IsTextTag o) => o -> m TextDirection Source #

Get the value of the “direction” property. When overloading is enabled, this is equivalent to

get textTag #direction

setTextTagDirection :: (MonadIO m, IsTextTag o) => o -> TextDirection -> m () Source #

Set the value of the “direction” property. When overloading is enabled, this is equivalent to

set textTag [ #direction := value ]

editable

No description available in the introspection data.

constructTextTagEditable :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “editable” property. This is rarely needed directly, but it is used by new.

getTextTagEditable :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “editable” property. When overloading is enabled, this is equivalent to

get textTag #editable

setTextTagEditable :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “editable” property. When overloading is enabled, this is equivalent to

set textTag [ #editable := value ]

editableSet

No description available in the introspection data.

constructTextTagEditableSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “editable-set” property. This is rarely needed directly, but it is used by new.

getTextTagEditableSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “editable-set” property. When overloading is enabled, this is equivalent to

get textTag #editableSet

setTextTagEditableSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “editable-set” property. When overloading is enabled, this is equivalent to

set textTag [ #editableSet := value ]

fallback

Whether font fallback is enabled.

When set to True, other fonts will be substituted where the current font is missing glyphs.

Since: 3.16

constructTextTagFallback :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “fallback” property. This is rarely needed directly, but it is used by new.

getTextTagFallback :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “fallback” property. When overloading is enabled, this is equivalent to

get textTag #fallback

setTextTagFallback :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “fallback” property. When overloading is enabled, this is equivalent to

set textTag [ #fallback := value ]

fallbackSet

No description available in the introspection data.

constructTextTagFallbackSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “fallback-set” property. This is rarely needed directly, but it is used by new.

getTextTagFallbackSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “fallback-set” property. When overloading is enabled, this is equivalent to

get textTag #fallbackSet

setTextTagFallbackSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “fallback-set” property. When overloading is enabled, this is equivalent to

set textTag [ #fallbackSet := value ]

family

No description available in the introspection data.

clearTextTagFamily :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “family” property to Nothing. When overloading is enabled, this is equivalent to

clear #family

constructTextTagFamily :: IsTextTag o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “family” property. This is rarely needed directly, but it is used by new.

getTextTagFamily :: (MonadIO m, IsTextTag o) => o -> m (Maybe Text) Source #

Get the value of the “family” property. When overloading is enabled, this is equivalent to

get textTag #family

setTextTagFamily :: (MonadIO m, IsTextTag o) => o -> Text -> m () Source #

Set the value of the “family” property. When overloading is enabled, this is equivalent to

set textTag [ #family := value ]

familySet

No description available in the introspection data.

constructTextTagFamilySet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “family-set” property. This is rarely needed directly, but it is used by new.

getTextTagFamilySet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “family-set” property. When overloading is enabled, this is equivalent to

get textTag #familySet

setTextTagFamilySet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “family-set” property. When overloading is enabled, this is equivalent to

set textTag [ #familySet := value ]

font

Font description as string, e.g. \"Sans Italic 12\".

Note that the initial value of this property depends on the internals of FontDescription.

clearTextTagFont :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “font” property to Nothing. When overloading is enabled, this is equivalent to

clear #font

constructTextTagFont :: IsTextTag o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “font” property. This is rarely needed directly, but it is used by new.

getTextTagFont :: (MonadIO m, IsTextTag o) => o -> m (Maybe Text) Source #

Get the value of the “font” property. When overloading is enabled, this is equivalent to

get textTag #font

setTextTagFont :: (MonadIO m, IsTextTag o) => o -> Text -> m () Source #

Set the value of the “font” property. When overloading is enabled, this is equivalent to

set textTag [ #font := value ]

fontDesc

No description available in the introspection data.

clearTextTagFontDesc :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “font-desc” property to Nothing. When overloading is enabled, this is equivalent to

clear #fontDesc

constructTextTagFontDesc :: IsTextTag o => FontDescription -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “font-desc” property. This is rarely needed directly, but it is used by new.

getTextTagFontDesc :: (MonadIO m, IsTextTag o) => o -> m (Maybe FontDescription) Source #

Get the value of the “font-desc” property. When overloading is enabled, this is equivalent to

get textTag #fontDesc

setTextTagFontDesc :: (MonadIO m, IsTextTag o) => o -> FontDescription -> m () Source #

Set the value of the “font-desc” property. When overloading is enabled, this is equivalent to

set textTag [ #fontDesc := value ]

fontFeatures

OpenType font features, as a string.

Since: 3.18

clearTextTagFontFeatures :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “font-features” property to Nothing. When overloading is enabled, this is equivalent to

clear #fontFeatures

constructTextTagFontFeatures :: IsTextTag o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “font-features” property. This is rarely needed directly, but it is used by new.

getTextTagFontFeatures :: (MonadIO m, IsTextTag o) => o -> m (Maybe Text) Source #

Get the value of the “font-features” property. When overloading is enabled, this is equivalent to

get textTag #fontFeatures

setTextTagFontFeatures :: (MonadIO m, IsTextTag o) => o -> Text -> m () Source #

Set the value of the “font-features” property. When overloading is enabled, this is equivalent to

set textTag [ #fontFeatures := value ]

fontFeaturesSet

No description available in the introspection data.

constructTextTagFontFeaturesSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “font-features-set” property. This is rarely needed directly, but it is used by new.

getTextTagFontFeaturesSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “font-features-set” property. When overloading is enabled, this is equivalent to

get textTag #fontFeaturesSet

setTextTagFontFeaturesSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “font-features-set” property. When overloading is enabled, this is equivalent to

set textTag [ #fontFeaturesSet := value ]

foreground

No description available in the introspection data.

clearTextTagForeground :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “foreground” property to Nothing. When overloading is enabled, this is equivalent to

clear #foreground

constructTextTagForeground :: IsTextTag o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “foreground” property. This is rarely needed directly, but it is used by new.

setTextTagForeground :: (MonadIO m, IsTextTag o) => o -> Text -> m () Source #

Set the value of the “foreground” property. When overloading is enabled, this is equivalent to

set textTag [ #foreground := value ]

foregroundGdk

Foreground color as a Color.

clearTextTagForegroundGdk :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “foreground-gdk” property to Nothing. When overloading is enabled, this is equivalent to

clear #foregroundGdk

constructTextTagForegroundGdk :: IsTextTag o => Color -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “foreground-gdk” property. This is rarely needed directly, but it is used by new.

getTextTagForegroundGdk :: (MonadIO m, IsTextTag o) => o -> m (Maybe Color) Source #

Get the value of the “foreground-gdk” property. When overloading is enabled, this is equivalent to

get textTag #foregroundGdk

setTextTagForegroundGdk :: (MonadIO m, IsTextTag o) => o -> Color -> m () Source #

Set the value of the “foreground-gdk” property. When overloading is enabled, this is equivalent to

set textTag [ #foregroundGdk := value ]

foregroundRgba

Foreground color as a RGBA.

Since: 3.2

clearTextTagForegroundRgba :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “foreground-rgba” property to Nothing. When overloading is enabled, this is equivalent to

clear #foregroundRgba

constructTextTagForegroundRgba :: IsTextTag o => RGBA -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “foreground-rgba” property. This is rarely needed directly, but it is used by new.

getTextTagForegroundRgba :: (MonadIO m, IsTextTag o) => o -> m (Maybe RGBA) Source #

Get the value of the “foreground-rgba” property. When overloading is enabled, this is equivalent to

get textTag #foregroundRgba

setTextTagForegroundRgba :: (MonadIO m, IsTextTag o) => o -> RGBA -> m () Source #

Set the value of the “foreground-rgba” property. When overloading is enabled, this is equivalent to

set textTag [ #foregroundRgba := value ]

foregroundSet

No description available in the introspection data.

constructTextTagForegroundSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “foreground-set” property. This is rarely needed directly, but it is used by new.

getTextTagForegroundSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “foreground-set” property. When overloading is enabled, this is equivalent to

get textTag #foregroundSet

setTextTagForegroundSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “foreground-set” property. When overloading is enabled, this is equivalent to

set textTag [ #foregroundSet := value ]

indent

No description available in the introspection data.

constructTextTagIndent :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “indent” property. This is rarely needed directly, but it is used by new.

getTextTagIndent :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “indent” property. When overloading is enabled, this is equivalent to

get textTag #indent

setTextTagIndent :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “indent” property. When overloading is enabled, this is equivalent to

set textTag [ #indent := value ]

indentSet

No description available in the introspection data.

constructTextTagIndentSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “indent-set” property. This is rarely needed directly, but it is used by new.

getTextTagIndentSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “indent-set” property. When overloading is enabled, this is equivalent to

get textTag #indentSet

setTextTagIndentSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “indent-set” property. When overloading is enabled, this is equivalent to

set textTag [ #indentSet := value ]

invisible

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.

Since: 2.8

constructTextTagInvisible :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “invisible” property. This is rarely needed directly, but it is used by new.

getTextTagInvisible :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “invisible” property. When overloading is enabled, this is equivalent to

get textTag #invisible

setTextTagInvisible :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “invisible” property. When overloading is enabled, this is equivalent to

set textTag [ #invisible := value ]

invisibleSet

No description available in the introspection data.

constructTextTagInvisibleSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “invisible-set” property. This is rarely needed directly, but it is used by new.

getTextTagInvisibleSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “invisible-set” property. When overloading is enabled, this is equivalent to

get textTag #invisibleSet

setTextTagInvisibleSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “invisible-set” property. When overloading is enabled, this is equivalent to

set textTag [ #invisibleSet := value ]

justification

No description available in the introspection data.

constructTextTagJustification :: IsTextTag o => Justification -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “justification” property. This is rarely needed directly, but it is used by new.

getTextTagJustification :: (MonadIO m, IsTextTag o) => o -> m Justification Source #

Get the value of the “justification” property. When overloading is enabled, this is equivalent to

get textTag #justification

setTextTagJustification :: (MonadIO m, IsTextTag o) => o -> Justification -> m () Source #

Set the value of the “justification” property. When overloading is enabled, this is equivalent to

set textTag [ #justification := value ]

justificationSet

No description available in the introspection data.

constructTextTagJustificationSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “justification-set” property. This is rarely needed directly, but it is used by new.

getTextTagJustificationSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “justification-set” property. When overloading is enabled, this is equivalent to

get textTag #justificationSet

setTextTagJustificationSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “justification-set” property. When overloading is enabled, this is equivalent to

set textTag [ #justificationSet := value ]

language

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 getDefaultLanguage.

clearTextTagLanguage :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “language” property to Nothing. When overloading is enabled, this is equivalent to

clear #language

constructTextTagLanguage :: IsTextTag o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “language” property. This is rarely needed directly, but it is used by new.

getTextTagLanguage :: (MonadIO m, IsTextTag o) => o -> m (Maybe Text) Source #

Get the value of the “language” property. When overloading is enabled, this is equivalent to

get textTag #language

setTextTagLanguage :: (MonadIO m, IsTextTag o) => o -> Text -> m () Source #

Set the value of the “language” property. When overloading is enabled, this is equivalent to

set textTag [ #language := value ]

languageSet

No description available in the introspection data.

constructTextTagLanguageSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “language-set” property. This is rarely needed directly, but it is used by new.

getTextTagLanguageSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “language-set” property. When overloading is enabled, this is equivalent to

get textTag #languageSet

setTextTagLanguageSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “language-set” property. When overloading is enabled, this is equivalent to

set textTag [ #languageSet := value ]

leftMargin

No description available in the introspection data.

constructTextTagLeftMargin :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “left-margin” property. This is rarely needed directly, but it is used by new.

getTextTagLeftMargin :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “left-margin” property. When overloading is enabled, this is equivalent to

get textTag #leftMargin

setTextTagLeftMargin :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “left-margin” property. When overloading is enabled, this is equivalent to

set textTag [ #leftMargin := value ]

leftMarginSet

No description available in the introspection data.

constructTextTagLeftMarginSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “left-margin-set” property. This is rarely needed directly, but it is used by new.

getTextTagLeftMarginSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “left-margin-set” property. When overloading is enabled, this is equivalent to

get textTag #leftMarginSet

setTextTagLeftMarginSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “left-margin-set” property. When overloading is enabled, this is equivalent to

set textTag [ #leftMarginSet := value ]

letterSpacing

Extra spacing between graphemes, in Pango units.

Since: 3.16

constructTextTagLetterSpacing :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “letter-spacing” property. This is rarely needed directly, but it is used by new.

getTextTagLetterSpacing :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “letter-spacing” property. When overloading is enabled, this is equivalent to

get textTag #letterSpacing

setTextTagLetterSpacing :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “letter-spacing” property. When overloading is enabled, this is equivalent to

set textTag [ #letterSpacing := value ]

letterSpacingSet

No description available in the introspection data.

constructTextTagLetterSpacingSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “letter-spacing-set” property. This is rarely needed directly, but it is used by new.

getTextTagLetterSpacingSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “letter-spacing-set” property. When overloading is enabled, this is equivalent to

get textTag #letterSpacingSet

setTextTagLetterSpacingSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “letter-spacing-set” property. When overloading is enabled, this is equivalent to

set textTag [ #letterSpacingSet := value ]

name

No description available in the introspection data.

constructTextTagName :: IsTextTag o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “name” property. This is rarely needed directly, but it is used by new.

getTextTagName :: (MonadIO m, IsTextTag o) => o -> m (Maybe Text) Source #

Get the value of the “name” property. When overloading is enabled, this is equivalent to

get textTag #name

paragraphBackground

The paragraph background color as a string.

Since: 2.8

clearTextTagParagraphBackground :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “paragraph-background” property to Nothing. When overloading is enabled, this is equivalent to

clear #paragraphBackground

constructTextTagParagraphBackground :: IsTextTag o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “paragraph-background” property. This is rarely needed directly, but it is used by new.

setTextTagParagraphBackground :: (MonadIO m, IsTextTag o) => o -> Text -> m () Source #

Set the value of the “paragraph-background” property. When overloading is enabled, this is equivalent to

set textTag [ #paragraphBackground := value ]

paragraphBackgroundGdk

The paragraph background color as a Color.

Since: 2.8

clearTextTagParagraphBackgroundGdk :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “paragraph-background-gdk” property to Nothing. When overloading is enabled, this is equivalent to

clear #paragraphBackgroundGdk

constructTextTagParagraphBackgroundGdk :: IsTextTag o => Color -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “paragraph-background-gdk” property. This is rarely needed directly, but it is used by new.

getTextTagParagraphBackgroundGdk :: (MonadIO m, IsTextTag o) => o -> m (Maybe Color) Source #

Get the value of the “paragraph-background-gdk” property. When overloading is enabled, this is equivalent to

get textTag #paragraphBackgroundGdk

setTextTagParagraphBackgroundGdk :: (MonadIO m, IsTextTag o) => o -> Color -> m () Source #

Set the value of the “paragraph-background-gdk” property. When overloading is enabled, this is equivalent to

set textTag [ #paragraphBackgroundGdk := value ]

paragraphBackgroundRgba

The paragraph background color as a RGBA.

Since: 3.2

clearTextTagParagraphBackgroundRgba :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “paragraph-background-rgba” property to Nothing. When overloading is enabled, this is equivalent to

clear #paragraphBackgroundRgba

constructTextTagParagraphBackgroundRgba :: IsTextTag o => RGBA -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “paragraph-background-rgba” property. This is rarely needed directly, but it is used by new.

getTextTagParagraphBackgroundRgba :: (MonadIO m, IsTextTag o) => o -> m (Maybe RGBA) Source #

Get the value of the “paragraph-background-rgba” property. When overloading is enabled, this is equivalent to

get textTag #paragraphBackgroundRgba

setTextTagParagraphBackgroundRgba :: (MonadIO m, IsTextTag o) => o -> RGBA -> m () Source #

Set the value of the “paragraph-background-rgba” property. When overloading is enabled, this is equivalent to

set textTag [ #paragraphBackgroundRgba := value ]

paragraphBackgroundSet

No description available in the introspection data.

constructTextTagParagraphBackgroundSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “paragraph-background-set” property. This is rarely needed directly, but it is used by new.

getTextTagParagraphBackgroundSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “paragraph-background-set” property. When overloading is enabled, this is equivalent to

get textTag #paragraphBackgroundSet

setTextTagParagraphBackgroundSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “paragraph-background-set” property. When overloading is enabled, this is equivalent to

set textTag [ #paragraphBackgroundSet := value ]

pixelsAboveLines

No description available in the introspection data.

constructTextTagPixelsAboveLines :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pixels-above-lines” property. This is rarely needed directly, but it is used by new.

getTextTagPixelsAboveLines :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “pixels-above-lines” property. When overloading is enabled, this is equivalent to

get textTag #pixelsAboveLines

setTextTagPixelsAboveLines :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “pixels-above-lines” property. When overloading is enabled, this is equivalent to

set textTag [ #pixelsAboveLines := value ]

pixelsAboveLinesSet

No description available in the introspection data.

constructTextTagPixelsAboveLinesSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pixels-above-lines-set” property. This is rarely needed directly, but it is used by new.

getTextTagPixelsAboveLinesSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “pixels-above-lines-set” property. When overloading is enabled, this is equivalent to

get textTag #pixelsAboveLinesSet

setTextTagPixelsAboveLinesSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “pixels-above-lines-set” property. When overloading is enabled, this is equivalent to

set textTag [ #pixelsAboveLinesSet := value ]

pixelsBelowLines

No description available in the introspection data.

constructTextTagPixelsBelowLines :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pixels-below-lines” property. This is rarely needed directly, but it is used by new.

getTextTagPixelsBelowLines :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “pixels-below-lines” property. When overloading is enabled, this is equivalent to

get textTag #pixelsBelowLines

setTextTagPixelsBelowLines :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “pixels-below-lines” property. When overloading is enabled, this is equivalent to

set textTag [ #pixelsBelowLines := value ]

pixelsBelowLinesSet

No description available in the introspection data.

constructTextTagPixelsBelowLinesSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pixels-below-lines-set” property. This is rarely needed directly, but it is used by new.

getTextTagPixelsBelowLinesSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “pixels-below-lines-set” property. When overloading is enabled, this is equivalent to

get textTag #pixelsBelowLinesSet

setTextTagPixelsBelowLinesSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “pixels-below-lines-set” property. When overloading is enabled, this is equivalent to

set textTag [ #pixelsBelowLinesSet := value ]

pixelsInsideWrap

No description available in the introspection data.

constructTextTagPixelsInsideWrap :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pixels-inside-wrap” property. This is rarely needed directly, but it is used by new.

getTextTagPixelsInsideWrap :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “pixels-inside-wrap” property. When overloading is enabled, this is equivalent to

get textTag #pixelsInsideWrap

setTextTagPixelsInsideWrap :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “pixels-inside-wrap” property. When overloading is enabled, this is equivalent to

set textTag [ #pixelsInsideWrap := value ]

pixelsInsideWrapSet

No description available in the introspection data.

constructTextTagPixelsInsideWrapSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pixels-inside-wrap-set” property. This is rarely needed directly, but it is used by new.

getTextTagPixelsInsideWrapSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “pixels-inside-wrap-set” property. When overloading is enabled, this is equivalent to

get textTag #pixelsInsideWrapSet

setTextTagPixelsInsideWrapSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “pixels-inside-wrap-set” property. When overloading is enabled, this is equivalent to

set textTag [ #pixelsInsideWrapSet := value ]

rightMargin

No description available in the introspection data.

constructTextTagRightMargin :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “right-margin” property. This is rarely needed directly, but it is used by new.

getTextTagRightMargin :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “right-margin” property. When overloading is enabled, this is equivalent to

get textTag #rightMargin

setTextTagRightMargin :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “right-margin” property. When overloading is enabled, this is equivalent to

set textTag [ #rightMargin := value ]

rightMarginSet

No description available in the introspection data.

constructTextTagRightMarginSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “right-margin-set” property. This is rarely needed directly, but it is used by new.

getTextTagRightMarginSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “right-margin-set” property. When overloading is enabled, this is equivalent to

get textTag #rightMarginSet

setTextTagRightMarginSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “right-margin-set” property. When overloading is enabled, this is equivalent to

set textTag [ #rightMarginSet := value ]

rise

No description available in the introspection data.

constructTextTagRise :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “rise” property. This is rarely needed directly, but it is used by new.

getTextTagRise :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “rise” property. When overloading is enabled, this is equivalent to

get textTag #rise

setTextTagRise :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “rise” property. When overloading is enabled, this is equivalent to

set textTag [ #rise := value ]

riseSet

No description available in the introspection data.

constructTextTagRiseSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “rise-set” property. This is rarely needed directly, but it is used by new.

getTextTagRiseSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “rise-set” property. When overloading is enabled, this is equivalent to

get textTag #riseSet

setTextTagRiseSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “rise-set” property. When overloading is enabled, this is equivalent to

set textTag [ #riseSet := value ]

scale

No description available in the introspection data.

constructTextTagScale :: IsTextTag o => Double -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “scale” property. This is rarely needed directly, but it is used by new.

getTextTagScale :: (MonadIO m, IsTextTag o) => o -> m Double Source #

Get the value of the “scale” property. When overloading is enabled, this is equivalent to

get textTag #scale

setTextTagScale :: (MonadIO m, IsTextTag o) => o -> Double -> m () Source #

Set the value of the “scale” property. When overloading is enabled, this is equivalent to

set textTag [ #scale := value ]

scaleSet

No description available in the introspection data.

constructTextTagScaleSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “scale-set” property. This is rarely needed directly, but it is used by new.

getTextTagScaleSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “scale-set” property. When overloading is enabled, this is equivalent to

get textTag #scaleSet

setTextTagScaleSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “scale-set” property. When overloading is enabled, this is equivalent to

set textTag [ #scaleSet := value ]

size

No description available in the introspection data.

constructTextTagSize :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “size” property. This is rarely needed directly, but it is used by new.

getTextTagSize :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “size” property. When overloading is enabled, this is equivalent to

get textTag #size

setTextTagSize :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “size” property. When overloading is enabled, this is equivalent to

set textTag [ #size := value ]

sizePoints

No description available in the introspection data.

constructTextTagSizePoints :: IsTextTag o => Double -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “size-points” property. This is rarely needed directly, but it is used by new.

getTextTagSizePoints :: (MonadIO m, IsTextTag o) => o -> m Double Source #

Get the value of the “size-points” property. When overloading is enabled, this is equivalent to

get textTag #sizePoints

setTextTagSizePoints :: (MonadIO m, IsTextTag o) => o -> Double -> m () Source #

Set the value of the “size-points” property. When overloading is enabled, this is equivalent to

set textTag [ #sizePoints := value ]

sizeSet

No description available in the introspection data.

constructTextTagSizeSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “size-set” property. This is rarely needed directly, but it is used by new.

getTextTagSizeSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “size-set” property. When overloading is enabled, this is equivalent to

get textTag #sizeSet

setTextTagSizeSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “size-set” property. When overloading is enabled, this is equivalent to

set textTag [ #sizeSet := value ]

stretch

No description available in the introspection data.

constructTextTagStretch :: IsTextTag o => Stretch -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “stretch” property. This is rarely needed directly, but it is used by new.

getTextTagStretch :: (MonadIO m, IsTextTag o) => o -> m Stretch Source #

Get the value of the “stretch” property. When overloading is enabled, this is equivalent to

get textTag #stretch

setTextTagStretch :: (MonadIO m, IsTextTag o) => o -> Stretch -> m () Source #

Set the value of the “stretch” property. When overloading is enabled, this is equivalent to

set textTag [ #stretch := value ]

stretchSet

No description available in the introspection data.

constructTextTagStretchSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “stretch-set” property. This is rarely needed directly, but it is used by new.

getTextTagStretchSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “stretch-set” property. When overloading is enabled, this is equivalent to

get textTag #stretchSet

setTextTagStretchSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “stretch-set” property. When overloading is enabled, this is equivalent to

set textTag [ #stretchSet := value ]

strikethrough

No description available in the introspection data.

constructTextTagStrikethrough :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “strikethrough” property. This is rarely needed directly, but it is used by new.

getTextTagStrikethrough :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “strikethrough” property. When overloading is enabled, this is equivalent to

get textTag #strikethrough

setTextTagStrikethrough :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “strikethrough” property. When overloading is enabled, this is equivalent to

set textTag [ #strikethrough := value ]

strikethroughRgba

This property modifies the color of strikeouts. If not set, strikeouts will use the forground color.

Since: 3.16

clearTextTagStrikethroughRgba :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “strikethrough-rgba” property to Nothing. When overloading is enabled, this is equivalent to

clear #strikethroughRgba

constructTextTagStrikethroughRgba :: IsTextTag o => RGBA -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “strikethrough-rgba” property. This is rarely needed directly, but it is used by new.

getTextTagStrikethroughRgba :: (MonadIO m, IsTextTag o) => o -> m (Maybe RGBA) Source #

Get the value of the “strikethrough-rgba” property. When overloading is enabled, this is equivalent to

get textTag #strikethroughRgba

setTextTagStrikethroughRgba :: (MonadIO m, IsTextTag o) => o -> RGBA -> m () Source #

Set the value of the “strikethrough-rgba” property. When overloading is enabled, this is equivalent to

set textTag [ #strikethroughRgba := value ]

strikethroughRgbaSet

If the TextTag:strikethrough-rgba property has been set.

Since: 3.16

constructTextTagStrikethroughRgbaSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “strikethrough-rgba-set” property. This is rarely needed directly, but it is used by new.

getTextTagStrikethroughRgbaSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “strikethrough-rgba-set” property. When overloading is enabled, this is equivalent to

get textTag #strikethroughRgbaSet

setTextTagStrikethroughRgbaSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “strikethrough-rgba-set” property. When overloading is enabled, this is equivalent to

set textTag [ #strikethroughRgbaSet := value ]

strikethroughSet

No description available in the introspection data.

constructTextTagStrikethroughSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “strikethrough-set” property. This is rarely needed directly, but it is used by new.

getTextTagStrikethroughSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “strikethrough-set” property. When overloading is enabled, this is equivalent to

get textTag #strikethroughSet

setTextTagStrikethroughSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “strikethrough-set” property. When overloading is enabled, this is equivalent to

set textTag [ #strikethroughSet := value ]

style

No description available in the introspection data.

constructTextTagStyle :: IsTextTag o => Style -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “style” property. This is rarely needed directly, but it is used by new.

getTextTagStyle :: (MonadIO m, IsTextTag o) => o -> m Style Source #

Get the value of the “style” property. When overloading is enabled, this is equivalent to

get textTag #style

setTextTagStyle :: (MonadIO m, IsTextTag o) => o -> Style -> m () Source #

Set the value of the “style” property. When overloading is enabled, this is equivalent to

set textTag [ #style := value ]

styleSet

No description available in the introspection data.

constructTextTagStyleSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “style-set” property. This is rarely needed directly, but it is used by new.

getTextTagStyleSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “style-set” property. When overloading is enabled, this is equivalent to

get textTag #styleSet

setTextTagStyleSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “style-set” property. When overloading is enabled, this is equivalent to

set textTag [ #styleSet := value ]

tabs

No description available in the introspection data.

clearTextTagTabs :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “tabs” property to Nothing. When overloading is enabled, this is equivalent to

clear #tabs

constructTextTagTabs :: IsTextTag o => TabArray -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “tabs” property. This is rarely needed directly, but it is used by new.

getTextTagTabs :: (MonadIO m, IsTextTag o) => o -> m (Maybe TabArray) Source #

Get the value of the “tabs” property. When overloading is enabled, this is equivalent to

get textTag #tabs

setTextTagTabs :: (MonadIO m, IsTextTag o) => o -> TabArray -> m () Source #

Set the value of the “tabs” property. When overloading is enabled, this is equivalent to

set textTag [ #tabs := value ]

tabsSet

No description available in the introspection data.

constructTextTagTabsSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “tabs-set” property. This is rarely needed directly, but it is used by new.

getTextTagTabsSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “tabs-set” property. When overloading is enabled, this is equivalent to

get textTag #tabsSet

setTextTagTabsSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “tabs-set” property. When overloading is enabled, this is equivalent to

set textTag [ #tabsSet := value ]

underline

No description available in the introspection data.

constructTextTagUnderline :: IsTextTag o => Underline -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “underline” property. This is rarely needed directly, but it is used by new.

getTextTagUnderline :: (MonadIO m, IsTextTag o) => o -> m Underline Source #

Get the value of the “underline” property. When overloading is enabled, this is equivalent to

get textTag #underline

setTextTagUnderline :: (MonadIO m, IsTextTag o) => o -> Underline -> m () Source #

Set the value of the “underline” property. When overloading is enabled, this is equivalent to

set textTag [ #underline := value ]

underlineRgba

This property modifies the color of underlines. If not set, underlines will use the forground color.

If TextTag:underline is set to UnderlineError, an alternate color may be applied instead of the foreground. Setting this property will always override those defaults.

Since: 3.16

clearTextTagUnderlineRgba :: (MonadIO m, IsTextTag o) => o -> m () Source #

Set the value of the “underline-rgba” property to Nothing. When overloading is enabled, this is equivalent to

clear #underlineRgba

constructTextTagUnderlineRgba :: IsTextTag o => RGBA -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “underline-rgba” property. This is rarely needed directly, but it is used by new.

getTextTagUnderlineRgba :: (MonadIO m, IsTextTag o) => o -> m (Maybe RGBA) Source #

Get the value of the “underline-rgba” property. When overloading is enabled, this is equivalent to

get textTag #underlineRgba

setTextTagUnderlineRgba :: (MonadIO m, IsTextTag o) => o -> RGBA -> m () Source #

Set the value of the “underline-rgba” property. When overloading is enabled, this is equivalent to

set textTag [ #underlineRgba := value ]

underlineRgbaSet

If the TextTag:underline-rgba property has been set.

Since: 3.16

constructTextTagUnderlineRgbaSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “underline-rgba-set” property. This is rarely needed directly, but it is used by new.

getTextTagUnderlineRgbaSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “underline-rgba-set” property. When overloading is enabled, this is equivalent to

get textTag #underlineRgbaSet

setTextTagUnderlineRgbaSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “underline-rgba-set” property. When overloading is enabled, this is equivalent to

set textTag [ #underlineRgbaSet := value ]

underlineSet

No description available in the introspection data.

constructTextTagUnderlineSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “underline-set” property. This is rarely needed directly, but it is used by new.

getTextTagUnderlineSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “underline-set” property. When overloading is enabled, this is equivalent to

get textTag #underlineSet

setTextTagUnderlineSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “underline-set” property. When overloading is enabled, this is equivalent to

set textTag [ #underlineSet := value ]

variant

No description available in the introspection data.

constructTextTagVariant :: IsTextTag o => Variant -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “variant” property. This is rarely needed directly, but it is used by new.

getTextTagVariant :: (MonadIO m, IsTextTag o) => o -> m Variant Source #

Get the value of the “variant” property. When overloading is enabled, this is equivalent to

get textTag #variant

setTextTagVariant :: (MonadIO m, IsTextTag o) => o -> Variant -> m () Source #

Set the value of the “variant” property. When overloading is enabled, this is equivalent to

set textTag [ #variant := value ]

variantSet

No description available in the introspection data.

constructTextTagVariantSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “variant-set” property. This is rarely needed directly, but it is used by new.

getTextTagVariantSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “variant-set” property. When overloading is enabled, this is equivalent to

get textTag #variantSet

setTextTagVariantSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “variant-set” property. When overloading is enabled, this is equivalent to

set textTag [ #variantSet := value ]

weight

No description available in the introspection data.

constructTextTagWeight :: IsTextTag o => Int32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “weight” property. This is rarely needed directly, but it is used by new.

getTextTagWeight :: (MonadIO m, IsTextTag o) => o -> m Int32 Source #

Get the value of the “weight” property. When overloading is enabled, this is equivalent to

get textTag #weight

setTextTagWeight :: (MonadIO m, IsTextTag o) => o -> Int32 -> m () Source #

Set the value of the “weight” property. When overloading is enabled, this is equivalent to

set textTag [ #weight := value ]

weightSet

No description available in the introspection data.

constructTextTagWeightSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “weight-set” property. This is rarely needed directly, but it is used by new.

getTextTagWeightSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “weight-set” property. When overloading is enabled, this is equivalent to

get textTag #weightSet

setTextTagWeightSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “weight-set” property. When overloading is enabled, this is equivalent to

set textTag [ #weightSet := value ]

wrapMode

No description available in the introspection data.

constructTextTagWrapMode :: IsTextTag o => WrapMode -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “wrap-mode” property. This is rarely needed directly, but it is used by new.

getTextTagWrapMode :: (MonadIO m, IsTextTag o) => o -> m WrapMode Source #

Get the value of the “wrap-mode” property. When overloading is enabled, this is equivalent to

get textTag #wrapMode

setTextTagWrapMode :: (MonadIO m, IsTextTag o) => o -> WrapMode -> m () Source #

Set the value of the “wrap-mode” property. When overloading is enabled, this is equivalent to

set textTag [ #wrapMode := value ]

wrapModeSet

No description available in the introspection data.

constructTextTagWrapModeSet :: IsTextTag o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “wrap-mode-set” property. This is rarely needed directly, but it is used by new.

getTextTagWrapModeSet :: (MonadIO m, IsTextTag o) => o -> m Bool Source #

Get the value of the “wrap-mode-set” property. When overloading is enabled, this is equivalent to

get textTag #wrapModeSet

setTextTagWrapModeSet :: (MonadIO m, IsTextTag o) => o -> Bool -> m () Source #

Set the value of the “wrap-mode-set” property. When overloading is enabled, this is equivalent to

set textTag [ #wrapModeSet := value ]

Signals

event

type C_TextTagEventCallback = Ptr () -> Ptr Object -> Ptr Event -> Ptr TextIter -> Ptr () -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type TextTagEventCallback Source #

Arguments

 = Object

object: the object the event was fired from (typically a TextView)

-> Event

event: the event which triggered the signal

-> TextIter

iter: a TextIter pointing at the location the event occurred

-> IO Bool

Returns: True to stop other handlers from being invoked for the event. False to propagate the event further.

The ::event signal is emitted when an event occurs on a region of the buffer marked with this tag.

afterTextTagEvent :: (IsTextTag a, MonadIO m) => a -> TextTagEventCallback -> m SignalHandlerId Source #

Connect a signal handler for the “event” signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after textTag #event callback

mk_TextTagEventCallback :: C_TextTagEventCallback -> IO (FunPtr C_TextTagEventCallback) Source #

Generate a function pointer callable from C code, from a C_TextTagEventCallback.

onTextTagEvent :: (IsTextTag a, MonadIO m) => a -> TextTagEventCallback -> m SignalHandlerId Source #

Connect a signal handler for the “event” signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on textTag #event callback