gi-gtk4-4.0.12: Gtk 4.x bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Gtk.Structs.BuildableParser

Contents

- Exported types
- Methods
- Properties
  - endElement
  - error
  - startElement
  - text

Description

A sub-parser for `GtkBuildable` implementations.

Synopsis

- newtype BuildableParser = BuildableParser (ManagedPtr BuildableParser)
- newZeroBuildableParser :: MonadIO m => m BuildableParser
- clearBuildableParserEndElement :: MonadIO m => BuildableParser -> m ()
- getBuildableParserEndElement :: MonadIO m => BuildableParser -> m (Maybe BuildableParserEndElementFieldCallback_WithClosures)
- setBuildableParserEndElement :: MonadIO m => BuildableParser -> FunPtr C_BuildableParserEndElementFieldCallback -> m ()
- clearBuildableParserError :: MonadIO m => BuildableParser -> m ()
- getBuildableParserError :: MonadIO m => BuildableParser -> m (Maybe BuildableParserErrorFieldCallback_WithClosures)
- setBuildableParserError :: MonadIO m => BuildableParser -> FunPtr C_BuildableParserErrorFieldCallback -> m ()
- clearBuildableParserStartElement :: MonadIO m => BuildableParser -> m ()
- getBuildableParserStartElement :: MonadIO m => BuildableParser -> m (Maybe BuildableParserStartElementFieldCallback_WithClosures)
- setBuildableParserStartElement :: MonadIO m => BuildableParser -> FunPtr C_BuildableParserStartElementFieldCallback -> m ()
- clearBuildableParserText :: MonadIO m => BuildableParser -> m ()
- getBuildableParserText :: MonadIO m => BuildableParser -> m (Maybe BuildableParserTextFieldCallback_WithClosures)
- setBuildableParserText :: MonadIO m => BuildableParser -> FunPtr C_BuildableParserTextFieldCallback -> m ()

# Exported types

newtype BuildableParser Source #

Memory-managed wrapper type.

Constructors

BuildableParser (ManagedPtr BuildableParser) |

#### Instances

Instances details

Eq BuildableParser Source # |
Instance details Defined in GI.Gtk.Structs.BuildableParser Methods (==) :: BuildableParser -> BuildableParser -> Bool Source # (/=) :: BuildableParser -> BuildableParser -> Bool Source #
BoxedPtr BuildableParser Source # |
Instance details Defined in GI.Gtk.Structs.BuildableParser Methods boxedPtrCopy :: BuildableParser -> IO BuildableParser Source # boxedPtrFree :: BuildableParser -> IO () Source #
CallocPtr BuildableParser Source # |
Instance details Defined in GI.Gtk.Structs.BuildableParser Methods boxedPtrCalloc :: IO (Ptr BuildableParser) Source #
ManagedPtrNewtype BuildableParser Source # |
Instance details Defined in GI.Gtk.Structs.BuildableParser Methods toManagedPtr :: BuildableParser -> ManagedPtr BuildableParser Source #
tag ~ 'AttrSet => Constructible BuildableParser tag Source # |
Instance details Defined in GI.Gtk.Structs.BuildableParser Methods new :: MonadIO m => (ManagedPtr BuildableParser -> BuildableParser) -> [AttrOp BuildableParser tag] -> m BuildableParser Source #

newZeroBuildableParser :: MonadIO m => m BuildableParser Source #

Construct a `BuildableParser` struct initialized to zero.

# Methods

# Properties

## endElement

function called for close elements

clearBuildableParserEndElement :: MonadIO m => BuildableParser -> m () Source #

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

    clear #endElement

getBuildableParserEndElement :: MonadIO m => BuildableParser -> m (Maybe BuildableParserEndElementFieldCallback_WithClosures) Source #

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

    get buildableParser #endElement

setBuildableParserEndElement :: MonadIO m => BuildableParser -> FunPtr C_BuildableParserEndElementFieldCallback -> m () Source #

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

    set buildableParser [ #endElement := value ]

## error

function called on error

clearBuildableParserError :: MonadIO m => BuildableParser -> m () Source #

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

    clear #error

getBuildableParserError :: MonadIO m => BuildableParser -> m (Maybe BuildableParserErrorFieldCallback_WithClosures) Source #

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

    get buildableParser #error

setBuildableParserError :: MonadIO m => BuildableParser -> FunPtr C_BuildableParserErrorFieldCallback -> m () Source #

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

    set buildableParser [ #error := value ]

## startElement

function called for open elements

clearBuildableParserStartElement :: MonadIO m => BuildableParser -> m () Source #

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

    clear #startElement

getBuildableParserStartElement :: MonadIO m => BuildableParser -> m (Maybe BuildableParserStartElementFieldCallback_WithClosures) Source #

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

    get buildableParser #startElement

setBuildableParserStartElement :: MonadIO m => BuildableParser -> FunPtr C_BuildableParserStartElementFieldCallback -> m () Source #

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

    set buildableParser [ #startElement := value ]

## text

function called for character data

clearBuildableParserText :: MonadIO m => BuildableParser -> m () Source #

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

    clear #text

getBuildableParserText :: MonadIO m => BuildableParser -> m (Maybe BuildableParserTextFieldCallback_WithClosures) Source #

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

    get buildableParser #text

setBuildableParserText :: MonadIO m => BuildableParser -> FunPtr C_BuildableParserTextFieldCallback -> m () Source #

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

    set buildableParser [ #text := value ]