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 |
Represents the parents of a commit object.
Synopsis
- newtype CommitParents = CommitParents (ManagedPtr CommitParents)
- class (GObject o, IsDescendantOf CommitParents o) => IsCommitParents o
- toCommitParents :: (MonadIO m, IsCommitParents o) => o -> m CommitParents
- commitParentsGet :: (HasCallStack, MonadIO m, IsCommitParents a) => a -> Word32 -> m (Maybe Commit)
- commitParentsGetId :: (HasCallStack, MonadIO m, IsCommitParents a) => a -> Word32 -> m (Maybe OId)
- commitParentsGetSize :: (HasCallStack, MonadIO m, IsCommitParents a) => a -> m Word32
- commitParentsNew :: (HasCallStack, MonadIO m, IsCommit a) => a -> m CommitParents
- constructCommitParentsCommit :: (IsCommitParents o, MonadIO m, IsCommit a) => a -> m (GValueConstruct o)
- getCommitParentsCommit :: (MonadIO m, IsCommitParents o) => o -> m (Maybe Commit)
- getCommitParentsSize :: (MonadIO m, IsCommitParents o) => o -> m Word32
Exported types
newtype CommitParents Source #
Memory-managed wrapper type.
CommitParents (ManagedPtr CommitParents) |
Instances
Eq CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents (==) :: CommitParents -> CommitParents -> Bool (/=) :: CommitParents -> CommitParents -> Bool | |
GObject CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents | |
ManagedPtrNewtype CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents toManagedPtr :: CommitParents -> ManagedPtr CommitParents | |
TypedObject CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents glibType :: IO GType | |
IsGValue CommitParents Source # | Convert |
Defined in GI.Ggit.Objects.CommitParents toGValue :: CommitParents -> IO GValue fromGValue :: GValue -> IO CommitParents | |
HasParentTypes CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents | |
type ParentTypes CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents type ParentTypes CommitParents = '[Object] |
class (GObject o, IsDescendantOf CommitParents o) => IsCommitParents o Source #
Type class for types which can be safely cast to CommitParents
, for instance with toCommitParents
.
Instances
(GObject o, IsDescendantOf CommitParents o) => IsCommitParents o Source # | |
Defined in GI.Ggit.Objects.CommitParents |
toCommitParents :: (MonadIO m, IsCommitParents o) => o -> m CommitParents Source #
Cast to CommitParents
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
get
:: (HasCallStack, MonadIO m, IsCommitParents a) | |
=> a |
|
-> Word32 |
|
-> m (Maybe Commit) | Returns: a |
Get the Commit
of a parent.
getId
:: (HasCallStack, MonadIO m, IsCommitParents a) | |
=> a |
|
-> Word32 |
|
-> m (Maybe OId) | Returns: a |
Get the OId
of a parent.
getSize
:: (HasCallStack, MonadIO m, IsCommitParents a) | |
=> a |
|
-> m Word32 | Returns: the number of parents. |
Get the number of parents in the parents collection.
new
commitParentsNew :: (HasCallStack, MonadIO m, IsCommit a) => a -> m CommitParents Source #
No description available in the introspection data.
Properties
commit
No description available in the introspection data.
constructCommitParentsCommit :: (IsCommitParents o, MonadIO m, IsCommit a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “commit
” property. This is rarely needed directly, but it is used by new
.
getCommitParentsCommit :: (MonadIO m, IsCommitParents o) => o -> m (Maybe Commit) Source #
Get the value of the “commit
” property.
When overloading is enabled, this is equivalent to
get
commitParents #commit
size
No description available in the introspection data.
getCommitParentsSize :: (MonadIO m, IsCommitParents o) => o -> m Word32 Source #
Get the value of the “size
” property.
When overloading is enabled, this is equivalent to
get
commitParents #size