| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Gio.Structs.IOExtensionPoint
Description
IOExtensionPoint is an opaque data structure and can only be accessed
using the following functions.
Synopsis
- newtype IOExtensionPoint = IOExtensionPoint (ManagedPtr IOExtensionPoint)
- iOExtensionPointGetExtensionByName :: (HasCallStack, MonadIO m) => IOExtensionPoint -> Text -> m IOExtension
- iOExtensionPointGetExtensions :: (HasCallStack, MonadIO m) => IOExtensionPoint -> m [IOExtension]
- iOExtensionPointGetRequiredType :: (HasCallStack, MonadIO m) => IOExtensionPoint -> m GType
- iOExtensionPointImplement :: (HasCallStack, MonadIO m) => Text -> GType -> Text -> Int32 -> m IOExtension
- iOExtensionPointLookup :: (HasCallStack, MonadIO m) => Text -> m IOExtensionPoint
- iOExtensionPointRegister :: (HasCallStack, MonadIO m) => Text -> m IOExtensionPoint
- iOExtensionPointSetRequiredType :: (HasCallStack, MonadIO m) => IOExtensionPoint -> GType -> m ()
Exported types
newtype IOExtensionPoint Source #
Memory-managed wrapper type.
Constructors
| IOExtensionPoint (ManagedPtr IOExtensionPoint) |
Instances
| Eq IOExtensionPoint Source # | |
Defined in GI.Gio.Structs.IOExtensionPoint Methods (==) :: IOExtensionPoint -> IOExtensionPoint -> Bool # (/=) :: IOExtensionPoint -> IOExtensionPoint -> Bool # | |
| BoxedPtr IOExtensionPoint Source # | |
Defined in GI.Gio.Structs.IOExtensionPoint Methods boxedPtrCopy :: IOExtensionPoint -> IO IOExtensionPoint boxedPtrFree :: IOExtensionPoint -> IO () | |
| ManagedPtrNewtype IOExtensionPoint Source # | |
Defined in GI.Gio.Structs.IOExtensionPoint Methods toManagedPtr :: IOExtensionPoint -> ManagedPtr IOExtensionPoint | |
Methods
Click to display all available methods, including inherited ones
getExtensionByName
iOExtensionPointGetExtensionByName Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IOExtensionPoint |
|
| -> Text |
|
| -> m IOExtension | Returns: the |
Finds a IOExtension for an extension point by name.
getExtensions
iOExtensionPointGetExtensions Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IOExtensionPoint |
|
| -> m [IOExtension] | Returns: a |
Gets a list of all extensions that implement this extension point. The list is sorted by priority, beginning with the highest priority.
getRequiredType
iOExtensionPointGetRequiredType Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IOExtensionPoint |
|
| -> m GType | Returns: the |
Gets the required type for extensionPoint.
implement
iOExtensionPointImplement Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> GType |
|
| -> Text |
|
| -> Int32 |
|
| -> m IOExtension | Returns: a |
Registers type as extension for the extension point with name
extensionPointName.
If type has already been registered as an extension for this
extension point, the existing IOExtension object is returned.
lookup
iOExtensionPointLookup Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m IOExtensionPoint | Returns: the |
Looks up an existing extension point.
register
iOExtensionPointRegister Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m IOExtensionPoint | Returns: the new |
Registers an extension point.
setRequiredType
iOExtensionPointSetRequiredType Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IOExtensionPoint |
|
| -> GType |
|
| -> m () |
Sets the required type for extensionPoint to type.
All implementations must henceforth have this type.