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 |
Represents the options used when creating a Diff
.
Synopsis
- newtype DiffOptions = DiffOptions (ManagedPtr DiffOptions)
- class (GObject o, IsDescendantOf DiffOptions o) => IsDiffOptions o
- toDiffOptions :: (MonadIO m, IsDiffOptions o) => o -> m DiffOptions
- diffOptionsGetFlags :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m [DiffOption]
- diffOptionsGetNContextLines :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m Int32
- diffOptionsGetNInterhunkLines :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m Int32
- diffOptionsGetNewPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m (Maybe Text)
- diffOptionsGetOldPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m (Maybe Text)
- diffOptionsGetPathspec :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> m (Maybe [Text])
- diffOptionsNew :: (HasCallStack, MonadIO m) => m (Maybe DiffOptions)
- diffOptionsSetFlags :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> [DiffOption] -> m ()
- diffOptionsSetNContextLines :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Int32 -> m ()
- diffOptionsSetNInterhunkLines :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Int32 -> m ()
- diffOptionsSetNewPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Text -> m ()
- diffOptionsSetOldPrefix :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Text -> m ()
- diffOptionsSetPathspec :: (HasCallStack, MonadIO m, IsDiffOptions a) => a -> Maybe [Text] -> m ()
- constructDiffOptionsFlags :: (IsDiffOptions o, MonadIO m) => [DiffOption] -> m (GValueConstruct o)
- getDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> m [DiffOption]
- setDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> [DiffOption] -> m ()
- constructDiffOptionsNContextLines :: (IsDiffOptions o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32
- setDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m ()
- constructDiffOptionsNInterhunkLines :: (IsDiffOptions o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32
- setDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m ()
- constructDiffOptionsNewPrefix :: (IsDiffOptions o, MonadIO m) => Text -> m (GValueConstruct o)
- getDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe Text)
- setDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m ()
- constructDiffOptionsOldPrefix :: (IsDiffOptions o, MonadIO m) => Text -> m (GValueConstruct o)
- getDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe Text)
- setDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m ()
- clearDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m ()
- constructDiffOptionsPathspec :: (IsDiffOptions o, MonadIO m) => [Text] -> m (GValueConstruct o)
- getDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe [Text])
- setDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> [Text] -> m ()
Exported types
newtype DiffOptions Source #
Memory-managed wrapper type.
Instances
Eq DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions (==) :: DiffOptions -> DiffOptions -> Bool # (/=) :: DiffOptions -> DiffOptions -> Bool # | |
GObject DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions | |
ManagedPtrNewtype DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions | |
TypedObject DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions | |
HasParentTypes DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions | |
IsGValue (Maybe DiffOptions) Source # | Convert |
Defined in GI.Ggit.Objects.DiffOptions gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DiffOptions -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DiffOptions) # | |
type ParentTypes DiffOptions Source # | |
Defined in GI.Ggit.Objects.DiffOptions |
class (GObject o, IsDescendantOf DiffOptions o) => IsDiffOptions o Source #
Type class for types which can be safely cast to DiffOptions
, for instance with toDiffOptions
.
Instances
(GObject o, IsDescendantOf DiffOptions o) => IsDiffOptions o Source # | |
Defined in GI.Ggit.Objects.DiffOptions |
toDiffOptions :: (MonadIO m, IsDiffOptions o) => o -> m DiffOptions Source #
Cast to DiffOptions
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getFlags, getNContextLines, getNInterhunkLines, getNewPrefix, getOldPrefix, getPathspec, getProperty, getQdata.
Setters
setData, setDataFull, setFlags, setNContextLines, setNInterhunkLines, setNewPrefix, setOldPrefix, setPathspec, setProperty.
getFlags
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> m [DiffOption] | Returns: a |
Get the diff flags.
getNContextLines
diffOptionsGetNContextLines Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> m Int32 | Returns: the number of context lines. |
Get the number of context lines to include in the diff.
getNInterhunkLines
diffOptionsGetNInterhunkLines Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> m Int32 | Returns: the number of lines. |
Get the number of interhunk lines to include in the diff.
getNewPrefix
diffOptionsGetNewPrefix Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> m (Maybe Text) | Returns: the new-prefix string or |
Get the diff new-prefix string.
getOldPrefix
diffOptionsGetOldPrefix Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> m (Maybe Text) | Returns: the old-prefix string or |
Get the diff old-prefix string.
getPathspec
diffOptionsGetPathspec Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> m (Maybe [Text]) | Returns: the pathspec or |
Get the pathspec.
new
:: (HasCallStack, MonadIO m) | |
=> m (Maybe DiffOptions) | Returns: a |
Create a new diff options object.
setFlags
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> [DiffOption] |
|
-> m () |
Set the diff flags.
setNContextLines
diffOptionsSetNContextLines Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> Int32 |
|
-> m () |
Set the number of context lines to include in the diff.
setNInterhunkLines
diffOptionsSetNInterhunkLines Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> Int32 |
|
-> m () |
Set the number of interhunk lines to include in the diff.
setNewPrefix
diffOptionsSetNewPrefix Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> Text |
|
-> m () |
Set the diff new-prefix string.
setOldPrefix
diffOptionsSetOldPrefix Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> Text |
|
-> m () |
Get the diff old-prefix string.
setPathspec
diffOptionsSetPathspec Source #
:: (HasCallStack, MonadIO m, IsDiffOptions a) | |
=> a |
|
-> Maybe [Text] |
|
-> m () |
Set the pathspec.
Properties
flags
The diff option flags.
constructDiffOptionsFlags :: (IsDiffOptions o, MonadIO m) => [DiffOption] -> 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
.
getDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> m [DiffOption] Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
diffOptions #flags
setDiffOptionsFlags :: (MonadIO m, IsDiffOptions o) => o -> [DiffOption] -> m () Source #
Set the value of the “flags
” property.
When overloading is enabled, this is equivalent to
set
diffOptions [ #flags:=
value ]
nContextLines
No description available in the introspection data.
constructDiffOptionsNContextLines :: (IsDiffOptions o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “n-context-lines
” property. This is rarely needed directly, but it is used by new
.
getDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32 Source #
Get the value of the “n-context-lines
” property.
When overloading is enabled, this is equivalent to
get
diffOptions #nContextLines
setDiffOptionsNContextLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m () Source #
Set the value of the “n-context-lines
” property.
When overloading is enabled, this is equivalent to
set
diffOptions [ #nContextLines:=
value ]
nInterhunkLines
No description available in the introspection data.
constructDiffOptionsNInterhunkLines :: (IsDiffOptions o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “n-interhunk-lines
” property. This is rarely needed directly, but it is used by new
.
getDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> m Int32 Source #
Get the value of the “n-interhunk-lines
” property.
When overloading is enabled, this is equivalent to
get
diffOptions #nInterhunkLines
setDiffOptionsNInterhunkLines :: (MonadIO m, IsDiffOptions o) => o -> Int32 -> m () Source #
Set the value of the “n-interhunk-lines
” property.
When overloading is enabled, this is equivalent to
set
diffOptions [ #nInterhunkLines:=
value ]
newPrefix
No description available in the introspection data.
constructDiffOptionsNewPrefix :: (IsDiffOptions o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “new-prefix
” property. This is rarely needed directly, but it is used by new
.
getDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe Text) Source #
Get the value of the “new-prefix
” property.
When overloading is enabled, this is equivalent to
get
diffOptions #newPrefix
setDiffOptionsNewPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m () Source #
Set the value of the “new-prefix
” property.
When overloading is enabled, this is equivalent to
set
diffOptions [ #newPrefix:=
value ]
oldPrefix
No description available in the introspection data.
constructDiffOptionsOldPrefix :: (IsDiffOptions o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “old-prefix
” property. This is rarely needed directly, but it is used by new
.
getDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe Text) Source #
Get the value of the “old-prefix
” property.
When overloading is enabled, this is equivalent to
get
diffOptions #oldPrefix
setDiffOptionsOldPrefix :: (MonadIO m, IsDiffOptions o) => o -> Text -> m () Source #
Set the value of the “old-prefix
” property.
When overloading is enabled, this is equivalent to
set
diffOptions [ #oldPrefix:=
value ]
pathspec
No description available in the introspection data.
clearDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m () Source #
Set the value of the “pathspec
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#pathspec
constructDiffOptionsPathspec :: (IsDiffOptions o, MonadIO m) => [Text] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “pathspec
” property. This is rarely needed directly, but it is used by new
.
getDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> m (Maybe [Text]) Source #
Get the value of the “pathspec
” property.
When overloading is enabled, this is equivalent to
get
diffOptions #pathspec
setDiffOptionsPathspec :: (MonadIO m, IsDiffOptions o) => o -> [Text] -> m () Source #
Set the value of the “pathspec
” property.
When overloading is enabled, this is equivalent to
set
diffOptions [ #pathspec:=
value ]