Gtk.Widget.prototype.get_opacity

function get_opacity():Number {
    // Gjs wrapper for gtk_widget_get_opacity()
}

Fetches the requested opacity for this widget. See Gtk.set_opacity.

Since 3.8

Returns

the requested opacity for this widget.