Package ch.bailu.gtk.gio
Class PollableInputStreamInterface
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.PollableInputStreamInterface
- All Implemented Interfaces:
PointerInterface
The interface for pollable input streams.
The default implementation of @can_poll always returns %TRUE.
The default implementation of @read_nonblocking calls
g_pollable_input_stream_is_readable(), and then calls
g_input_stream_read() if it returns %TRUE. This means you only need
to override it if it is possible that your @is_readable
implementation may return %TRUE when the stream is not actually
readable.
The default implementation of @can_poll always returns %TRUE.
The default implementation of @read_nonblocking calls
g_pollable_input_stream_is_readable(), and then calls
g_input_stream_read() if it returns %TRUE. This means you only need
to override it if it is possible that your @is_readable
implementation may return %TRUE when the stream is not actually
readable.
https://docs.gtk.org/gio/struct.PollableInputStreamInterface.html
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCanPollch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCreateSourcech.bailu.gtk.gio.JnaPollableInputStreamInterface.OnIsReadablech.bailu.gtk.gio.JnaPollableInputStreamInterface.OnReadNonblockingstatic intstatic TypeSystem.TypeSizestatic TypeSystem.TypeSizevoidvoidsetFieldCreateSource(PollableInputStreamInterface.OnCreateSource create_source) voidvoidsetFieldReadNonblocking(PollableInputStreamInterface.OnReadNonblocking read_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_READABLE
- See Also:
-
CREATE_SOURCE
- See Also:
-
READ_NONBLOCKING
- See Also:
-
-
Constructor Details
-
PollableInputStreamInterface
-
PollableInputStreamInterface
public PollableInputStreamInterface()
-
-
Method Details
-
getClassHandler
-
setFieldCanPoll
-
getFieldCanPoll
public ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCanPoll getFieldCanPoll() -
setFieldIsReadable
-
getFieldIsReadable
public ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnIsReadable getFieldIsReadable() -
setFieldCreateSource
-
getFieldCreateSource
public ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCreateSource getFieldCreateSource() -
setFieldReadNonblocking
public void setFieldReadNonblocking(PollableInputStreamInterface.OnReadNonblocking read_nonblocking) -
getFieldReadNonblocking
public ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnReadNonblocking getFieldReadNonblocking() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-