GObject.Object.prototype.get_property
function get_property(property_name: String, value: Any): void { // Gjs wrapper for g_object_get_property() }
Gets a property of an object. value must have been initialized to the expected type of the property (or a type to which the expected type can be transformed) using GObject.Value.init.
In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
Note that GObject.Object.prototype.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
- property_name
the name of the property to get
- value
return location for the property value