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.Gio.Objects.MenuLinkIter
Description
MenuLinkIter
is an opaque structure type. You must access it using
the functions below.
- newtype MenuLinkIter = MenuLinkIter (ManagedPtr MenuLinkIter)
- class GObject o => IsMenuLinkIter o
- toMenuLinkIter :: (MonadIO m, IsMenuLinkIter o) => o -> m MenuLinkIter
- noMenuLinkIter :: Maybe MenuLinkIter
- menuLinkIterGetName :: (HasCallStack, MonadIO m, IsMenuLinkIter a) => a -> m Text
- menuLinkIterGetNext :: (HasCallStack, MonadIO m, IsMenuLinkIter a) => a -> m (Bool, Text, MenuModel)
- menuLinkIterGetValue :: (HasCallStack, MonadIO m, IsMenuLinkIter a) => a -> m MenuModel
- menuLinkIterNext :: (HasCallStack, MonadIO m, IsMenuLinkIter a) => a -> m Bool
Exported types
newtype MenuLinkIter Source #
Constructors
MenuLinkIter (ManagedPtr MenuLinkIter) |
class GObject o => IsMenuLinkIter o Source #
Instances
toMenuLinkIter :: (MonadIO m, IsMenuLinkIter o) => o -> m MenuLinkIter Source #
Methods
getName
Arguments
:: (HasCallStack, MonadIO m, IsMenuLinkIter a) | |
=> a |
|
-> m Text | Returns: the type of the link |
Gets the name of the link at the current iterator position.
The iterator is not advanced.
Since: 2.32
getNext
Arguments
:: (HasCallStack, MonadIO m, IsMenuLinkIter a) | |
=> a |
|
-> m (Bool, Text, MenuModel) | Returns: |
This function combines menuLinkIterNext
with
menuLinkIterGetName
and menuLinkIterGetValue
.
First the iterator is advanced to the next (possibly first) link.
If that fails, then False
is returned and there are no other effects.
If successful, outLink
and value
are set to the name and MenuModel
of the link that has just been advanced to. At this point,
menuLinkIterGetName
and menuLinkIterGetValue
will return the
same values again.
The value returned in outLink
remains valid for as long as the iterator
remains at the current position. The value returned in value
must
be unreffed using objectUnref
when it is no longer in use.
Since: 2.32
getValue
Arguments
:: (HasCallStack, MonadIO m, IsMenuLinkIter a) | |
=> a |
|
-> m MenuModel | Returns: the |
next
Arguments
:: (HasCallStack, MonadIO m, IsMenuLinkIter a) | |
=> a |
|
-> m Bool | Returns: |