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 |
No description available in the introspection data.
Synopsis
- newtype Operation = Operation (ManagedPtr Operation)
- class (GObject o, IsDescendantOf Operation o) => IsOperation o
- toOperation :: (MonadIO m, IsOperation o) => o -> m Operation
- operationBlockSet :: (HasCallStack, MonadIO m) => Text -> Bool -> m ()
- operationGetFlags :: (HasCallStack, MonadIO m, IsOperation a) => a -> m [OperationFlags]
- operationInvalidate :: (HasCallStack, MonadIO m, IsOperation a) => a -> m ()
- operationNew :: (HasCallStack, MonadIO m) => Text -> m Operation
- type OperationInvalidateCallback = IO ()
- afterOperationInvalidate :: (IsOperation a, MonadIO m) => a -> ((?self :: a) => OperationInvalidateCallback) -> m SignalHandlerId
- onOperationInvalidate :: (IsOperation a, MonadIO m) => a -> ((?self :: a) => OperationInvalidateCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Operation Source # | |
GObject Operation Source # | |
Defined in GI.Vips.Objects.Operation | |
ManagedPtrNewtype Operation Source # | |
Defined in GI.Vips.Objects.Operation toManagedPtr :: Operation -> ManagedPtr Operation | |
TypedObject Operation Source # | |
Defined in GI.Vips.Objects.Operation | |
HasParentTypes Operation Source # | |
Defined in GI.Vips.Objects.Operation | |
IsGValue (Maybe Operation) Source # | Convert |
Defined in GI.Vips.Objects.Operation gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Operation -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Operation) | |
type ParentTypes Operation Source # | |
Defined in GI.Vips.Objects.Operation |
class (GObject o, IsDescendantOf Operation o) => IsOperation o Source #
Type class for types which can be safely cast to Operation
, for instance with toOperation
.
Instances
(GObject o, IsDescendantOf Operation o) => IsOperation o Source # | |
Defined in GI.Vips.Objects.Operation |
toOperation :: (MonadIO m, IsOperation o) => o -> m Operation Source #
Methods
Click to display all available methods, including inherited ones
Methods
argumentIsset, argumentNeedsstring, bindProperty, bindPropertyFull, build, forceFloating, freezeNotify, getv, invalidate, isFloating, localCb, notify, notifyByPspec, preclose, printDump, printName, printSummary, ref, refSink, rewind, runDispose, sanity, stealData, stealQdata, thawNotify, toString, unref, unrefOutputs, watchClosure.
Getters
getArgumentFlags, getArgumentPriority, getArgumentToString, getData, getDescription, getFlags, getQdata.
Setters
setArgumentFromString, setData, setDataFull, setFromString, setRequired, setStatic.
blockSet
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Bool |
|
-> m () |
Set the block state on all operations in the libvips class hierarchy at
name
and below.
For example:
vips_operation_block_set( "VipsForeignLoad", TRUE ); vips_operation_block_set( "VipsForeignLoadJpeg", FALSE );
Will block all load operations, except JPEG.
Use vips -l
at the command-line to see the class hierarchy.
This call does nothing if the named operation is not found.
See also: blockUntrustedSet
.
getFlags
:: (HasCallStack, MonadIO m, IsOperation a) | |
=> a |
|
-> m [OperationFlags] | Returns: 0 on success, or -1 on error. |
Returns the set of flags for this operation.
invalidate
operationInvalidate :: (HasCallStack, MonadIO m, IsOperation a) => a -> m () Source #
No description available in the introspection data.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m Operation | Returns: the new operation. |
Return a new Operation
with the specified nickname. Useful for
language bindings.
You'll need to set any arguments and build the operation before you can use
it. See vips_call()
for a higher-level way to make new operations.
Signals
invalidate
type OperationInvalidateCallback = IO () Source #
No description available in the introspection data.
afterOperationInvalidate :: (IsOperation a, MonadIO m) => a -> ((?self :: a) => OperationInvalidateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the invalidate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
operation #invalidate callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onOperationInvalidate :: (IsOperation a, MonadIO m) => a -> ((?self :: a) => OperationInvalidateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the invalidate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
operation #invalidate callback