Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Any of the fields in MarkupParser
can be Nothing
, in which case they
will be ignored. Except for the error
function, any of these callbacks
can set an error; in particular the MarkupErrorUnknownElement
,
MarkupErrorUnknownAttribute
, and MarkupErrorInvalidContent
errors are intended to be set from these callbacks. If you set an error
from a callback, markupParseContextParse
will report that error
back to its caller.
Synopsis
- newtype MarkupParser = MarkupParser (ManagedPtr MarkupParser)
- newZeroMarkupParser :: MonadIO m => m MarkupParser
- noMarkupParser :: Maybe MarkupParser
- clearMarkupParserEndElement :: MonadIO m => MarkupParser -> m ()
- getMarkupParserEndElement :: MonadIO m => MarkupParser -> m (Maybe MarkupParserEndElementFieldCallback_WithClosures)
- setMarkupParserEndElement :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserEndElementFieldCallback -> m ()
- clearMarkupParserError :: MonadIO m => MarkupParser -> m ()
- getMarkupParserError :: MonadIO m => MarkupParser -> m (Maybe MarkupParserErrorFieldCallback_WithClosures)
- setMarkupParserError :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserErrorFieldCallback -> m ()
- clearMarkupParserPassthrough :: MonadIO m => MarkupParser -> m ()
- getMarkupParserPassthrough :: MonadIO m => MarkupParser -> m (Maybe MarkupParserPassthroughFieldCallback_WithClosures)
- setMarkupParserPassthrough :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserPassthroughFieldCallback -> m ()
- clearMarkupParserStartElement :: MonadIO m => MarkupParser -> m ()
- getMarkupParserStartElement :: MonadIO m => MarkupParser -> m (Maybe MarkupParserStartElementFieldCallback_WithClosures)
- setMarkupParserStartElement :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserStartElementFieldCallback -> m ()
- clearMarkupParserText :: MonadIO m => MarkupParser -> m ()
- getMarkupParserText :: MonadIO m => MarkupParser -> m (Maybe MarkupParserTextFieldCallback_WithClosures)
- setMarkupParserText :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserTextFieldCallback -> m ()
Exported types
newtype MarkupParser Source #
Memory-managed wrapper type.
Instances
Eq MarkupParser Source # | |
Defined in GI.GLib.Structs.MarkupParser (==) :: MarkupParser -> MarkupParser -> Bool # (/=) :: MarkupParser -> MarkupParser -> Bool # | |
WrappedPtr MarkupParser Source # | |
Defined in GI.GLib.Structs.MarkupParser | |
tag ~ 'AttrSet => Constructible MarkupParser tag Source # | |
Defined in GI.GLib.Structs.MarkupParser new :: MonadIO m => (ManagedPtr MarkupParser -> MarkupParser) -> [AttrOp MarkupParser tag] -> m MarkupParser # |
newZeroMarkupParser :: MonadIO m => m MarkupParser Source #
Construct a MarkupParser
struct initialized to zero.
noMarkupParser :: Maybe MarkupParser Source #
A convenience alias for Nothing
:: Maybe
MarkupParser
.
Methods
Overloaded methods
Properties
endElement
No description available in the introspection data.
clearMarkupParserEndElement :: MonadIO m => MarkupParser -> m () Source #
Set the value of the “end_element
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#endElement
getMarkupParserEndElement :: MonadIO m => MarkupParser -> m (Maybe MarkupParserEndElementFieldCallback_WithClosures) Source #
Get the value of the “end_element
” field.
When overloading is enabled, this is equivalent to
get
markupParser #endElement
setMarkupParserEndElement :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserEndElementFieldCallback -> m () Source #
Set the value of the “end_element
” field.
When overloading is enabled, this is equivalent to
set
markupParser [ #endElement:=
value ]
error
No description available in the introspection data.
clearMarkupParserError :: MonadIO m => MarkupParser -> m () Source #
Set the value of the “error
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#error
getMarkupParserError :: MonadIO m => MarkupParser -> m (Maybe MarkupParserErrorFieldCallback_WithClosures) Source #
Get the value of the “error
” field.
When overloading is enabled, this is equivalent to
get
markupParser #error
setMarkupParserError :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserErrorFieldCallback -> m () Source #
Set the value of the “error
” field.
When overloading is enabled, this is equivalent to
set
markupParser [ #error:=
value ]
passthrough
No description available in the introspection data.
clearMarkupParserPassthrough :: MonadIO m => MarkupParser -> m () Source #
Set the value of the “passthrough
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#passthrough
getMarkupParserPassthrough :: MonadIO m => MarkupParser -> m (Maybe MarkupParserPassthroughFieldCallback_WithClosures) Source #
Get the value of the “passthrough
” field.
When overloading is enabled, this is equivalent to
get
markupParser #passthrough
setMarkupParserPassthrough :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserPassthroughFieldCallback -> m () Source #
Set the value of the “passthrough
” field.
When overloading is enabled, this is equivalent to
set
markupParser [ #passthrough:=
value ]
startElement
No description available in the introspection data.
clearMarkupParserStartElement :: MonadIO m => MarkupParser -> m () Source #
Set the value of the “start_element
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#startElement
getMarkupParserStartElement :: MonadIO m => MarkupParser -> m (Maybe MarkupParserStartElementFieldCallback_WithClosures) Source #
Get the value of the “start_element
” field.
When overloading is enabled, this is equivalent to
get
markupParser #startElement
setMarkupParserStartElement :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserStartElementFieldCallback -> m () Source #
Set the value of the “start_element
” field.
When overloading is enabled, this is equivalent to
set
markupParser [ #startElement:=
value ]
text
No description available in the introspection data.
clearMarkupParserText :: MonadIO m => MarkupParser -> m () Source #
Set the value of the “text
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#text
getMarkupParserText :: MonadIO m => MarkupParser -> m (Maybe MarkupParserTextFieldCallback_WithClosures) Source #
Get the value of the “text
” field.
When overloading is enabled, this is equivalent to
get
markupParser #text
setMarkupParserText :: MonadIO m => MarkupParser -> FunPtr C_MarkupParserTextFieldCallback -> m () Source #
Set the value of the “text
” field.
When overloading is enabled, this is equivalent to
set
markupParser [ #text:=
value ]