Gtk2::Buildable::ParseContext.3pm

Langue: en

Version: 2008-02-12 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::Buildable::ParseContext

DESCRIPTION

This object contains context of the XML subset parser used by Gtk2::Builder. Objects of this type will be passed to the methods invoked on the parser returned from your Gtk2::Buildable's "CUSTOM_TAG_START". You should use these methods to create useful error messages, as necessary.

METHODS


string = $parse_context->get_element


string = $parse_context->get_element

Return the name of the currently open element.

list = $parse_context->get_element_stack


list = $parse_context->get_element_stack

Returns the element stack; the first item is the currently-open tag (which would be returned by "get_element()"), and the next item is its immediate parent.
Since: glib 2.15

(line_number, char_number) = $parse_context->get_position


(line_number, char_number) = $parse_context->get_position

SEE ALSO

Gtk2, Gtk2::Buildable Copyright (C) 2003-2007 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.