gi-gtk4-4.0.12: Gtk 4.x bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.SvgLocation

Description

Provides information about a location in an SVG document.

The information should be considered approximate; it is meant to provide feedback for errors in an editor.

Since: 4.22

Synopsis

Exported types

newZeroSvgLocation :: MonadIO m => m SvgLocation Source #

Construct a SvgLocation struct initialized to zero.

Methods

Properties

bytes

the byte index in document. If unknown, this will be zero (which is also a valid value, but only if all three values are zero)

getSvgLocationBytes :: MonadIO m => SvgLocation -> m CSize Source #

Get the value of the “bytes” field. When overloading is enabled, this is equivalent to

get svgLocation #bytes

setSvgLocationBytes :: MonadIO m => SvgLocation -> CSize -> m () Source #

Set the value of the “bytes” field. When overloading is enabled, this is equivalent to

set svgLocation [ #bytes := value ]

lineChars

the char index in the line, 0-based

getSvgLocationLineChars :: MonadIO m => SvgLocation -> m CSize Source #

Get the value of the “line_chars” field. When overloading is enabled, this is equivalent to

get svgLocation #lineChars

setSvgLocationLineChars :: MonadIO m => SvgLocation -> CSize -> m () Source #

Set the value of the “line_chars” field. When overloading is enabled, this is equivalent to

set svgLocation [ #lineChars := value ]

lines

the line index in the document, 0-based

getSvgLocationLines :: MonadIO m => SvgLocation -> m CSize Source #

Get the value of the “lines” field. When overloading is enabled, this is equivalent to

get svgLocation #lines

setSvgLocationLines :: MonadIO m => SvgLocation -> CSize -> m () Source #

Set the value of the “lines” field. When overloading is enabled, this is equivalent to

set svgLocation [ #lines := value ]