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 |
A structure available to eval callbacks giving information on evaluation progress. See Image::eval.
Synopsis
- newtype Progress = Progress (ManagedPtr Progress)
- newZeroProgress :: MonadIO m => m Progress
- progressSet :: (HasCallStack, MonadIO m) => Bool -> m ()
- getProgressEta :: MonadIO m => Progress -> m Int32
- setProgressEta :: MonadIO m => Progress -> Int32 -> m ()
- getProgressNpels :: MonadIO m => Progress -> m Int64
- setProgressNpels :: MonadIO m => Progress -> Int64 -> m ()
- getProgressPercent :: MonadIO m => Progress -> m Int32
- setProgressPercent :: MonadIO m => Progress -> Int32 -> m ()
- getProgressRun :: MonadIO m => Progress -> m Int32
- setProgressRun :: MonadIO m => Progress -> Int32 -> m ()
- clearProgressStart :: MonadIO m => Progress -> m ()
- getProgressStart :: MonadIO m => Progress -> m (Maybe Timer)
- setProgressStart :: MonadIO m => Progress -> Ptr Timer -> m ()
- getProgressTpels :: MonadIO m => Progress -> m Int64
- setProgressTpels :: MonadIO m => Progress -> Int64 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Progress Source # | |
BoxedPtr Progress Source # | |
Defined in GI.Vips.Structs.Progress boxedPtrCopy :: Progress -> IO Progress boxedPtrFree :: Progress -> IO () | |
CallocPtr Progress Source # | |
Defined in GI.Vips.Structs.Progress boxedPtrCalloc :: IO (Ptr Progress) | |
ManagedPtrNewtype Progress Source # | |
Defined in GI.Vips.Structs.Progress toManagedPtr :: Progress -> ManagedPtr Progress | |
tag ~ 'AttrSet => Constructible Progress tag Source # | |
Methods
set
:: (HasCallStack, MonadIO m) | |
=> Bool |
|
-> m () |
If set, vips will print messages about the progress of computation to stdout. This can also be enabled with the --vips-progress option, or by setting the environment variable VIPS_PROGRESS.
Properties
eta
Estimated seconds of computation left
getProgressEta :: MonadIO m => Progress -> m Int32 Source #
Get the value of the “eta
” field.
When overloading is enabled, this is equivalent to
get
progress #eta
setProgressEta :: MonadIO m => Progress -> Int32 -> m () Source #
Set the value of the “eta
” field.
When overloading is enabled, this is equivalent to
set
progress [ #eta:=
value ]
npels
Number of pels calculated so far
getProgressNpels :: MonadIO m => Progress -> m Int64 Source #
Get the value of the “npels
” field.
When overloading is enabled, this is equivalent to
get
progress #npels
setProgressNpels :: MonadIO m => Progress -> Int64 -> m () Source #
Set the value of the “npels
” field.
When overloading is enabled, this is equivalent to
set
progress [ #npels:=
value ]
percent
Percent complete
getProgressPercent :: MonadIO m => Progress -> m Int32 Source #
Get the value of the “percent
” field.
When overloading is enabled, this is equivalent to
get
progress #percent
setProgressPercent :: MonadIO m => Progress -> Int32 -> m () Source #
Set the value of the “percent
” field.
When overloading is enabled, this is equivalent to
set
progress [ #percent:=
value ]
run
Time we have been running
getProgressRun :: MonadIO m => Progress -> m Int32 Source #
Get the value of the “run
” field.
When overloading is enabled, this is equivalent to
get
progress #run
setProgressRun :: MonadIO m => Progress -> Int32 -> m () Source #
Set the value of the “run
” field.
When overloading is enabled, this is equivalent to
set
progress [ #run:=
value ]
start
Start time
clearProgressStart :: MonadIO m => Progress -> m () Source #
Set the value of the “start
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#start
getProgressStart :: MonadIO m => Progress -> m (Maybe Timer) Source #
Get the value of the “start
” field.
When overloading is enabled, this is equivalent to
get
progress #start
setProgressStart :: MonadIO m => Progress -> Ptr Timer -> m () Source #
Set the value of the “start
” field.
When overloading is enabled, this is equivalent to
set
progress [ #start:=
value ]
tpels
Number of pels we expect to calculate
getProgressTpels :: MonadIO m => Progress -> m Int64 Source #
Get the value of the “tpels
” field.
When overloading is enabled, this is equivalent to
get
progress #tpels
setProgressTpels :: MonadIO m => Progress -> Int64 -> m () Source #
Set the value of the “tpels
” field.
When overloading is enabled, this is equivalent to
set
progress [ #tpels:=
value ]