Gck.Attributes.new

function new(reserved: Number(gulong)): Gck.Attributes {
    // Gjs wrapper for gck_attributes_new()
}
  

Create a new empty GckAttributes array.

The returned set of attributes is floating, and should either be passed to another gck library function which consumes this floating reference, or if you wish to keep these attributes around you should ref them with Gck.Attributes.prototype.ref_sink and unref them later with Gck.attributes_unref.

reserved

Should be set to always be GCK_INVALID

Returns

a floating reference to the new attributes array; when done with the array release it with Gck.attributes_unref.