| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gio.Objects.SimpleIOStream
Description
GSimpleIOStream creates a IOStream from an arbitrary InputStream and
OutputStream. This allows any pair of input and output streams to be used
with IOStream methods.
This is useful when you obtained a InputStream and a OutputStream
by other means, for instance creating them with platform specific methods as
unixInputStreamNew or g_win32_input_stream_new(), and you want
to take advantage of the methods provided by IOStream.
- newtype SimpleIOStream = SimpleIOStream (ManagedPtr SimpleIOStream)
- class GObject o => IsSimpleIOStream o
- toSimpleIOStream :: IsSimpleIOStream o => o -> IO SimpleIOStream
- noSimpleIOStream :: Maybe SimpleIOStream
- simpleIOStreamNew :: (HasCallStack, MonadIO m, IsInputStream a, IsOutputStream b) => a -> b -> m SimpleIOStream
- data SimpleIOStreamInputStreamPropertyInfo
- constructSimpleIOStreamInputStream :: (IsSimpleIOStream o, IsInputStream a) => a -> IO (GValueConstruct o)
- getSimpleIOStreamInputStream :: (MonadIO m, IsSimpleIOStream o) => o -> m (Maybe InputStream)
- simpleIOStreamInputStream :: AttrLabelProxy "inputStream"
- data SimpleIOStreamOutputStreamPropertyInfo
- constructSimpleIOStreamOutputStream :: (IsSimpleIOStream o, IsOutputStream a) => a -> IO (GValueConstruct o)
- getSimpleIOStreamOutputStream :: (MonadIO m, IsSimpleIOStream o) => o -> m (Maybe OutputStream)
- simpleIOStreamOutputStream :: AttrLabelProxy "outputStream"
Exported types
newtype SimpleIOStream Source #
Constructors
| SimpleIOStream (ManagedPtr SimpleIOStream) |
Instances
| GObject SimpleIOStream Source # | |
| IsObject SimpleIOStream Source # | |
| IsIOStream SimpleIOStream Source # | |
| IsSimpleIOStream SimpleIOStream Source # | |
| ((~) * info (ResolveSimpleIOStreamMethod t SimpleIOStream), MethodInfo * info SimpleIOStream p) => IsLabel t (SimpleIOStream -> p) Source # | |
| ((~) * info (ResolveSimpleIOStreamMethod t SimpleIOStream), MethodInfo * info SimpleIOStream p) => IsLabelProxy t (SimpleIOStream -> p) Source # | |
| HasAttributeList * SimpleIOStream Source # | |
| type AttributeList SimpleIOStream Source # | |
| type SignalList SimpleIOStream Source # | |
class GObject o => IsSimpleIOStream o Source #
Instances
toSimpleIOStream :: IsSimpleIOStream o => o -> IO SimpleIOStream Source #
Methods
new
Arguments
| :: (HasCallStack, MonadIO m, IsInputStream a, IsOutputStream b) | |
| => a |
|
| -> b |
|
| -> m SimpleIOStream | Returns: a new |
Creates a new SimpleIOStream wrapping inputStream and outputStream.
See also IOStream.
Since: 2.44
Properties
inputStream
data SimpleIOStreamInputStreamPropertyInfo Source #
Instances
constructSimpleIOStreamInputStream :: (IsSimpleIOStream o, IsInputStream a) => a -> IO (GValueConstruct o) Source #
getSimpleIOStreamInputStream :: (MonadIO m, IsSimpleIOStream o) => o -> m (Maybe InputStream) Source #
simpleIOStreamInputStream :: AttrLabelProxy "inputStream" Source #
outputStream
data SimpleIOStreamOutputStreamPropertyInfo Source #
Instances
constructSimpleIOStreamOutputStream :: (IsSimpleIOStream o, IsOutputStream a) => a -> IO (GValueConstruct o) Source #
getSimpleIOStreamOutputStream :: (MonadIO m, IsSimpleIOStream o) => o -> m (Maybe OutputStream) Source #
simpleIOStreamOutputStream :: AttrLabelProxy "outputStream" Source #