class GLib::MarkupParser

Overview

Any of the fields in #GMarkupParser can be nil, in which case they will be ignored. Except for the error function, any of these callbacks can set an error; in particular the %G_MARKUP_ERROR_UNKNOWN_ELEMENT, %G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, and %G_MARKUP_ERROR_INVALID_CONTENT errors are intended to be set from these callbacks. If you set an error from a callback, g_markup_parse_context_parse() will report that error back to its caller.

Defined in:

lib/gi-crystal/src/auto/g_lib-2.0/markup_parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(data : LibGLib::MarkupParser, transfer : GICrystal::Transfer) #

[View source]
def self.new(start_element : GLib::StartElement | Nil = nil, end_element : GLib::EndElement | Nil = nil, text : GLib::Text | Nil = nil, passthrough : GLib::Passthrough | Nil = nil, error : GLib::Error | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def end_element : GLib::EndElement #

[View source]
def end_element=(value : GLib::EndElement) #

[View source]
def error : GLib::Error #

[View source]
def error=(value : GLib::Error) #

[View source]
def passthrough : GLib::Passthrough #

[View source]
def passthrough=(value : GLib::Passthrough) #

[View source]
def start_element : GLib::StartElement #

[View source]
def start_element=(value : GLib::StartElement) #

[View source]
def text : GLib::Text #

[View source]
def text=(value : GLib::Text) #

[View source]
def to_unsafe #

[View source]