Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Represents options for finding diff similarity.
Synopsis
- newtype DiffFindOptions = DiffFindOptions (ManagedPtr DiffFindOptions)
- class (GObject o, IsDescendantOf DiffFindOptions o) => IsDiffFindOptions o
- toDiffFindOptions :: (MonadIO m, IsDiffFindOptions o) => o -> m DiffFindOptions
- noDiffFindOptions :: Maybe DiffFindOptions
- diffFindOptionsGetCopyThreshold :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> m Word32
- diffFindOptionsGetFlags :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> m [DiffFindFlags]
- diffFindOptionsGetMetric :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> m (Maybe DiffSimilarityMetric)
- diffFindOptionsGetRenameFromRewriteThreshold :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> m Word32
- diffFindOptionsGetRenameLimit :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> m Word64
- diffFindOptionsGetRenameThreshold :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> m Word32
- diffFindOptionsNew :: (HasCallStack, MonadIO m) => m (Maybe DiffFindOptions)
- diffFindOptionsSetCopyThreshold :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> Word32 -> m ()
- diffFindOptionsSetFlags :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> [DiffFindFlags] -> m ()
- diffFindOptionsSetMetric :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> DiffSimilarityMetric -> m ()
- diffFindOptionsSetRenameFromRewriteThreshold :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> Word32 -> m ()
- diffFindOptionsSetRenameLimit :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> Word64 -> m ()
- diffFindOptionsSetRenameThreshold :: (HasCallStack, MonadIO m, IsDiffFindOptions a) => a -> Word32 -> m ()
- constructDiffFindOptionsCopyThreshold :: IsDiffFindOptions o => Word32 -> IO (GValueConstruct o)
- getDiffFindOptionsCopyThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> m Word32
- setDiffFindOptionsCopyThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> Word32 -> m ()
- constructDiffFindOptionsFlags :: IsDiffFindOptions o => [DiffFindFlags] -> IO (GValueConstruct o)
- getDiffFindOptionsFlags :: (MonadIO m, IsDiffFindOptions o) => o -> m [DiffFindFlags]
- setDiffFindOptionsFlags :: (MonadIO m, IsDiffFindOptions o) => o -> [DiffFindFlags] -> m ()
- constructDiffFindOptionsMetric :: IsDiffFindOptions o => DiffSimilarityMetric -> IO (GValueConstruct o)
- getDiffFindOptionsMetric :: (MonadIO m, IsDiffFindOptions o) => o -> m (Maybe DiffSimilarityMetric)
- setDiffFindOptionsMetric :: (MonadIO m, IsDiffFindOptions o) => o -> DiffSimilarityMetric -> m ()
- constructDiffFindOptionsRenameFromRewriteThreshold :: IsDiffFindOptions o => Word32 -> IO (GValueConstruct o)
- getDiffFindOptionsRenameFromRewriteThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> m Word32
- setDiffFindOptionsRenameFromRewriteThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> Word32 -> m ()
- constructDiffFindOptionsRenameLimit :: IsDiffFindOptions o => Word32 -> IO (GValueConstruct o)
- getDiffFindOptionsRenameLimit :: (MonadIO m, IsDiffFindOptions o) => o -> m Word32
- setDiffFindOptionsRenameLimit :: (MonadIO m, IsDiffFindOptions o) => o -> Word32 -> m ()
- constructDiffFindOptionsRenameThreshold :: IsDiffFindOptions o => Word32 -> IO (GValueConstruct o)
- getDiffFindOptionsRenameThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> m Word32
- setDiffFindOptionsRenameThreshold :: (MonadIO m, IsDiffFindOptions o) => o -> Word32 -> m ()
Exported types
newtype DiffFindOptions Source #
Memory-managed wrapper type.
Instances
GObject DiffFindOptions Source # | |
Defined in GI.Ggit.Objects.DiffFindOptions gobjectType :: IO GType # | |
HasParentTypes DiffFindOptions Source # | |
Defined in GI.Ggit.Objects.DiffFindOptions | |
type ParentTypes DiffFindOptions Source # | |
Defined in GI.Ggit.Objects.DiffFindOptions |
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
(GObject o, IsDescendantOf DiffFindOptions o) => IsDiffFindOptions o Source # | |
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
.
noDiffFindOptions :: Maybe DiffFindOptions Source #
A convenience alias for Nothing
:: Maybe
DiffFindOptions
.
Methods
getCopyThreshold
diffFindOptionsGetCopyThreshold Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> m Word32 | Returns: the copy threshold. |
Get the find options copy threshold.
getFlags
diffFindOptionsGetFlags Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> m [DiffFindFlags] | Returns: the find options flags. |
Get the find options flags.
getMetric
diffFindOptionsGetMetric Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> m (Maybe DiffSimilarityMetric) | Returns: a |
Get the find options metric.
getRenameFromRewriteThreshold
diffFindOptionsGetRenameFromRewriteThreshold Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> m Word32 | Returns: the rename from rewrite threshold. |
Get the find options rename from rewrite threshold.
getRenameLimit
diffFindOptionsGetRenameLimit Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> m Word64 | Returns: the rename limit. |
Get the find options rename limit.
getRenameThreshold
diffFindOptionsGetRenameThreshold Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> m Word32 | Returns: the rename threshold. |
Get the find options rename threshold.
new
:: (HasCallStack, MonadIO m) | |
=> m (Maybe DiffFindOptions) | Returns: a newly allocated |
Creates a new DiffFindOptions
.
setCopyThreshold
diffFindOptionsSetCopyThreshold Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> Word32 |
|
-> m () |
Set the find options copy threshold.
setFlags
diffFindOptionsSetFlags Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> [DiffFindFlags] |
|
-> m () |
Set the find options flags.
setMetric
diffFindOptionsSetMetric Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> DiffSimilarityMetric |
|
-> m () |
Set the find options metric.
setRenameFromRewriteThreshold
diffFindOptionsSetRenameFromRewriteThreshold Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> Word32 |
|
-> m () |
Set the find options rename from rewrite threshold.
setRenameLimit
diffFindOptionsSetRenameLimit Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> Word64 |
|
-> m () |
Set the find options rename limit.
setRenameThreshold
diffFindOptionsSetRenameThreshold Source #
:: (HasCallStack, MonadIO m, IsDiffFindOptions a) | |
=> a |
|
-> Word32 |
|
-> m () |
Set the find options rename threshold.
Properties
copyThreshold
No description available in the introspection data.
constructDiffFindOptionsCopyThreshold :: IsDiffFindOptions o => Word32 -> IO (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 => [DiffFindFlags] -> IO (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 => DiffSimilarityMetric -> IO (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 => Word32 -> IO (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 => Word32 -> IO (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 => Word32 -> IO (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 ]