Gtk.StyleProperties.prototype.get_property

function get_property(property:String, state:Gtk.StateFlags):Boolean {
    // Gjs wrapper for gtk_style_properties_get_property()
}

Gets a style property from props for the given state. When done with value, GObject.unset needs to be called to free any allocated memory.

Since 3.0

property

style property name

state

state to retrieve the property value for

Returns

true if the property exists in props, false otherwise