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) #

def self.new(data : LibGLib::MarkupParser, transfer : GICrystal::Transfer) #

def self.new(start_element : GLib::StartElement? = nil, end_element : GLib::EndElement? = nil, text : GLib::Text? = nil, passthrough : GLib::Passthrough? = nil, error : GLib::Error? = nil) #

Instance Method Detail

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

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


def end_element : GLib::EndElement #

def end_element=(value : GLib::EndElement) #

def error : GLib::Error #

def error=(value : GLib::Error) #

def passthrough : GLib::Passthrough #

def passthrough=(value : GLib::Passthrough) #

def start_element : GLib::StartElement #

def start_element=(value : GLib::StartElement) #

def text : GLib::Text #

def text=(value : GLib::Text) #

def to_unsafe #