class GLib::MarkupParser
- GLib::MarkupParser
- Reference
- Object
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.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGLib::MarkupParser, transfer : GICrystal::Transfer)
- .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)
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #end_element : GLib::EndElement
- #end_element=(value : GLib::EndElement)
- #error : GLib::Error
- #error=(value : GLib::Error)
- #passthrough : GLib::Passthrough
- #passthrough=(value : GLib::Passthrough)
- #start_element : GLib::StartElement
- #start_element=(value : GLib::StartElement)
- #text : GLib::Text
- #text=(value : GLib::Text)
- #to_unsafe
Constructor Detail
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)
#
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.