Gtk.ToggleToolButton.prototype.get_active

function get_active():Boolean {
    // Gjs wrapper for gtk_toggle_tool_button_get_active()
}

Queries a Gtk.ToggleToolButton and returns its current state. Returns true if the toggle button is pressed in and false if it is raised.

Since 2.4

Returns

true if the toggle tool button is pressed in, false if not