gi-gtk-3.0.38: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Structs.TargetList

Description

A TargetList-struct is a reference counted list of TargetPair and should be treated as opaque.

Synopsis

Exported types

newtype TargetList Source #

Memory-managed wrapper type.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

add, addImageTargets, addRichTextTargets, addTable, addTextTargets, addUriTargets, find, ref, remove, unref.

Getters

None.

Setters

None.

add

targetListAdd Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> Atom

target: the interned atom representing the target

-> Word32

flags: the flags for this target

-> Word32

info: an ID that will be passed back to the application

-> m () 

Appends another target to a TargetList.

addImageTargets

targetListAddImageTargets Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> Word32

info: an ID that will be passed back to the application

-> Bool

writable: whether to add only targets for which GTK+ knows how to convert a pixbuf into the format

-> 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 #

Arguments

:: (HasCallStack, MonadIO m, IsTextBuffer a) 
=> TargetList

list: a TargetList

-> Word32

info: an ID that will be passed back to the application

-> Bool

deserializable: if True, then deserializable rich text formats will be added, serializable formats otherwise.

-> a

buffer: a TextBuffer.

-> 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

targetListAddTable Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> [TargetEntry]

targets: the table of TargetEntry

-> m () 

Prepends a table of TargetEntry to a target list.

addTextTargets

targetListAddTextTargets Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> Word32

info: an ID that will be passed back to the application

-> 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 #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> Word32

info: an ID that will be passed back to the application

-> m () 

Appends the URI targets supported by SelectionData to the target list. All targets are added with the same info.

Since: 2.6

find

targetListFind Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> Atom

target: an interned atom representing the target to search for

-> m (Bool, Word32)

Returns: True if the target was found, otherwise False

Looks up a given target in a TargetList.

new

targetListNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe [TargetEntry]

targets: Pointer to an array of TargetEntry

-> m TargetList

Returns: the new TargetList.

Creates a new TargetList from an array of TargetEntry.

ref

targetListRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> m TargetList

Returns: the passed in TargetList.

Increases the reference count of a TargetList by one.

remove

targetListRemove Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> Atom

target: the interned atom representing the target

-> m () 

Removes a target from a target list.

unref

targetListUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetList

list: a TargetList

-> m () 

Decreases the reference count of a TargetList by one. If the resulting reference count is zero, frees the list.