gi-gtk-3.0.32: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.TargetPair

Contents

Description

A tTargetPair is used to represent the same information as a table of tTargetEntry, but in an efficient form.

Synopsis

Exported types

newtype TargetPair Source #

Memory-managed wrapper type.

Constructors

TargetPair (ManagedPtr TargetPair) 
Instances
Eq TargetPair Source # 
Instance details

Defined in GI.Gtk.Structs.TargetPair

Methods

(==) :: TargetPair -> TargetPair -> Bool

(/=) :: TargetPair -> TargetPair -> Bool

WrappedPtr TargetPair Source # 
Instance details

Defined in GI.Gtk.Structs.TargetPair

Methods

wrappedPtrCalloc :: IO (Ptr TargetPair)

wrappedPtrCopy :: TargetPair -> IO TargetPair

wrappedPtrFree :: Maybe (GDestroyNotify TargetPair)

tag ~ AttrSet => Constructible TargetPair tag Source # 
Instance details

Defined in GI.Gtk.Structs.TargetPair

Methods

new :: MonadIO m => (ManagedPtr TargetPair -> TargetPair) -> [AttrOp TargetPair tag] -> m TargetPair

newZeroTargetPair :: MonadIO m => m TargetPair Source #

Construct a TargetPair struct initialized to zero.

noTargetPair :: Maybe TargetPair Source #

A convenience alias for Nothing :: Maybe TargetPair.

Methods

Overloaded methods

Properties

flags

tTargetFlags for DND

getTargetPairFlags :: MonadIO m => TargetPair -> m Word32 Source #

Get the value of the “flags” field. When overloading is enabled, this is equivalent to

get targetPair #flags

setTargetPairFlags :: MonadIO m => TargetPair -> Word32 -> m () Source #

Set the value of the “flags” field. When overloading is enabled, this is equivalent to

set targetPair [ #flags := value ]

info

an application-assigned integer ID which will get passed as a parameter to e.g the selectionGet signal. It allows the application to identify the target type without extensive string compares.

getTargetPairInfo :: MonadIO m => TargetPair -> m Word32 Source #

Get the value of the “info” field. When overloading is enabled, this is equivalent to

get targetPair #info

setTargetPairInfo :: MonadIO m => TargetPair -> Word32 -> m () Source #

Set the value of the “info” field. When overloading is enabled, this is equivalent to

set targetPair [ #info := value ]

target

tAtom representation of the target type

getTargetPairTarget :: MonadIO m => TargetPair -> m Atom Source #

Get the value of the “target” field. When overloading is enabled, this is equivalent to

get targetPair #target