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
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCanPoll
ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnCreateSource
ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnIsReadable
ch.bailu.gtk.gio.JnaPollableInputStreamInterface.OnReadNonblocking
static int
static TypeSystem.TypeSize
static TypeSystem.TypeSize
void
void
setFieldCreateSource
(PollableInputStreamInterface.OnCreateSource create_source) void
void
setFieldReadNonblocking
(PollableInputStreamInterface.OnReadNonblocking read_nonblocking) Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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()
-