gi-gtksource-3.0.24: GtkSource bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GtkSource.Objects.Tag

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Tag Source #

Memory-managed wrapper type.

Constructors

Tag (ManagedPtr Tag) 

Instances

Instances details
Eq Tag Source # 
Instance details

Defined in GI.GtkSource.Objects.Tag

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

GObject Tag Source # 
Instance details

Defined in GI.GtkSource.Objects.Tag

ManagedPtrNewtype Tag Source # 
Instance details

Defined in GI.GtkSource.Objects.Tag

Methods

toManagedPtr :: Tag -> ManagedPtr Tag

TypedObject Tag Source # 
Instance details

Defined in GI.GtkSource.Objects.Tag

Methods

glibType :: IO GType

HasParentTypes Tag Source # 
Instance details

Defined in GI.GtkSource.Objects.Tag

IsGValue (Maybe Tag) Source #

Convert Tag to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GtkSource.Objects.Tag

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Tag -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Tag)

type ParentTypes Tag Source # 
Instance details

Defined in GI.GtkSource.Objects.Tag

type ParentTypes Tag = '[TextTag, Object]

class (GObject o, IsDescendantOf Tag o) => IsTag o Source #

Type class for types which can be safely cast to Tag, for instance with toTag.

Instances

Instances details
(GObject o, IsDescendantOf Tag o) => IsTag o Source # 
Instance details

Defined in GI.GtkSource.Objects.Tag

toTag :: (MonadIO m, IsTag o) => o -> m Tag Source #

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

Methods

new

tagNew Source #

Arguments

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

name: tag name, or Nothing.

-> m Tag

Returns: a new Tag.

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

For usual cases, gtk_source_buffer_create_source_tag() is more convenient to use.

Since: 3.20

Properties

drawSpaces

Whether to draw white spaces. This property takes precedence over the value defined by the GtkSourceSpaceDrawer's SpaceDrawer:matrix property (only where the tag is applied).

Setting this property also changes Tag:draw-spaces-set to True.

Since: 3.20

constructTagDrawSpaces :: (IsTag o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

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

getTagDrawSpaces :: (MonadIO m, IsTag o) => o -> m Bool Source #

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

get tag #drawSpaces

setTagDrawSpaces :: (MonadIO m, IsTag o) => o -> Bool -> m () Source #

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

set tag [ #drawSpaces := value ]

drawSpacesSet

Whether the Tag:draw-spaces property is set and must be taken into account.

Since: 3.20

constructTagDrawSpacesSet :: (IsTag o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

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

getTagDrawSpacesSet :: (MonadIO m, IsTag o) => o -> m Bool Source #

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

get tag #drawSpacesSet

setTagDrawSpacesSet :: (MonadIO m, IsTag o) => o -> Bool -> m () Source #

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

set tag [ #drawSpacesSet := value ]