gi-gsk-4.0.5: 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

newtype ParseLocation Source #

Memory-managed wrapper type.

Constructors

ParseLocation (ManagedPtr ParseLocation) 

Instances

Instances details
Eq ParseLocation Source # 
Instance details

Defined in GI.Gsk.Structs.ParseLocation

BoxedPtr ParseLocation Source # 
Instance details

Defined in GI.Gsk.Structs.ParseLocation

CallocPtr ParseLocation Source # 
Instance details

Defined in GI.Gsk.Structs.ParseLocation

ManagedPtrNewtype ParseLocation Source # 
Instance details

Defined in GI.Gsk.Structs.ParseLocation

Methods

toManagedPtr :: ParseLocation -> ManagedPtr ParseLocation

tag ~ 'AttrSet => Constructible ParseLocation tag Source # 
Instance details

Defined in GI.Gsk.Structs.ParseLocation

Methods

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 ]