override_property
Description:
Registers property_id
as referring to a property with the name name
in a parent class or in an interface implemented
by this.
This allows this class to "override" a property implementation in a parent class or to provide the implementation of a property from an interface.
Internally, overriding is implemented by creating a property of type
ParamSpecOverride; generally operations that query the properties of the object class, such as
find_property or
list_properties will return the overridden property. However, in
one case, the construct_properties
argument of the constructor
virtual function, the
ParamSpecOverride is passed instead, so that the param_id
field of the ParamSpec will be correct. For virtually all uses, this makes no
difference. If you need to get the overridden property, you can call
get_redirect_target.
Parameters:
this | |
property_id |
the new property ID |
name |
the name of a property registered in a parent class or in an interface of this class. |