Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Converter output stream implements OutputStream
and allows
conversion of data of various types during reading.
As of GLib 2.34, ConverterOutputStream
implements
PollableOutputStream
.
Synopsis
- newtype ConverterOutputStream = ConverterOutputStream (ManagedPtr ConverterOutputStream)
- class (GObject o, IsDescendantOf ConverterOutputStream o) => IsConverterOutputStream o
- toConverterOutputStream :: (MonadIO m, IsConverterOutputStream o) => o -> m ConverterOutputStream
- converterOutputStreamGetConverter :: (HasCallStack, MonadIO m, IsConverterOutputStream a) => a -> m Converter
- converterOutputStreamNew :: (HasCallStack, MonadIO m, IsOutputStream a, IsConverter b) => a -> b -> m ConverterOutputStream
- constructConverterOutputStreamConverter :: (IsConverterOutputStream o, MonadIO m, IsConverter a) => a -> m (GValueConstruct o)
- getConverterOutputStreamConverter :: (MonadIO m, IsConverterOutputStream o) => o -> m Converter
Exported types
newtype ConverterOutputStream Source #
Memory-managed wrapper type.
Instances
Eq ConverterOutputStream Source # | |
Defined in GI.Gio.Objects.ConverterOutputStream (==) :: ConverterOutputStream -> ConverterOutputStream -> Bool # (/=) :: ConverterOutputStream -> ConverterOutputStream -> Bool # | |
IsGValue ConverterOutputStream Source # | Convert |
Defined in GI.Gio.Objects.ConverterOutputStream toGValue :: ConverterOutputStream -> IO GValue # fromGValue :: GValue -> IO ConverterOutputStream # | |
ManagedPtrNewtype ConverterOutputStream Source # | |
TypedObject ConverterOutputStream Source # | |
Defined in GI.Gio.Objects.ConverterOutputStream | |
GObject ConverterOutputStream Source # | |
Defined in GI.Gio.Objects.ConverterOutputStream | |
HasParentTypes ConverterOutputStream Source # | |
Defined in GI.Gio.Objects.ConverterOutputStream | |
type ParentTypes ConverterOutputStream Source # | |
Defined in GI.Gio.Objects.ConverterOutputStream type ParentTypes ConverterOutputStream = '[FilterOutputStream, OutputStream, Object, PollableOutputStream] |
class (GObject o, IsDescendantOf ConverterOutputStream o) => IsConverterOutputStream o Source #
Type class for types which can be safely cast to ConverterOutputStream
, for instance with toConverterOutputStream
.
Instances
(GObject o, IsDescendantOf ConverterOutputStream o) => IsConverterOutputStream o Source # | |
Defined in GI.Gio.Objects.ConverterOutputStream |
toConverterOutputStream :: (MonadIO m, IsConverterOutputStream o) => o -> m ConverterOutputStream Source #
Cast to ConverterOutputStream
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
getConverter
converterOutputStreamGetConverter Source #
:: (HasCallStack, MonadIO m, IsConverterOutputStream a) | |
=> a |
|
-> m Converter | Returns: the converter of the converter output stream |
Gets the Converter
that is used by converterStream
.
Since: 2.24
new
converterOutputStreamNew Source #
:: (HasCallStack, MonadIO m, IsOutputStream a, IsConverter b) | |
=> a |
|
-> b |
|
-> m ConverterOutputStream | Returns: a new |
Creates a new converter output stream for the baseStream
.
Properties
converter
No description available in the introspection data.
constructConverterOutputStreamConverter :: (IsConverterOutputStream o, MonadIO m, IsConverter a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “converter
” property. This is rarely needed directly, but it is used by new
.
getConverterOutputStreamConverter :: (MonadIO m, IsConverterOutputStream o) => o -> m Converter Source #
Get the value of the “converter
” property.
When overloading is enabled, this is equivalent to
get
converterOutputStream #converter