class GLib::MarkupParser
- GLib::MarkupParser
- Reference
- Object
Overview
Any of the fields in #GMarkupParser can be %NULL, 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(start_element : GLib::StartElement? = nil, end_element : GLib::EndElement? = nil, text : GLib::Text? = nil, passthrough : GLib::Passthrough? = nil, error : GLib::Error? = 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, end_element : GLib::EndElement? = nil, text : GLib::Text? = nil, passthrough : GLib::Passthrough? = nil, error : GLib::Error? = nil)
#
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.