gi-vips-8.0.2: 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.Structs.Progress

Description

A structure available to eval callbacks giving information on evaluation progress. See Image::eval.

Synopsis

Exported types

newtype Progress Source #

Memory-managed wrapper type.

Constructors

Progress (ManagedPtr Progress) 

Instances

Instances details
Eq Progress Source # 
Instance details

Defined in GI.Vips.Structs.Progress

BoxedPtr Progress Source # 
Instance details

Defined in GI.Vips.Structs.Progress

CallocPtr Progress Source # 
Instance details

Defined in GI.Vips.Structs.Progress

ManagedPtrNewtype Progress Source # 
Instance details

Defined in GI.Vips.Structs.Progress

tag ~ 'AttrSet => Constructible Progress tag Source # 
Instance details

Defined in GI.Vips.Structs.Progress

Methods

new :: MonadIO m => (ManagedPtr Progress -> Progress) -> [AttrOp Progress tag] -> m Progress #

newZeroProgress :: MonadIO m => m Progress Source #

Construct a Progress struct initialized to zero.

Methods

set

progressSet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Bool

progress: True to enable progress messages

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