| 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 |
GI.Poppler.Structs.IndexIter
Description
No description available in the introspection data.
Synopsis
- newtype IndexIter = IndexIter (ManagedPtr IndexIter)
- indexIterCopy :: (HasCallStack, MonadIO m) => IndexIter -> m IndexIter
- indexIterFree :: (HasCallStack, MonadIO m) => IndexIter -> m ()
- indexIterGetAction :: (HasCallStack, MonadIO m) => IndexIter -> m Action
- indexIterGetChild :: (HasCallStack, MonadIO m) => IndexIter -> m IndexIter
- indexIterIsOpen :: (HasCallStack, MonadIO m) => IndexIter -> m Bool
- indexIterNew :: (HasCallStack, MonadIO m, IsDocument a) => a -> m IndexIter
- indexIterNext :: (HasCallStack, MonadIO m) => IndexIter -> m Bool
Exported types
Memory-managed wrapper type.
Instances
| Eq IndexIter Source # | |
| GBoxed IndexIter Source # | |
Defined in GI.Poppler.Structs.IndexIter | |
| ManagedPtrNewtype IndexIter Source # | |
Defined in GI.Poppler.Structs.IndexIter Methods toManagedPtr :: IndexIter -> ManagedPtr IndexIter | |
| TypedObject IndexIter Source # | |
Defined in GI.Poppler.Structs.IndexIter | |
| HasParentTypes IndexIter Source # | |
Defined in GI.Poppler.Structs.IndexIter | |
| IsGValue (Maybe IndexIter) Source # | Convert |
Defined in GI.Poppler.Structs.IndexIter Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe IndexIter -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe IndexIter) | |
| type ParentTypes IndexIter Source # | |
Defined in GI.Poppler.Structs.IndexIter | |
Methods
Click to display all available methods, including inherited ones
copy
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexIter |
|
| -> m IndexIter | Returns: a new |
Creates a new IndexIter as a copy of iter. This must be freed with
indexIterFree.
free
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexIter |
|
| -> m () |
Frees iter.
getAction
Returns the Action associated with iter. It must be freed with
actionFree.
getChild
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexIter |
|
| -> m IndexIter | Returns: a new |
Returns a newly created child of parent, or Nothing if the iter has no child.
See indexIterNew for more information on this function.
isOpen
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexIter |
|
| -> m Bool | Returns: |
Returns whether this node should be expanded by default to the user. The document can provide a hint as to how the document's index should be expanded initially.
new
Arguments
| :: (HasCallStack, MonadIO m, IsDocument a) | |
| => a |
|
| -> m IndexIter | Returns: a new |
Returns the root IndexIter for document, or Nothing. This must be
freed with indexIterFree.
Certain documents have an index associated with them. This index can be used
to help the user navigate the document, and is similar to a table of
contents. Each node in the index will contain a Action that can be
displayed to the user — typically a POPPLER_ACTION_GOTO_DEST or a
POPPLER_ACTION_URI.
Here is a simple example of some code that walks the full index:
<informalexample><programlisting> static void walk_index (PopplerIndexIter *iter) { do { /<!-- -->* Get the action and do something with it *<!-- -->/ PopplerIndexIter *child = poppler_index_iter_get_child (iter); if (child) walk_index (child); poppler_index_iter_free (child); } while (poppler_index_iter_next (iter)); } ... { iter = poppler_index_iter_new (document); walk_index (iter); poppler_index_iter_free (iter); } </programlisting></informalexample>
next
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexIter |
|
| -> m Bool | Returns: |
Sets iter to point to the next action at the current level, if valid. See
indexIterNew for more information.