Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Represents a tag object.
Synopsis
- newtype Tag = Tag (ManagedPtr Tag)
- class (GObject o, IsDescendantOf Tag o) => IsTag o
- toTag :: (MonadIO m, IsTag o) => o -> m Tag
- tagGetMessage :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Text)
- tagGetName :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Text)
- tagGetTagger :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Signature)
- tagGetTarget :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Object)
- tagGetTargetId :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe OId)
- tagGetTargetType :: (HasCallStack, MonadIO m, IsTag a) => a -> m GType
- tagPeel :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Object)
Exported types
Memory-managed wrapper type.
Instances
Eq Tag Source # | |
GObject Tag Source # | |
Defined in GI.Ggit.Objects.Tag | |
ManagedPtrNewtype Tag Source # | |
Defined in GI.Ggit.Objects.Tag toManagedPtr :: Tag -> ManagedPtr Tag | |
TypedObject Tag Source # | |
Defined in GI.Ggit.Objects.Tag | |
HasParentTypes Tag Source # | |
Defined in GI.Ggit.Objects.Tag | |
IsGValue (Maybe Tag) Source # | Convert |
Defined in GI.Ggit.Objects.Tag gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Tag -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Tag) | |
type ParentTypes Tag Source # | |
Defined in GI.Ggit.Objects.Tag |
class (GObject o, IsDescendantOf Tag o) => IsTag o Source #
Instances
(GObject o, IsDescendantOf Tag o) => IsTag o Source # | |
Defined in GI.Ggit.Objects.Tag |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, peel, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getId, getMessage, getName, getOwner, getProperty, getQdata, getTagger, getTarget, getTargetId, getTargetType.
Setters
getMessage
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Text) | Returns: the message of the tag or |
Gets the message of tag
.
getName
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Text) | Returns: the name of the tag or |
Gets the name of tag
.
getTagger
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Signature) | Returns: the tagger (author) of the tag or |
Get the tagger (author) of tag
. The returned value must be free with
objectUnref
.
getTarget
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Object) | Returns: the target |
Gets the target Object
of tag
.
This method performs a repository lookup for the given object and returns it.
getTargetId
getTargetType
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m GType | Returns: a |
Get the target object type.