BuildableParseContext

An opaque context struct for GtkBuildableParser.

Constructors

this
this(GtkBuildableParseContext* gtkBuildableParseContext, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getBuildableParseContextStruct
GtkBuildableParseContext* getBuildableParseContextStruct(bool transferOwnership)

Get the main Gtk struct

getElement
string getElement()

Retrieves the name of the currently open element.

getElementStack
PtrArray getElementStack()

Retrieves the element stack from the internal state of the parser.

getPosition
void getPosition(int lineNumber, int charNumber)

Retrieves the current line number and the number of the character on that line. Intended for use in error messages; there are no strict semantics for what constitutes the "current" line number other than "the best number we could come up with for error messages."

getStruct
void* getStruct()

the main Gtk struct as a void*

pop
void* pop()

Completes the process of a temporary sub-parser redirection.

push
void push(GtkBuildableParser* parser, void* userData)

Temporarily redirects markup data to a sub-parser.

Variables

gtkBuildableParseContext
GtkBuildableParseContext* gtkBuildableParseContext;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta