Gtk.ApplicationWindow.prototype.get_id

function get_id():Number {
    // Gjs wrapper for gtk_application_window_get_id()
}

Returns the unique ID of the window. If the window has not yet been added to a Gtk.Application, returns <literal>0</literal>.

Since 3.6

Returns

the unique ID for window, or <literal>0</literal> if the window has not yet been added to a Gtk.Application