gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.TargetList

Contents

Description

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

Synopsis

Exported types

newtype TargetList Source #

Instances

BoxedObject TargetList Source # 
((~) * info (ResolveTargetListMethod t TargetList), MethodInfo * info TargetList p) => IsLabel t (TargetList -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> TargetList -> p #

((~) * info (ResolveTargetListMethod t TargetList), MethodInfo * info TargetList p) => IsLabelProxy t (TargetList -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> TargetList -> p #

HasAttributeList * TargetList Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * TargetListUnrefMethodInfo TargetList signature Source # 
((~) * signature (Atom -> m ()), MonadIO m) => MethodInfo * TargetListRemoveMethodInfo TargetList signature Source # 
((~) * signature (m TargetList), MonadIO m) => MethodInfo * TargetListRefMethodInfo TargetList signature Source # 
((~) * signature (Atom -> m (Bool, Word32)), MonadIO m) => MethodInfo * TargetListFindMethodInfo TargetList signature Source # 
((~) * signature (Word32 -> m ()), MonadIO m) => MethodInfo * TargetListAddUriTargetsMethodInfo TargetList signature Source # 
((~) * signature (Word32 -> m ()), MonadIO m) => MethodInfo * TargetListAddTextTargetsMethodInfo TargetList signature Source # 
((~) * signature ([TargetEntry] -> m ()), MonadIO m) => MethodInfo * TargetListAddTableMethodInfo TargetList signature Source # 
((~) * signature (Word32 -> Bool -> a -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TargetListAddRichTextTargetsMethodInfo TargetList signature Source # 
((~) * signature (Word32 -> Bool -> m ()), MonadIO m) => MethodInfo * TargetListAddImageTargetsMethodInfo TargetList signature Source # 
((~) * signature (Atom -> Word32 -> Word32 -> m ()), MonadIO m) => MethodInfo * TargetListAddMethodInfo TargetList signature Source # 
type AttributeList TargetList Source # 

Methods

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.