Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Tag = Tag (ManagedPtr Tag)
- class (GObject o, IsDescendantOf Tag o) => IsTag o
- toTag :: (MonadIO m, IsTag o) => o -> m Tag
- noTag :: Maybe Tag
- tagNew :: (HasCallStack, MonadIO m) => Maybe Text -> m Tag
- constructTagDrawSpaces :: IsTag o => Bool -> IO (GValueConstruct o)
- getTagDrawSpaces :: (MonadIO m, IsTag o) => o -> m Bool
- setTagDrawSpaces :: (MonadIO m, IsTag o) => o -> Bool -> m ()
- constructTagDrawSpacesSet :: IsTag o => Bool -> IO (GValueConstruct o)
- getTagDrawSpacesSet :: (MonadIO m, IsTag o) => o -> m Bool
- setTagDrawSpacesSet :: (MonadIO m, IsTag o) => o -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Tag (ManagedPtr Tag) |
Instances
Eq Tag Source # | |
IsGValue Tag Source # | Convert |
GObject Tag Source # | |
Defined in GI.GtkSource.Objects.Tag gobjectType :: IO GType # | |
HasParentTypes Tag Source # | |
Defined in GI.GtkSource.Objects.Tag | |
type ParentTypes Tag Source # | |
Defined in GI.GtkSource.Objects.Tag |
class (GObject o, IsDescendantOf Tag o) => IsTag o Source #
Instances
(GObject o, IsDescendantOf Tag o) => IsTag o Source # | |
Defined in GI.GtkSource.Objects.Tag |
Methods
Overloaded methods
new
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 => Bool -> IO (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 => Bool -> IO (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 ]