gi-gtk-3.0.34: 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.TargetEntry

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.

Constructors

TargetEntry (ManagedPtr TargetEntry) 

Instances

Instances details
Eq TargetEntry Source # 
Instance details

Defined in GI.Gtk.Structs.TargetEntry

Methods

(==) :: TargetEntry -> TargetEntry -> Bool

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

GBoxed TargetEntry Source # 
Instance details

Defined in GI.Gtk.Structs.TargetEntry

ManagedPtrNewtype TargetEntry Source # 
Instance details

Defined in GI.Gtk.Structs.TargetEntry

Methods

toManagedPtr :: TargetEntry -> ManagedPtr TargetEntry

TypedObject TargetEntry Source # 
Instance details

Defined in GI.Gtk.Structs.TargetEntry

Methods

glibType :: IO GType

IsGValue TargetEntry Source #

Convert TargetEntry to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Structs.TargetEntry

Methods

toGValue :: TargetEntry -> IO GValue

fromGValue :: GValue -> IO TargetEntry

HasParentTypes TargetEntry Source # 
Instance details

Defined in GI.Gtk.Structs.TargetEntry

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

Defined in GI.Gtk.Structs.TargetEntry

Methods

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

type ParentTypes TargetEntry Source # 
Instance details

Defined in GI.Gtk.Structs.TargetEntry

type ParentTypes TargetEntry = '[] :: [Type]

newZeroTargetEntry :: MonadIO m => m TargetEntry Source #

Construct a TargetEntry struct initialized to zero.

Methods

Overloaded 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 selectionGet 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 ]