Gst.Structure.prototype.get_enum
function get_enum(fieldname:String, enumtype:GType):Boolean { // Gjs wrapper for gst_structure_get_enum() }
Sets the int pointed to by value corresponding to the value of the given field. Caller is responsible for making sure the field exists, has the correct type and that the enumtype is correct.
- fieldname
the name of a field
- enumtype
the enum type of a field
- Returns
TRUE if the value could be set correctly. If there was no field with fieldname or the existing field did not contain an enum of the given type, this function returns FALSE.