Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
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
- newtype TargetEntry = TargetEntry (ManagedPtr TargetEntry)
- newZeroTargetEntry :: MonadIO m => m TargetEntry
- noTargetEntry :: Maybe TargetEntry
- targetEntryCopy :: (HasCallStack, MonadIO m) => TargetEntry -> m TargetEntry
- targetEntryFree :: (HasCallStack, MonadIO m) => TargetEntry -> m ()
- targetEntryNew :: (HasCallStack, MonadIO m) => Text -> Word32 -> Word32 -> m TargetEntry
- getTargetEntryFlags :: MonadIO m => TargetEntry -> m Word32
- setTargetEntryFlags :: MonadIO m => TargetEntry -> Word32 -> m ()
- getTargetEntryInfo :: MonadIO m => TargetEntry -> m Word32
- setTargetEntryInfo :: MonadIO m => TargetEntry -> Word32 -> m ()
- clearTargetEntryTarget :: MonadIO m => TargetEntry -> m ()
- getTargetEntryTarget :: MonadIO m => TargetEntry -> m (Maybe Text)
- setTargetEntryTarget :: MonadIO m => TargetEntry -> CString -> m ()
Exported types
newtype TargetEntry Source #
Memory-managed wrapper type.
Instances
Eq TargetEntry Source # | |
Defined in GI.Gtk.Structs.TargetEntry (==) :: TargetEntry -> TargetEntry -> Bool # (/=) :: TargetEntry -> TargetEntry -> Bool # | |
IsGValue TargetEntry Source # | Convert |
Defined in GI.Gtk.Structs.TargetEntry toGValue :: TargetEntry -> IO GValue # fromGValue :: GValue -> IO TargetEntry # | |
BoxedObject TargetEntry Source # | |
Defined in GI.Gtk.Structs.TargetEntry boxedType :: TargetEntry -> IO GType # | |
tag ~ 'AttrSet => Constructible TargetEntry tag Source # | |
Defined in GI.Gtk.Structs.TargetEntry new :: MonadIO m => (ManagedPtr TargetEntry -> TargetEntry) -> [AttrOp TargetEntry tag] -> m TargetEntry # |
newZeroTargetEntry :: MonadIO m => m TargetEntry Source #
Construct a TargetEntry
struct initialized to zero.
noTargetEntry :: Maybe TargetEntry Source #
A convenience alias for Nothing
:: Maybe
TargetEntry
.
Methods
Overloaded methods
copy
:: (HasCallStack, MonadIO m) | |
=> TargetEntry |
|
-> m TargetEntry | Returns: a pointer to a copy of |
Makes a copy of a TargetEntry
and its data.
free
:: (HasCallStack, MonadIO m) | |
=> TargetEntry |
|
-> m () |
Frees a TargetEntry
returned from
targetEntryNew
or targetEntryCopy
.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Word32 |
|
-> Word32 |
|
-> m TargetEntry | Returns: a pointer to a new |
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 ]