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.GLib.Structs.Queue
Contents
Description
Contains the public fields of a [Queue][glib-Double-ended-Queues].
- newtype Queue = Queue (ForeignPtr Queue)
- newZeroQueue :: MonadIO m => m Queue
- noQueue :: Maybe Queue
- data QueueClearMethodInfo
- queueClear :: MonadIO m => Queue -> m ()
- data QueueFreeMethodInfo
- queueFree :: MonadIO m => Queue -> m ()
- data QueueFreeFullMethodInfo
- queueFreeFull :: MonadIO m => Queue -> DestroyNotify -> m ()
- data QueueGetLengthMethodInfo
- queueGetLength :: MonadIO m => Queue -> m Word32
- data QueueIndexMethodInfo
- queueIndex :: MonadIO m => Queue -> Ptr () -> m Int32
- data QueueInitMethodInfo
- queueInit :: MonadIO m => Queue -> m ()
- data QueueIsEmptyMethodInfo
- queueIsEmpty :: MonadIO m => Queue -> m Bool
- data QueuePushHeadMethodInfo
- queuePushHead :: MonadIO m => Queue -> Ptr () -> m ()
- data QueuePushNthMethodInfo
- queuePushNth :: MonadIO m => Queue -> Ptr () -> Int32 -> m ()
- data QueuePushTailMethodInfo
- queuePushTail :: MonadIO m => Queue -> Ptr () -> m ()
- data QueueRemoveMethodInfo
- queueRemove :: MonadIO m => Queue -> Ptr () -> m Bool
- data QueueRemoveAllMethodInfo
- queueRemoveAll :: MonadIO m => Queue -> Ptr () -> m Word32
- data QueueReverseMethodInfo
- queueReverse :: MonadIO m => Queue -> m ()
- queueClearHead :: MonadIO m => Queue -> m ()
- queueHead :: AttrLabelProxy "head"
- queueReadHead :: MonadIO m => Queue -> m [Ptr ()]
- queueWriteHead :: MonadIO m => Queue -> Ptr (GList (Ptr ())) -> m ()
- queueLength :: AttrLabelProxy "length"
- queueReadLength :: MonadIO m => Queue -> m Word32
- queueWriteLength :: MonadIO m => Queue -> Word32 -> m ()
- queueClearTail :: MonadIO m => Queue -> m ()
- queueReadTail :: MonadIO m => Queue -> m [Ptr ()]
- queueTail :: AttrLabelProxy "tail"
- queueWriteTail :: MonadIO m => Queue -> Ptr (GList (Ptr ())) -> m ()
Exported types
Constructors
Queue (ForeignPtr Queue) |
Instances
WrappedPtr Queue | |
(~) AttrOpTag tag AttrSet => Constructible Queue tag | |
((~) * signature (m ()), MonadIO m) => MethodInfo * QueueReverseMethodInfo Queue signature | |
((~) * signature (Ptr () -> m Word32), MonadIO m) => MethodInfo * QueueRemoveAllMethodInfo Queue signature | |
((~) * signature (Ptr () -> m Bool), MonadIO m) => MethodInfo * QueueRemoveMethodInfo Queue signature | |
((~) * signature (Ptr () -> m ()), MonadIO m) => MethodInfo * QueuePushTailMethodInfo Queue signature | |
((~) * signature (Ptr () -> Int32 -> m ()), MonadIO m) => MethodInfo * QueuePushNthMethodInfo Queue signature | |
((~) * signature (Ptr () -> m ()), MonadIO m) => MethodInfo * QueuePushHeadMethodInfo Queue signature | |
((~) * signature (m Bool), MonadIO m) => MethodInfo * QueueIsEmptyMethodInfo Queue signature | |
((~) * signature (m ()), MonadIO m) => MethodInfo * QueueInitMethodInfo Queue signature | |
((~) * signature (Ptr () -> m Int32), MonadIO m) => MethodInfo * QueueIndexMethodInfo Queue signature | |
((~) * signature (m Word32), MonadIO m) => MethodInfo * QueueGetLengthMethodInfo Queue signature | |
((~) * signature (DestroyNotify -> m ()), MonadIO m) => MethodInfo * QueueFreeFullMethodInfo Queue signature | |
((~) * signature (m ()), MonadIO m) => MethodInfo * QueueFreeMethodInfo Queue signature | |
((~) * signature (m ()), MonadIO m) => MethodInfo * QueueClearMethodInfo Queue signature | |
((~) * info (ResolveQueueMethod t Queue), MethodInfo * info Queue p) => IsLabelProxy t (Queue -> p) | |
type AttributeList Queue |
newZeroQueue :: MonadIO m => m Queue Source
Construct a Queue
struct initialized to zero.
Methods
queueClear
data QueueClearMethodInfo Source
Instances
((~) * signature (m ()), MonadIO m) => MethodInfo * QueueClearMethodInfo Queue signature |
queueClear :: MonadIO m => Queue -> m () Source
queueFree
data QueueFreeMethodInfo Source
Instances
((~) * signature (m ()), MonadIO m) => MethodInfo * QueueFreeMethodInfo Queue signature |
queueFreeFull
data QueueFreeFullMethodInfo Source
Instances
((~) * signature (DestroyNotify -> m ()), MonadIO m) => MethodInfo * QueueFreeFullMethodInfo Queue signature |
queueFreeFull :: MonadIO m => Queue -> DestroyNotify -> m () Source
queueGetLength
data QueueGetLengthMethodInfo Source
Instances
((~) * signature (m Word32), MonadIO m) => MethodInfo * QueueGetLengthMethodInfo Queue signature |
queueGetLength :: MonadIO m => Queue -> m Word32 Source
queueIndex
data QueueIndexMethodInfo Source
Instances
((~) * signature (Ptr () -> m Int32), MonadIO m) => MethodInfo * QueueIndexMethodInfo Queue signature |
queueInit
data QueueInitMethodInfo Source
Instances
((~) * signature (m ()), MonadIO m) => MethodInfo * QueueInitMethodInfo Queue signature |
queueIsEmpty
data QueueIsEmptyMethodInfo Source
Instances
((~) * signature (m Bool), MonadIO m) => MethodInfo * QueueIsEmptyMethodInfo Queue signature |
queueIsEmpty :: MonadIO m => Queue -> m Bool Source
queuePushHead
data QueuePushHeadMethodInfo Source
Instances
((~) * signature (Ptr () -> m ()), MonadIO m) => MethodInfo * QueuePushHeadMethodInfo Queue signature |
queuePushHead :: MonadIO m => Queue -> Ptr () -> m () Source
queuePushNth
data QueuePushNthMethodInfo Source
Instances
((~) * signature (Ptr () -> Int32 -> m ()), MonadIO m) => MethodInfo * QueuePushNthMethodInfo Queue signature |
queuePushTail
data QueuePushTailMethodInfo Source
Instances
((~) * signature (Ptr () -> m ()), MonadIO m) => MethodInfo * QueuePushTailMethodInfo Queue signature |
queuePushTail :: MonadIO m => Queue -> Ptr () -> m () Source
queueRemove
data QueueRemoveMethodInfo Source
Instances
((~) * signature (Ptr () -> m Bool), MonadIO m) => MethodInfo * QueueRemoveMethodInfo Queue signature |
queueRemoveAll
data QueueRemoveAllMethodInfo Source
Instances
((~) * signature (Ptr () -> m Word32), MonadIO m) => MethodInfo * QueueRemoveAllMethodInfo Queue signature |
queueReverse
data QueueReverseMethodInfo Source
Instances
((~) * signature (m ()), MonadIO m) => MethodInfo * QueueReverseMethodInfo Queue signature |
queueReverse :: MonadIO m => Queue -> m () Source
Properties
Head
queueClearHead :: MonadIO m => Queue -> m () Source
queueHead :: AttrLabelProxy "head" Source
queueReadHead :: MonadIO m => Queue -> m [Ptr ()] Source
Length
queueLength :: AttrLabelProxy "length" Source
queueReadLength :: MonadIO m => Queue -> m Word32 Source
queueWriteLength :: MonadIO m => Queue -> Word32 -> m () Source
Tail
queueClearTail :: MonadIO m => Queue -> m () Source
queueReadTail :: MonadIO m => Queue -> m [Ptr ()] Source
queueTail :: AttrLabelProxy "tail" Source