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 location in a parse buffer.
Synopsis
- newtype ParseLocation = ParseLocation (ManagedPtr ParseLocation)
- newZeroParseLocation :: MonadIO m => m ParseLocation
- getParseLocationBytes :: MonadIO m => ParseLocation -> m Word64
- setParseLocationBytes :: MonadIO m => ParseLocation -> Word64 -> m ()
- getParseLocationChars :: MonadIO m => ParseLocation -> m Word64
- setParseLocationChars :: MonadIO m => ParseLocation -> Word64 -> m ()
- getParseLocationLineBytes :: MonadIO m => ParseLocation -> m Word64
- setParseLocationLineBytes :: MonadIO m => ParseLocation -> Word64 -> m ()
- getParseLocationLineChars :: MonadIO m => ParseLocation -> m Word64
- setParseLocationLineChars :: MonadIO m => ParseLocation -> Word64 -> m ()
- getParseLocationLines :: MonadIO m => ParseLocation -> m Word64
- setParseLocationLines :: MonadIO m => ParseLocation -> Word64 -> m ()
Exported types
newtype ParseLocation Source #
Memory-managed wrapper type.
ParseLocation (ManagedPtr ParseLocation) |
Instances
Eq ParseLocation Source # | |
Defined in GI.Gsk.Structs.ParseLocation (==) :: ParseLocation -> ParseLocation -> Bool # (/=) :: ParseLocation -> ParseLocation -> Bool # | |
BoxedPtr ParseLocation Source # | |
Defined in GI.Gsk.Structs.ParseLocation boxedPtrCopy :: ParseLocation -> IO ParseLocation boxedPtrFree :: ParseLocation -> IO () | |
CallocPtr ParseLocation Source # | |
Defined in GI.Gsk.Structs.ParseLocation boxedPtrCalloc :: IO (Ptr ParseLocation) | |
ManagedPtrNewtype ParseLocation Source # | |
Defined in GI.Gsk.Structs.ParseLocation toManagedPtr :: ParseLocation -> ManagedPtr ParseLocation | |
tag ~ 'AttrSet => Constructible ParseLocation tag Source # | |
Defined in GI.Gsk.Structs.ParseLocation new :: MonadIO m => (ManagedPtr ParseLocation -> ParseLocation) -> [AttrOp ParseLocation tag] -> m ParseLocation |
newZeroParseLocation :: MonadIO m => m ParseLocation Source #
Construct a ParseLocation
struct initialized to zero.
Methods
Properties
bytes
the offset of the location in the parse buffer, as bytes
getParseLocationBytes :: MonadIO m => ParseLocation -> m Word64 Source #
Get the value of the “bytes
” field.
When overloading is enabled, this is equivalent to
get
parseLocation #bytes
setParseLocationBytes :: MonadIO m => ParseLocation -> Word64 -> m () Source #
Set the value of the “bytes
” field.
When overloading is enabled, this is equivalent to
set
parseLocation [ #bytes:=
value ]
chars
the offset of the location in the parse buffer, as characters
getParseLocationChars :: MonadIO m => ParseLocation -> m Word64 Source #
Get the value of the “chars
” field.
When overloading is enabled, this is equivalent to
get
parseLocation #chars
setParseLocationChars :: MonadIO m => ParseLocation -> Word64 -> m () Source #
Set the value of the “chars
” field.
When overloading is enabled, this is equivalent to
set
parseLocation [ #chars:=
value ]
lineBytes
the position in the line, as bytes
getParseLocationLineBytes :: MonadIO m => ParseLocation -> m Word64 Source #
Get the value of the “line_bytes
” field.
When overloading is enabled, this is equivalent to
get
parseLocation #lineBytes
setParseLocationLineBytes :: MonadIO m => ParseLocation -> Word64 -> m () Source #
Set the value of the “line_bytes
” field.
When overloading is enabled, this is equivalent to
set
parseLocation [ #lineBytes:=
value ]
lineChars
the position in the line, as characters
getParseLocationLineChars :: MonadIO m => ParseLocation -> m Word64 Source #
Get the value of the “line_chars
” field.
When overloading is enabled, this is equivalent to
get
parseLocation #lineChars
setParseLocationLineChars :: MonadIO m => ParseLocation -> Word64 -> m () Source #
Set the value of the “line_chars
” field.
When overloading is enabled, this is equivalent to
set
parseLocation [ #lineChars:=
value ]
lines
the line of the location in the parse buffer
getParseLocationLines :: MonadIO m => ParseLocation -> m Word64 Source #
Get the value of the “lines
” field.
When overloading is enabled, this is equivalent to
get
parseLocation #lines
setParseLocationLines :: MonadIO m => ParseLocation -> Word64 -> m () Source #
Set the value of the “lines
” field.
When overloading is enabled, this is equivalent to
set
parseLocation [ #lines:=
value ]