gi-vips-8.0.4: libvips GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Vips.Objects.Operation

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Operation Source #

Memory-managed wrapper type.

Constructors

Operation (ManagedPtr Operation) 

Instances

Instances details
Eq Operation Source # 
Instance details

Defined in GI.Vips.Objects.Operation

GObject Operation Source # 
Instance details

Defined in GI.Vips.Objects.Operation

ManagedPtrNewtype Operation Source # 
Instance details

Defined in GI.Vips.Objects.Operation

Methods

toManagedPtr :: Operation -> ManagedPtr Operation

TypedObject Operation Source # 
Instance details

Defined in GI.Vips.Objects.Operation

Methods

glibType :: IO GType

HasParentTypes Operation Source # 
Instance details

Defined in GI.Vips.Objects.Operation

IsGValue (Maybe Operation) Source #

Convert Operation to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Vips.Objects.Operation

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Operation -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Operation)

type ParentTypes Operation Source # 
Instance details

Defined in GI.Vips.Objects.Operation

type ParentTypes Operation = '[Object, Object]

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

Instances details
(GObject o, IsDescendantOf Operation o) => IsOperation o Source # 
Instance details

Defined in GI.Vips.Objects.Operation

toOperation :: (MonadIO m, IsOperation o) => o -> m Operation Source #

Cast to Operation, for types for which this is known to be safe. For general casts, use castTo.

Methods

blockSet

operationBlockSet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

name: set block state at this point and below

-> Bool

state: the block state to set

-> 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

operationGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsOperation a) 
=> a

operation: operation to fetch flags from

-> 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

operationNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

name: nickname of operation to create

-> 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