{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gio.Objects.ConverterInputStream
(
ConverterInputStream(..) ,
IsConverterInputStream ,
toConverterInputStream ,
#if defined(ENABLE_OVERLOADING)
ResolveConverterInputStreamMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
ConverterInputStreamGetConverterMethodInfo,
#endif
converterInputStreamGetConverter ,
converterInputStreamNew ,
#if defined(ENABLE_OVERLOADING)
ConverterInputStreamConverterPropertyInfo,
#endif
constructConverterInputStreamConverter ,
#if defined(ENABLE_OVERLOADING)
converterInputStreamConverter ,
#endif
getConverterInputStreamConverter ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gio.Interfaces.Converter as Gio.Converter
import {-# SOURCE #-} qualified GI.Gio.Interfaces.PollableInputStream as Gio.PollableInputStream
import {-# SOURCE #-} qualified GI.Gio.Objects.FilterInputStream as Gio.FilterInputStream
import {-# SOURCE #-} qualified GI.Gio.Objects.InputStream as Gio.InputStream
newtype ConverterInputStream = ConverterInputStream (SP.ManagedPtr ConverterInputStream)
deriving (ConverterInputStream -> ConverterInputStream -> Bool
(ConverterInputStream -> ConverterInputStream -> Bool)
-> (ConverterInputStream -> ConverterInputStream -> Bool)
-> Eq ConverterInputStream
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConverterInputStream -> ConverterInputStream -> Bool
$c/= :: ConverterInputStream -> ConverterInputStream -> Bool
== :: ConverterInputStream -> ConverterInputStream -> Bool
$c== :: ConverterInputStream -> ConverterInputStream -> Bool
Eq)
instance SP.ManagedPtrNewtype ConverterInputStream where
toManagedPtr :: ConverterInputStream -> ManagedPtr ConverterInputStream
toManagedPtr (ConverterInputStream ManagedPtr ConverterInputStream
p) = ManagedPtr ConverterInputStream
p
foreign import ccall "g_converter_input_stream_get_type"
c_g_converter_input_stream_get_type :: IO B.Types.GType
instance B.Types.TypedObject ConverterInputStream where
glibType :: IO GType
glibType = IO GType
c_g_converter_input_stream_get_type
instance B.Types.GObject ConverterInputStream
class (SP.GObject o, O.IsDescendantOf ConverterInputStream o) => IsConverterInputStream o
instance (SP.GObject o, O.IsDescendantOf ConverterInputStream o) => IsConverterInputStream o
instance O.HasParentTypes ConverterInputStream
type instance O.ParentTypes ConverterInputStream = '[Gio.FilterInputStream.FilterInputStream, Gio.InputStream.InputStream, GObject.Object.Object, Gio.PollableInputStream.PollableInputStream]
toConverterInputStream :: (MIO.MonadIO m, IsConverterInputStream o) => o -> m ConverterInputStream
toConverterInputStream :: forall (m :: * -> *) o.
(MonadIO m, IsConverterInputStream o) =>
o -> m ConverterInputStream
toConverterInputStream = IO ConverterInputStream -> m ConverterInputStream
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO ConverterInputStream -> m ConverterInputStream)
-> (o -> IO ConverterInputStream) -> o -> m ConverterInputStream
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr ConverterInputStream -> ConverterInputStream)
-> o -> IO ConverterInputStream
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr ConverterInputStream -> ConverterInputStream
ConverterInputStream
instance B.GValue.IsGValue (Maybe ConverterInputStream) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_g_converter_input_stream_get_type
gvalueSet_ :: Ptr GValue -> Maybe ConverterInputStream -> IO ()
gvalueSet_ Ptr GValue
gv Maybe ConverterInputStream
P.Nothing = Ptr GValue -> Ptr ConverterInputStream -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr ConverterInputStream
forall a. Ptr a
FP.nullPtr :: FP.Ptr ConverterInputStream)
gvalueSet_ Ptr GValue
gv (P.Just ConverterInputStream
obj) = ConverterInputStream
-> (Ptr ConverterInputStream -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr ConverterInputStream
obj (Ptr GValue -> Ptr ConverterInputStream -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe ConverterInputStream)
gvalueGet_ Ptr GValue
gv = do
Ptr ConverterInputStream
ptr <- Ptr GValue -> IO (Ptr ConverterInputStream)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr ConverterInputStream)
if Ptr ConverterInputStream
ptr Ptr ConverterInputStream -> Ptr ConverterInputStream -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr ConverterInputStream
forall a. Ptr a
FP.nullPtr
then ConverterInputStream -> Maybe ConverterInputStream
forall a. a -> Maybe a
P.Just (ConverterInputStream -> Maybe ConverterInputStream)
-> IO ConverterInputStream -> IO (Maybe ConverterInputStream)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr ConverterInputStream -> ConverterInputStream)
-> Ptr ConverterInputStream -> IO ConverterInputStream
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr ConverterInputStream -> ConverterInputStream
ConverterInputStream Ptr ConverterInputStream
ptr
else Maybe ConverterInputStream -> IO (Maybe ConverterInputStream)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe ConverterInputStream
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveConverterInputStreamMethod (t :: Symbol) (o :: *) :: * where
ResolveConverterInputStreamMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveConverterInputStreamMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveConverterInputStreamMethod "canPoll" o = Gio.PollableInputStream.PollableInputStreamCanPollMethodInfo
ResolveConverterInputStreamMethod "clearPending" o = Gio.InputStream.InputStreamClearPendingMethodInfo
ResolveConverterInputStreamMethod "close" o = Gio.InputStream.InputStreamCloseMethodInfo
ResolveConverterInputStreamMethod "closeAsync" o = Gio.InputStream.InputStreamCloseAsyncMethodInfo
ResolveConverterInputStreamMethod "closeFinish" o = Gio.InputStream.InputStreamCloseFinishMethodInfo
ResolveConverterInputStreamMethod "createSource" o = Gio.PollableInputStream.PollableInputStreamCreateSourceMethodInfo
ResolveConverterInputStreamMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveConverterInputStreamMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveConverterInputStreamMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveConverterInputStreamMethod "hasPending" o = Gio.InputStream.InputStreamHasPendingMethodInfo
ResolveConverterInputStreamMethod "isClosed" o = Gio.InputStream.InputStreamIsClosedMethodInfo
ResolveConverterInputStreamMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveConverterInputStreamMethod "isReadable" o = Gio.PollableInputStream.PollableInputStreamIsReadableMethodInfo
ResolveConverterInputStreamMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveConverterInputStreamMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveConverterInputStreamMethod "read" o = Gio.InputStream.InputStreamReadMethodInfo
ResolveConverterInputStreamMethod "readAll" o = Gio.InputStream.InputStreamReadAllMethodInfo
ResolveConverterInputStreamMethod "readAllAsync" o = Gio.InputStream.InputStreamReadAllAsyncMethodInfo
ResolveConverterInputStreamMethod "readAllFinish" o = Gio.InputStream.InputStreamReadAllFinishMethodInfo
ResolveConverterInputStreamMethod "readAsync" o = Gio.InputStream.InputStreamReadAsyncMethodInfo
ResolveConverterInputStreamMethod "readBytes" o = Gio.InputStream.InputStreamReadBytesMethodInfo
ResolveConverterInputStreamMethod "readBytesAsync" o = Gio.InputStream.InputStreamReadBytesAsyncMethodInfo
ResolveConverterInputStreamMethod "readBytesFinish" o = Gio.InputStream.InputStreamReadBytesFinishMethodInfo
ResolveConverterInputStreamMethod "readFinish" o = Gio.InputStream.InputStreamReadFinishMethodInfo
ResolveConverterInputStreamMethod "readNonblocking" o = Gio.PollableInputStream.PollableInputStreamReadNonblockingMethodInfo
ResolveConverterInputStreamMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveConverterInputStreamMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveConverterInputStreamMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveConverterInputStreamMethod "skip" o = Gio.InputStream.InputStreamSkipMethodInfo
ResolveConverterInputStreamMethod "skipAsync" o = Gio.InputStream.InputStreamSkipAsyncMethodInfo
ResolveConverterInputStreamMethod "skipFinish" o = Gio.InputStream.InputStreamSkipFinishMethodInfo
ResolveConverterInputStreamMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveConverterInputStreamMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveConverterInputStreamMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveConverterInputStreamMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveConverterInputStreamMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveConverterInputStreamMethod "getBaseStream" o = Gio.FilterInputStream.FilterInputStreamGetBaseStreamMethodInfo
ResolveConverterInputStreamMethod "getCloseBaseStream" o = Gio.FilterInputStream.FilterInputStreamGetCloseBaseStreamMethodInfo
ResolveConverterInputStreamMethod "getConverter" o = ConverterInputStreamGetConverterMethodInfo
ResolveConverterInputStreamMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveConverterInputStreamMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveConverterInputStreamMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveConverterInputStreamMethod "setCloseBaseStream" o = Gio.FilterInputStream.FilterInputStreamSetCloseBaseStreamMethodInfo
ResolveConverterInputStreamMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveConverterInputStreamMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveConverterInputStreamMethod "setPending" o = Gio.InputStream.InputStreamSetPendingMethodInfo
ResolveConverterInputStreamMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveConverterInputStreamMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveConverterInputStreamMethod t ConverterInputStream, O.OverloadedMethod info ConverterInputStream p) => OL.IsLabel t (ConverterInputStream -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveConverterInputStreamMethod t ConverterInputStream, O.OverloadedMethod info ConverterInputStream p, R.HasField t ConverterInputStream p) => R.HasField t ConverterInputStream p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveConverterInputStreamMethod t ConverterInputStream, O.OverloadedMethodInfo info ConverterInputStream) => OL.IsLabel t (O.MethodProxy info ConverterInputStream) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getConverterInputStreamConverter :: (MonadIO m, IsConverterInputStream o) => o -> m Gio.Converter.Converter
getConverterInputStreamConverter :: forall (m :: * -> *) o.
(MonadIO m, IsConverterInputStream o) =>
o -> m Converter
getConverterInputStreamConverter o
obj = IO Converter -> m Converter
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Converter -> m Converter) -> IO Converter -> m Converter
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Converter) -> IO Converter
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getConverterInputStreamConverter" (IO (Maybe Converter) -> IO Converter)
-> IO (Maybe Converter) -> IO Converter
forall a b. (a -> b) -> a -> b
$ o
-> String
-> (ManagedPtr Converter -> Converter)
-> IO (Maybe Converter)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"converter" ManagedPtr Converter -> Converter
Gio.Converter.Converter
constructConverterInputStreamConverter :: (IsConverterInputStream o, MIO.MonadIO m, Gio.Converter.IsConverter a) => a -> m (GValueConstruct o)
constructConverterInputStreamConverter :: forall o (m :: * -> *) a.
(IsConverterInputStream o, MonadIO m, IsConverter a) =>
a -> m (GValueConstruct o)
constructConverterInputStreamConverter a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"converter" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
#if defined(ENABLE_OVERLOADING)
data ConverterInputStreamConverterPropertyInfo
instance AttrInfo ConverterInputStreamConverterPropertyInfo where
type AttrAllowedOps ConverterInputStreamConverterPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ConverterInputStreamConverterPropertyInfo = IsConverterInputStream
type AttrSetTypeConstraint ConverterInputStreamConverterPropertyInfo = Gio.Converter.IsConverter
type AttrTransferTypeConstraint ConverterInputStreamConverterPropertyInfo = Gio.Converter.IsConverter
type AttrTransferType ConverterInputStreamConverterPropertyInfo = Gio.Converter.Converter
type AttrGetType ConverterInputStreamConverterPropertyInfo = Gio.Converter.Converter
type AttrLabel ConverterInputStreamConverterPropertyInfo = "converter"
type AttrOrigin ConverterInputStreamConverterPropertyInfo = ConverterInputStream
attrGet = getConverterInputStreamConverter
attrSet = undefined
attrTransfer _ v = do
unsafeCastTo Gio.Converter.Converter v
attrConstruct = constructConverterInputStreamConverter
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gio.Objects.ConverterInputStream.converter"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gio-2.0.29/docs/GI-Gio-Objects-ConverterInputStream.html#g:attr:converter"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList ConverterInputStream
type instance O.AttributeList ConverterInputStream = ConverterInputStreamAttributeList
type ConverterInputStreamAttributeList = ('[ '("baseStream", Gio.FilterInputStream.FilterInputStreamBaseStreamPropertyInfo), '("closeBaseStream", Gio.FilterInputStream.FilterInputStreamCloseBaseStreamPropertyInfo), '("converter", ConverterInputStreamConverterPropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
converterInputStreamConverter :: AttrLabelProxy "converter"
converterInputStreamConverter = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList ConverterInputStream = ConverterInputStreamSignalList
type ConverterInputStreamSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "g_converter_input_stream_new" g_converter_input_stream_new ::
Ptr Gio.InputStream.InputStream ->
Ptr Gio.Converter.Converter ->
IO (Ptr ConverterInputStream)
converterInputStreamNew ::
(B.CallStack.HasCallStack, MonadIO m, Gio.InputStream.IsInputStream a, Gio.Converter.IsConverter b) =>
a
-> b
-> m ConverterInputStream
converterInputStreamNew :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsInputStream a, IsConverter b) =>
a -> b -> m ConverterInputStream
converterInputStreamNew a
baseStream b
converter = IO ConverterInputStream -> m ConverterInputStream
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ConverterInputStream -> m ConverterInputStream)
-> IO ConverterInputStream -> m ConverterInputStream
forall a b. (a -> b) -> a -> b
$ do
Ptr InputStream
baseStream' <- a -> IO (Ptr InputStream)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
baseStream
Ptr Converter
converter' <- b -> IO (Ptr Converter)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
converter
Ptr ConverterInputStream
result <- Ptr InputStream -> Ptr Converter -> IO (Ptr ConverterInputStream)
g_converter_input_stream_new Ptr InputStream
baseStream' Ptr Converter
converter'
Text -> Ptr ConverterInputStream -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"converterInputStreamNew" Ptr ConverterInputStream
result
ConverterInputStream
result' <- ((ManagedPtr ConverterInputStream -> ConverterInputStream)
-> Ptr ConverterInputStream -> IO ConverterInputStream
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr ConverterInputStream -> ConverterInputStream
ConverterInputStream) Ptr ConverterInputStream
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
baseStream
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
converter
ConverterInputStream -> IO ConverterInputStream
forall (m :: * -> *) a. Monad m => a -> m a
return ConverterInputStream
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "g_converter_input_stream_get_converter" g_converter_input_stream_get_converter ::
Ptr ConverterInputStream ->
IO (Ptr Gio.Converter.Converter)
converterInputStreamGetConverter ::
(B.CallStack.HasCallStack, MonadIO m, IsConverterInputStream a) =>
a
-> m Gio.Converter.Converter
converterInputStreamGetConverter :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsConverterInputStream a) =>
a -> m Converter
converterInputStreamGetConverter a
converterStream = IO Converter -> m Converter
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Converter -> m Converter) -> IO Converter -> m Converter
forall a b. (a -> b) -> a -> b
$ do
Ptr ConverterInputStream
converterStream' <- a -> IO (Ptr ConverterInputStream)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
converterStream
Ptr Converter
result <- Ptr ConverterInputStream -> IO (Ptr Converter)
g_converter_input_stream_get_converter Ptr ConverterInputStream
converterStream'
Text -> Ptr Converter -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"converterInputStreamGetConverter" Ptr Converter
result
Converter
result' <- ((ManagedPtr Converter -> Converter)
-> Ptr Converter -> IO Converter
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Converter -> Converter
Gio.Converter.Converter) Ptr Converter
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
converterStream
Converter -> IO Converter
forall (m :: * -> *) a. Monad m => a -> m a
return Converter
result'
#if defined(ENABLE_OVERLOADING)
data ConverterInputStreamGetConverterMethodInfo
instance (signature ~ (m Gio.Converter.Converter), MonadIO m, IsConverterInputStream a) => O.OverloadedMethod ConverterInputStreamGetConverterMethodInfo a signature where
overloadedMethod = converterInputStreamGetConverter
instance O.OverloadedMethodInfo ConverterInputStreamGetConverterMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gio.Objects.ConverterInputStream.converterInputStreamGetConverter",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gio-2.0.29/docs/GI-Gio-Objects-ConverterInputStream.html#v:converterInputStreamGetConverter"
})
#endif