Builder

constructor()

Creates a new empty builder object.

This function is only useful if you intend to make multiple calls to method@Gtk.Builder.add_from_file, method@Gtk.Builder.add_from_resource or method@Gtk.Builder.add_from_string in order to merge multiple UI descriptions into a single builder.

Return

a new (empty) GtkBuilder object


constructor(filename: String)

Parses the UI definition in the file @filename.

If there is an error opening the file or parsing the description then the program will be aborted. You should only ever attempt to parse user interface descriptions that are shipped as part of your program.

Return

a GtkBuilder containing the described interface

Parameters

filename

filename of user interface description file


constructor(string: String, length: Long)

Parses the UI definition in @string.

If @string is null-terminated, then @length should be -1. If @length is not -1, then it is the length of @string.

If there is an error parsing @string then the program will be aborted. You should not attempt to parse user interface description from untrusted sources.

Return

a GtkBuilder containing the interface described by @string

Parameters

string

a user interface (XML) description

length

the length of @string, or -1


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)