Package ch.bailu.gtk.gdk
Klasse ContentDeserializer
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gdk.ContentDeserializer
- Alle implementierten Schnittstellen:
PointerInterface
Deserializes content received via inter-application data transfers.
The `GdkContentDeserializer` transforms serialized content that is
identified by a mime type into an object identified by a GType.
GTK provides serializers and deserializers for common data types
such as text, colors, images or file lists. To register your own
deserialization functions, use [func@content_register_deserializer].
Also see [class@Gdk.ContentSerializer].
The `GdkContentDeserializer` transforms serialized content that is
identified by a mime type into an object identified by a GType.
GTK provides serializers and deserializers for common data types
such as text, colors, images or file lists. To register your own
deserialization functions, use [func@content_register_deserializer].
Also see [class@Gdk.ContentSerializer].
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceAsyncResult.Gets the cancellable for the current operation.static ClassHandlerlonggetGtype()Gets the `GType` to create an instance of.Gets the input stream for the current operation.static intGets the mime type to deserialize from.static longstatic TypeSystem.TypeSizeintGets the I/O priority for the current operation.Gets the data that was associated with the current operation.static longstatic TypeSystem.TypeSizeGets the user data that was passed when the deserializer was registered.getValue()Gets the `GValue` to store the deserialized object in.voidreturnError(Error error) Indicate that the deserialization has ended with an error.voidIndicate that the deserialization has been successfully completed.voidsetTaskData(Pointer data, ContentDeserializer.OnDestroyNotify notify) Associate data with the current deserialization operation.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
ContentDeserializer
-
-
Methodendetails
-
getClassHandler
-
getCancellable
Gets the cancellable for the current operation.
This is the `GCancellable` that was passed to [func@Gdk.content_deserialize_async].- Gibt zurück:
- the cancellable for the current operation
-
getGtype
public long getGtype()Gets the `GType` to create an instance of.- Gibt zurück:
- the `GType` for the current operation
-
getInputStream
Gets the input stream for the current operation.
This is the stream that was passed to [func@Gdk.content_deserialize_async].- Gibt zurück:
- the input stream for the current operation
-
getMimeType
Gets the mime type to deserialize from.- Gibt zurück:
- the mime type for the current operation
-
getPriority
public int getPriority()Gets the I/O priority for the current operation.
This is the priority that was passed to [func@Gdk.content_deserialize_async].- Gibt zurück:
- the I/O priority for the current operation
-
getTaskData
Gets the data that was associated with the current operation.
See [method@Gdk.ContentDeserializer.set_task_data].- Gibt zurück:
- the task data for @deserializer
-
getUserData
Gets the user data that was passed when the deserializer was registered.- Gibt zurück:
- the user data for this deserializer
-
getValue
Gets the `GValue` to store the deserialized object in.- Gibt zurück:
- the `GValue` for the current operation
-
returnError
Indicate that the deserialization has ended with an error.
This function consumes @error.- Parameter:
error- a `GError`
-
returnSuccess
public void returnSuccess()Indicate that the deserialization has been successfully completed. -
setTaskData
Associate data with the current deserialization operation.- Parameter:
data- data to associate with this operationnotify- destroy notify for @data
-
asAsyncResult
Implements interfaceAsyncResult. Call this to get access to interface functions.- Gibt zurück:
AsyncResult
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-