Interface

Gtk-3.0GtkBuildableInterface

Interface for implementing Buildable. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_add_child(
        builder: Gtk.Builder,
        child: GObject.Object,
        type?: string,
    ): void;
    vfunc_construct_child<T = GObject.Object>(
        builder: Gtk.Builder,
        name: string,
    ): T;
    vfunc_custom_finished(
        builder: Gtk.Builder,
        child: GObject.Object,
        tagname: string,
        data?: any,
    ): void;
    vfunc_custom_tag_end(
        builder: Gtk.Builder,
        child: GObject.Object,
        tagname: string,
        data?: any,
    ): void;
    vfunc_custom_tag_start(
        builder: Gtk.Builder,
        child: GObject.Object,
        tagname: string,
    ): [boolean, MarkupParser, any];
    vfunc_get_internal_child<T = GObject.Object>(
        builder: Gtk.Builder,
        childname: string,
    ): T;
    vfunc_get_name(): string;
    vfunc_parser_finished(builder: Gtk.Builder): void;
    vfunc_set_buildable_property(
        builder: Gtk.Builder,
        name: string,
        value: any,
    ): void;
    vfunc_set_name(name: string): void;
}

Hierarchy (View Summary)

Index

Methods

  • This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.

    Parameters

    • builder: Gtk.Builder
    • child: GObject.Object

      child object or null for non-child tags

    • tagname: string

      the name of the tag

    • Optionaldata: any

      user data created in custom_tag_start

    Returns void

  • This is called at the end of each custom element handled by the buildable.

    Parameters

    • builder: Gtk.Builder

      Gtk.Builder used to construct this object

    • child: GObject.Object

      child object or null for non-child tags

    • tagname: string

      name of tag

    • Optionaldata: any

      user data that will be passed in to parser functions

    Returns void

  • Gets the name of the buildable object.

    Gtk.Builder sets the name based on the [GtkBuilder UI definition][BUILDER-UI] used to construct the buildable.

    Returns string

  • Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.

    Parameters

    Returns void

  • Sets the property name name to value on the buildable object.

    Parameters

    Returns void

  • Sets the name of the buildable object.

    Parameters

    • name: string

      name to set

    Returns void