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 |
A TargetList
-struct is a reference counted list
of TargetPair
and should be treated as
opaque.
Synopsis
- newtype TargetList = TargetList (ManagedPtr 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.
TargetList (ManagedPtr TargetList) |
Instances
Eq TargetList Source # | |
Defined in GI.Gtk.Structs.TargetList (==) :: TargetList -> TargetList -> Bool # (/=) :: TargetList -> TargetList -> Bool # | |
GBoxed TargetList Source # | |
Defined in GI.Gtk.Structs.TargetList | |
ManagedPtrNewtype TargetList Source # | |
Defined in GI.Gtk.Structs.TargetList toManagedPtr :: TargetList -> ManagedPtr TargetList | |
TypedObject TargetList Source # | |
Defined in GI.Gtk.Structs.TargetList | |
HasParentTypes TargetList Source # | |
Defined in GI.Gtk.Structs.TargetList | |
IsGValue (Maybe TargetList) Source # | Convert |
Defined in GI.Gtk.Structs.TargetList gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TargetList -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe TargetList) | |
type ParentTypes TargetList Source # | |
Defined in GI.Gtk.Structs.TargetList |
Methods
Click to display all available methods, including inherited ones
Methods
add, addImageTargets, addRichTextTargets, addTable, addTextTargets, addUriTargets, find, ref, remove, unref.
Getters
None.
Setters
None.
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 3.24.37, this includes the application/vnd.portal.files target when possible, to allow sending files between sandboxed apps via the FileTransfer portal.
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.