gi-gsk-4.0.4: Gsk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gsk.Structs.ParseLocation

Description

A location in a parse buffer.

Synopsis

Exported types

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 ]