Package ch.bailu.gtk.gio
Class PollableOutputStreamInterface
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.PollableOutputStreamInterface
- All Implemented Interfaces:
PointerInterface
The interface for pollable output streams.
The default implementation of @can_poll always returns %TRUE.
The default implementation of @write_nonblocking calls
g_pollable_output_stream_is_writable(), and then calls
g_output_stream_write() if it returns %TRUE. This means you only
need to override it if it is possible that your @is_writable
implementation may return %TRUE when the stream is not actually
writable.
The default implementation of @writev_nonblocking calls
g_pollable_output_stream_write_nonblocking() for each vector, and converts
its return value and error (if set) to a #GPollableReturn. You should
override this where possible to avoid having to allocate a #GError to return
%G_IO_ERROR_WOULD_BLOCK.
The default implementation of @can_poll always returns %TRUE.
The default implementation of @write_nonblocking calls
g_pollable_output_stream_is_writable(), and then calls
g_output_stream_write() if it returns %TRUE. This means you only
need to override it if it is possible that your @is_writable
implementation may return %TRUE when the stream is not actually
writable.
The default implementation of @writev_nonblocking calls
g_pollable_output_stream_write_nonblocking() for each vector, and converts
its return value and error (if set) to a #GPollableReturn. You should
override this where possible to avoid having to allocate a #GError to return
%G_IO_ERROR_WOULD_BLOCK.
https://docs.gtk.org/gio/struct.PollableOutputStreamInterface.html
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnCanPollch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnCreateSourcech.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnIsWritablech.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnWriteNonblockingstatic intstatic TypeSystem.TypeSizestatic TypeSystem.TypeSizevoidvoidsetFieldCreateSource(PollableOutputStreamInterface.OnCreateSource create_source) voidvoidsetFieldWriteNonblocking(PollableOutputStreamInterface.OnWriteNonblocking write_nonblocking) Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
G_IFACE
The parent interface.
Private field: direct-type- See Also:
-
CAN_POLL
- See Also:
-
IS_WRITABLE
- See Also:
-
CREATE_SOURCE
- See Also:
-
WRITE_NONBLOCKING
- See Also:
-
-
Constructor Details
-
PollableOutputStreamInterface
-
-
Method Details
-
getClassHandler
-
setFieldCanPoll
-
getFieldCanPoll
public ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnCanPoll getFieldCanPoll() -
setFieldIsWritable
-
getFieldIsWritable
public ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnIsWritable getFieldIsWritable() -
setFieldCreateSource
-
getFieldCreateSource
public ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnCreateSource getFieldCreateSource() -
setFieldWriteNonblocking
public void setFieldWriteNonblocking(PollableOutputStreamInterface.OnWriteNonblocking write_nonblocking) -
getFieldWriteNonblocking
public ch.bailu.gtk.gio.JnaPollableOutputStreamInterface.OnWriteNonblocking getFieldWriteNonblocking() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-