Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
A TargetList
-struct is a reference counted list
of TargetPair
and should be treated as
opaque.
Synopsis
- newtype TargetList = TargetList (ManagedPtr TargetList)
- noTargetList :: Maybe TargetList
- targetListAdd :: (HasCallStack, MonadIO m) => TargetList -> Atom -> Word32 -> Word32 -> m ()
- targetListAddImageTargets :: (HasCallStack, MonadIO m) => TargetList -> Word32 -> Bool -> m ()
- targetListAddRichTextTargets :: (HasCallStack, MonadIO m, IsTextBuffer a) => TargetList -> Word32 -> Bool -> a -> m ()
- targetListAddTable :: (HasCallStack, MonadIO m) => TargetList -> [TargetEntry] -> m ()
- targetListAddTextTargets :: (HasCallStack, MonadIO m) => TargetList -> Word32 -> m ()
- targetListAddUriTargets :: (HasCallStack, MonadIO m) => TargetList -> Word32 -> m ()
- targetListFind :: (HasCallStack, MonadIO m) => TargetList -> Atom -> m (Bool, Word32)
- targetListNew :: (HasCallStack, MonadIO m) => Maybe [TargetEntry] -> m TargetList
- targetListRef :: (HasCallStack, MonadIO m) => TargetList -> m TargetList
- targetListRemove :: (HasCallStack, MonadIO m) => TargetList -> Atom -> m ()
- targetListUnref :: (HasCallStack, MonadIO m) => TargetList -> m ()
Exported types
newtype TargetList Source #
Memory-managed wrapper type.
Instances
BoxedObject TargetList Source # | |
Defined in GI.Gtk.Structs.TargetList boxedType :: TargetList -> IO GType # |
noTargetList :: Maybe TargetList Source #
A convenience alias for Nothing
:: Maybe
TargetList
.
Methods
add
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> Atom |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
Appends another target to a TargetList
.
addImageTargets
targetListAddImageTargets Source #
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> Word32 |
|
-> Bool |
|
-> m () |
Appends the image targets supported by SelectionData
to
the target list. All targets are added with the same info
.
Since: 2.6
addRichTextTargets
targetListAddRichTextTargets Source #
:: (HasCallStack, MonadIO m, IsTextBuffer a) | |
=> TargetList |
|
-> Word32 |
|
-> Bool |
|
-> a |
|
-> m () |
Appends the rich text targets registered with
textBufferRegisterSerializeFormat
or
textBufferRegisterDeserializeFormat
to the target list. All
targets are added with the same info
.
Since: 2.10
addTable
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> [TargetEntry] |
|
-> m () |
Prepends a table of TargetEntry
to a target list.
addTextTargets
targetListAddTextTargets Source #
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> Word32 |
|
-> m () |
Appends the text targets supported by SelectionData
to
the target list. All targets are added with the same info
.
Since: 2.6
addUriTargets
targetListAddUriTargets Source #
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> Word32 |
|
-> m () |
Appends the URI targets supported by SelectionData
to
the target list. All targets are added with the same info
.
Since: 2.6
find
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> Atom |
|
-> m (Bool, Word32) |
Looks up a given target in a TargetList
.
new
:: (HasCallStack, MonadIO m) | |
=> Maybe [TargetEntry] |
|
-> m TargetList | Returns: the new |
Creates a new TargetList
from an array of TargetEntry
.
ref
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> m TargetList | Returns: the passed in |
Increases the reference count of a TargetList
by one.
remove
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> Atom |
|
-> m () |
Removes a target from a target list.
unref
:: (HasCallStack, MonadIO m) | |
=> TargetList |
|
-> m () |
Decreases the reference count of a TargetList
by one.
If the resulting reference count is zero, frees the list.