Interface

Gtk-4.0GtkBuilderConstructorProps

interface ConstructorProps {
    callbacks?: Record<string, (...args: any[]) => any>;
    current_object: GObject.Object | null;
    currentObject: GObject.Object | null;
    data?: string | Uint8Array<ArrayBufferLike>;
    filename?: string;
    objects?: Record<string, GObject.Object>;
    resource?: string;
    scope: Gtk.BuilderScope;
    translation_domain: string | null;
    translationDomain: string | null;
}

Hierarchy (View Summary)

Index

Properties

callbacks?: Record<string, (...args: any[]) => any>

Named signal callbacks resolved against <signal> handler attributes.

current_object: GObject.Object | null
currentObject: GObject.Object | null
data?: string | Uint8Array<ArrayBufferLike>

Inline XML interface description. Calls add_from_string on construction.

filename?: string

Path to a UI file. Calls add_from_file on construction.

objects?: Record<string, GObject.Object>

Pre-existing objects exposed to the UI via Builder.exposeObjects.

resource?: string

Resource path to a UI file. Calls add_from_resource on construction.

translation_domain: string | null
translationDomain: string | null