Structure.hasFieldTyped

Check if structure contains a field named fieldname and with GType type.

class Structure
bool
hasFieldTyped

Parameters

fieldname string

the name of a field

type gobject.types.GType

the type of a value

Return Value

Type: bool

true if the structure contains a field with the given name and type