gi-gtk-3.0.31: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.TargetEntry

Contents

Description

A TargetEntry represents a single type of data than can be supplied for by a widget for a selection or for supplied or received during drag-and-drop.

Synopsis

Exported types

newtype TargetEntry Source #

Memory-managed wrapper type.

Instances
BoxedObject TargetEntry Source # 
Instance details

Defined in GI.Gtk.Structs.TargetEntry

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

Defined in GI.Gtk.Structs.TargetEntry

newZeroTargetEntry :: MonadIO m => m TargetEntry Source #

Construct a TargetEntry struct initialized to zero.

Methods

copy

targetEntryCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetEntry

data: a pointer to a TargetEntry

-> m TargetEntry

Returns: a pointer to a copy of data. Free with targetEntryFree

Makes a copy of a TargetEntry and its data.

free

targetEntryFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TargetEntry

data: a pointer to a TargetEntry.

-> m () 

Frees a TargetEntry returned from targetEntryNew or targetEntryCopy.

new

targetEntryNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

target: String identifier for target

-> Word32

flags: Set of flags, see TargetFlags

-> Word32

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

-> m TargetEntry

Returns: a pointer to a new TargetEntry. Free with targetEntryFree

Makes a new TargetEntry.

Properties

flags

TargetFlags for DND

getTargetEntryFlags :: MonadIO m => TargetEntry -> m Word32 Source #

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

get targetEntry #flags

setTargetEntryFlags :: MonadIO m => TargetEntry -> Word32 -> m () Source #

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

set targetEntry [ #flags := value ]

info

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

getTargetEntryInfo :: MonadIO m => TargetEntry -> m Word32 Source #

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

get targetEntry #info

setTargetEntryInfo :: MonadIO m => TargetEntry -> Word32 -> m () Source #

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

set targetEntry [ #info := value ]

target

a string representation of the target type

clearTargetEntryTarget :: MonadIO m => TargetEntry -> m () Source #

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

clear #target

getTargetEntryTarget :: MonadIO m => TargetEntry -> m (Maybe Text) Source #

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

get targetEntry #target

setTargetEntryTarget :: MonadIO m => TargetEntry -> CString -> m () Source #

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

set targetEntry [ #target := value ]