| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GtkSource.Objects.Tag
Description
No description available in the introspection data.
Synopsis
- newtype Tag = Tag (ManagedPtr Tag)
- class GObject 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.
Constructors
| Tag (ManagedPtr Tag) |
Instances
| GObject Tag Source # | |
Defined in GI.GtkSource.Objects.Tag Methods gobjectType :: Tag -> IO GType # | |
| IsObject Tag Source # | |
Defined in GI.GtkSource.Objects.Tag | |
| IsTextTag Tag Source # | |
Defined in GI.GtkSource.Objects.Tag | |
| IsTag Tag Source # | |
Defined in GI.GtkSource.Objects.Tag | |
class GObject o => IsTag o Source #
Instances
| (GObject a, (UnknownAncestorError Tag a :: Constraint)) => IsTag a Source # | |
Defined in GI.GtkSource.Objects.Tag | |
| IsTag Tag Source # | |
Defined in GI.GtkSource.Objects.Tag | |
Methods
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Maybe Text |
|
| -> m Tag | Returns: a 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
settag [ #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
settag [ #drawSpacesSet:=value ]