Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A GdkContentSerializer is used to serialize content for inter-application data transfers.
Synopsis
- newtype ContentSerializer = ContentSerializer (ManagedPtr ContentSerializer)
- class (GObject o, IsDescendantOf ContentSerializer o) => IsContentSerializer o
- toContentSerializer :: (MonadIO m, IsContentSerializer o) => o -> m ContentSerializer
- contentSerializerGetCancellable :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m Cancellable
- contentSerializerGetGtype :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m GType
- contentSerializerGetMimeType :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m Text
- contentSerializerGetOutputStream :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m OutputStream
- contentSerializerGetPriority :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m Int32
- contentSerializerGetTaskData :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m (Ptr ())
- contentSerializerGetUserData :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m (Ptr ())
- contentSerializerGetValue :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m GValue
- contentSerializerReturnError :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> GError -> m ()
- contentSerializerReturnSuccess :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> m ()
- contentSerializerSetTaskData :: (HasCallStack, MonadIO m, IsContentSerializer a) => a -> Ptr () -> DestroyNotify -> m ()
Exported types
newtype ContentSerializer Source #
Memory-managed wrapper type.
ContentSerializer (ManagedPtr ContentSerializer) |
Instances
Eq ContentSerializer Source # | |
Defined in GI.Gdk.Objects.ContentSerializer (==) :: ContentSerializer -> ContentSerializer -> Bool # (/=) :: ContentSerializer -> ContentSerializer -> Bool # | |
GObject ContentSerializer Source # | |
Defined in GI.Gdk.Objects.ContentSerializer | |
ManagedPtrNewtype ContentSerializer Source # | |
Defined in GI.Gdk.Objects.ContentSerializer toManagedPtr :: ContentSerializer -> ManagedPtr ContentSerializer | |
TypedObject ContentSerializer Source # | |
Defined in GI.Gdk.Objects.ContentSerializer | |
HasParentTypes ContentSerializer Source # | |
Defined in GI.Gdk.Objects.ContentSerializer | |
IsGValue (Maybe ContentSerializer) Source # | Convert |
Defined in GI.Gdk.Objects.ContentSerializer gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ContentSerializer -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ContentSerializer) | |
type ParentTypes ContentSerializer Source # | |
Defined in GI.Gdk.Objects.ContentSerializer |
class (GObject o, IsDescendantOf ContentSerializer o) => IsContentSerializer o Source #
Type class for types which can be safely cast to ContentSerializer
, for instance with toContentSerializer
.
Instances
(GObject o, IsDescendantOf ContentSerializer o) => IsContentSerializer o Source # | |
Defined in GI.Gdk.Objects.ContentSerializer |
toContentSerializer :: (MonadIO m, IsContentSerializer o) => o -> m ContentSerializer Source #
Cast to ContentSerializer
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, isTagged, legacyPropagateError, notify, notifyByPspec, ref, refSink, returnError, returnSuccess, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCancellable, getData, getGtype, getMimeType, getOutputStream, getPriority, getProperty, getQdata, getSourceObject, getTaskData, getUserData, getValue.
Setters
getCancellable
contentSerializerGetCancellable Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m Cancellable | Returns: the cancellable for the current operation |
Gets the cancellable that was passed to contentSerializeAsync
.
getGtype
contentSerializerGetGtype Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m GType | Returns: the GType for the current operation |
Gets the GType to of the object to serialize.
getMimeType
contentSerializerGetMimeType Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m Text | Returns: the mime type for the current operation |
Gets the mime type to serialize to.
getOutputStream
contentSerializerGetOutputStream Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m OutputStream | Returns: the output stream for the current operation |
Gets the output stream that was passed to contentSerializeAsync
.
getPriority
contentSerializerGetPriority Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m Int32 | Returns: the io priority for the current operation |
Gets the io priority that was passed to contentSerializeAsync
.
getTaskData
contentSerializerGetTaskData Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m (Ptr ()) | Returns: the task data for |
Gets the data that was associated with serializer
via contentSerializerSetTaskData
.
getUserData
contentSerializerGetUserData Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m (Ptr ()) | Returns: the user data for this serializer |
Gets the user data that was passed when the serializer was registered.
getValue
contentSerializerGetValue Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m GValue | Returns: the |
Gets the Value
to read the object to serialize from.
returnError
contentSerializerReturnError Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> GError |
|
-> m () |
Indicate that the serialization has ended with an error.
This function consumes error
.
returnSuccess
contentSerializerReturnSuccess Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> m () |
Indicate that the serialization has been successfully completed.
setTaskData
contentSerializerSetTaskData Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> a |
|
-> Ptr () |
|
-> DestroyNotify |
|
-> m () |
Associate data with the current serialization operation.