gi-ggit-1.0.9: libgit2-glib bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Objects.DiffFindOptions

Description

Represents options for finding diff similarity.

Synopsis

Exported types

newtype DiffFindOptions Source #

Memory-managed wrapper type.

Constructors

DiffFindOptions (ManagedPtr DiffFindOptions) 

Instances

Instances details
Eq DiffFindOptions Source # 
Instance details

Defined in GI.Ggit.Objects.DiffFindOptions

GObject DiffFindOptions Source # 
Instance details

Defined in GI.Ggit.Objects.DiffFindOptions

ManagedPtrNewtype DiffFindOptions Source # 
Instance details

Defined in GI.Ggit.Objects.DiffFindOptions

TypedObject DiffFindOptions Source # 
Instance details

Defined in GI.Ggit.Objects.DiffFindOptions

Methods

glibType :: IO GType

IsGValue DiffFindOptions Source #

Convert DiffFindOptions to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Objects.DiffFindOptions

Methods

toGValue :: DiffFindOptions -> IO GValue

fromGValue :: GValue -> IO DiffFindOptions

HasParentTypes DiffFindOptions Source # 
Instance details

Defined in GI.Ggit.Objects.DiffFindOptions

type ParentTypes DiffFindOptions Source # 
Instance details

Defined in GI.Ggit.Objects.DiffFindOptions

type ParentTypes DiffFindOptions = '[Object]

class (GObject o, IsDescendantOf DiffFindOptions o) => IsDiffFindOptions o Source #

Type class for types which can be safely cast to DiffFindOptions, for instance with toDiffFindOptions.

Instances

Instances details
(GObject o, IsDescendantOf DiffFindOptions o) => IsDiffFindOptions o Source # 
Instance details

Defined in GI.Ggit.Objects.DiffFindOptions

toDiffFindOptions :: (MonadIO m, IsDiffFindOptions o) => o -> m DiffFindOptions Source #

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

Methods

Overloaded methods

getCopyThreshold

diffFindOptionsGetCopyThreshold Source #

Arguments

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

options: a DiffFindOptions.

-> m Word32

Returns: the copy threshold.

Get the find options copy threshold.

getFlags

diffFindOptionsGetFlags Source #

Arguments

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

options: a DiffFindOptions.

-> m [DiffFindFlags]

Returns: the find options flags.

Get the find options flags.

getMetric

diffFindOptionsGetMetric Source #

Arguments

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

options: a DiffFindOptions.

-> m (Maybe DiffSimilarityMetric)

Returns: a DiffSimilarityMetric or Nothing.

Get the find options metric.

getRenameFromRewriteThreshold

diffFindOptionsGetRenameFromRewriteThreshold Source #

Arguments

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

options: a DiffFindOptions.

-> m Word32

Returns: the rename from rewrite threshold.

Get the find options rename from rewrite threshold.

getRenameLimit

diffFindOptionsGetRenameLimit Source #

Arguments

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

options: a DiffFindOptions.

-> m Word64

Returns: the rename limit.

Get the find options rename limit.

getRenameThreshold

diffFindOptionsGetRenameThreshold Source #

Arguments

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

options: a DiffFindOptions.

-> m Word32

Returns: the rename threshold.

Get the find options rename threshold.

new

diffFindOptionsNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m (Maybe DiffFindOptions)

Returns: a newly allocated DiffFindOptions or Nothing.

Creates a new DiffFindOptions.

setCopyThreshold

diffFindOptionsSetCopyThreshold Source #

Arguments

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

options: a DiffFindOptions.

-> Word32

threshold: the threshold.

-> m () 

Set the find options copy threshold.

setFlags

diffFindOptionsSetFlags Source #

Arguments

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

options: a DiffFindOptions.

-> [DiffFindFlags]

flags: a DiffFindFlags.

-> m () 

Set the find options flags.

setMetric

diffFindOptionsSetMetric Source #

Arguments

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

options: a DiffFindOptions.

-> DiffSimilarityMetric

metric: a DiffSimilarityMetric.

-> m () 

Set the find options metric.

setRenameFromRewriteThreshold

diffFindOptionsSetRenameFromRewriteThreshold Source #

Arguments

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

options: a DiffFindOptions.

-> Word32

threshold: the threshold.

-> m () 

Set the find options rename from rewrite threshold.

setRenameLimit

diffFindOptionsSetRenameLimit Source #

Arguments

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

options: a DiffFindOptions.

-> Word64

limit: the limit.

-> m () 

Set the find options rename limit.

setRenameThreshold

diffFindOptionsSetRenameThreshold Source #

Arguments

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

options: a DiffFindOptions.

-> Word32

threshold: the threshold.

-> m () 

Set the find options rename threshold.

Properties

copyThreshold

No description available in the introspection data.

constructDiffFindOptionsCopyThreshold :: (IsDiffFindOptions o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “copy-threshold” property. This is rarely needed directly, but it is used by new.

getDiffFindOptionsCopyThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> m Word32 Source #

Get the value of the “copy-threshold” property. When overloading is enabled, this is equivalent to

get diffFindOptions #copyThreshold

setDiffFindOptionsCopyThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> Word32 -> m () Source #

Set the value of the “copy-threshold” property. When overloading is enabled, this is equivalent to

set diffFindOptions [ #copyThreshold := value ]

flags

The diff option flags.

constructDiffFindOptionsFlags :: (IsDiffFindOptions o, MonadIO m) => [DiffFindFlags] -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “flags” property. This is rarely needed directly, but it is used by new.

getDiffFindOptionsFlags :: (MonadIO m, IsDiffFindOptions o) => o -> m [DiffFindFlags] Source #

Get the value of the “flags” property. When overloading is enabled, this is equivalent to

get diffFindOptions #flags

setDiffFindOptionsFlags :: (MonadIO m, IsDiffFindOptions o) => o -> [DiffFindFlags] -> m () Source #

Set the value of the “flags” property. When overloading is enabled, this is equivalent to

set diffFindOptions [ #flags := value ]

metric

No description available in the introspection data.

constructDiffFindOptionsMetric :: (IsDiffFindOptions o, MonadIO m) => DiffSimilarityMetric -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “metric” property. This is rarely needed directly, but it is used by new.

getDiffFindOptionsMetric :: (MonadIO m, IsDiffFindOptions o) => o -> m (Maybe DiffSimilarityMetric) Source #

Get the value of the “metric” property. When overloading is enabled, this is equivalent to

get diffFindOptions #metric

setDiffFindOptionsMetric :: (MonadIO m, IsDiffFindOptions o) => o -> DiffSimilarityMetric -> m () Source #

Set the value of the “metric” property. When overloading is enabled, this is equivalent to

set diffFindOptions [ #metric := value ]

renameFromRewriteThreshold

No description available in the introspection data.

constructDiffFindOptionsRenameFromRewriteThreshold :: (IsDiffFindOptions o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “rename-from-rewrite-threshold” property. This is rarely needed directly, but it is used by new.

getDiffFindOptionsRenameFromRewriteThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> m Word32 Source #

Get the value of the “rename-from-rewrite-threshold” property. When overloading is enabled, this is equivalent to

get diffFindOptions #renameFromRewriteThreshold

setDiffFindOptionsRenameFromRewriteThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> Word32 -> m () Source #

Set the value of the “rename-from-rewrite-threshold” property. When overloading is enabled, this is equivalent to

set diffFindOptions [ #renameFromRewriteThreshold := value ]

renameLimit

No description available in the introspection data.

constructDiffFindOptionsRenameLimit :: (IsDiffFindOptions o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “rename-limit” property. This is rarely needed directly, but it is used by new.

getDiffFindOptionsRenameLimit :: (MonadIO m, IsDiffFindOptions o) => o -> m Word32 Source #

Get the value of the “rename-limit” property. When overloading is enabled, this is equivalent to

get diffFindOptions #renameLimit

setDiffFindOptionsRenameLimit :: (MonadIO m, IsDiffFindOptions o) => o -> Word32 -> m () Source #

Set the value of the “rename-limit” property. When overloading is enabled, this is equivalent to

set diffFindOptions [ #renameLimit := value ]

renameThreshold

No description available in the introspection data.

constructDiffFindOptionsRenameThreshold :: (IsDiffFindOptions o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “rename-threshold” property. This is rarely needed directly, but it is used by new.

getDiffFindOptionsRenameThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> m Word32 Source #

Get the value of the “rename-threshold” property. When overloading is enabled, this is equivalent to

get diffFindOptions #renameThreshold

setDiffFindOptionsRenameThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> Word32 -> m () Source #

Set the value of the “rename-threshold” property. When overloading is enabled, this is equivalent to

set diffFindOptions [ #renameThreshold := value ]