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 |
IOExtension
is an opaque data structure and can only be accessed
using the following functions.
Synopsis
- newtype IOExtension = IOExtension (ManagedPtr IOExtension)
- noIOExtension :: Maybe IOExtension
- iOExtensionGetName :: (HasCallStack, MonadIO m) => IOExtension -> m Text
- iOExtensionGetPriority :: (HasCallStack, MonadIO m) => IOExtension -> m Int32
- iOExtensionGetType :: (HasCallStack, MonadIO m) => IOExtension -> m GType
Exported types
newtype IOExtension Source #
Memory-managed wrapper type.
Instances
WrappedPtr IOExtension Source # | |
Defined in GI.Gio.Structs.IOExtension wrappedPtrCalloc :: IO (Ptr IOExtension) # wrappedPtrCopy :: IOExtension -> IO IOExtension # wrappedPtrFree :: Maybe (FunPtr (Ptr IOExtension -> IO ())) # |
noIOExtension :: Maybe IOExtension Source #
A convenience alias for Nothing
:: Maybe
IOExtension
.
Methods
getName
:: (HasCallStack, MonadIO m) | |
=> IOExtension |
|
-> m Text | Returns: the name of |
Gets the name under which extension
was registered.
Note that the same type may be registered as extension for multiple extension points, under different names.
getPriority
iOExtensionGetPriority Source #
:: (HasCallStack, MonadIO m) | |
=> IOExtension |
|
-> m Int32 | Returns: the priority of |
Gets the priority with which extension
was registered.
getType
:: (HasCallStack, MonadIO m) | |
=> IOExtension |
|
-> m GType | Returns: the type of |
Gets the type associated with extension
.