Top | ![]() |
![]() |
![]() |
![]() |
void | (*IpatchTypePropGetFunc) () |
void | ipatch_type_install_property () |
GParamSpec * | ipatch_type_find_property () |
GParamSpec ** | ipatch_type_list_properties () |
GType * | ipatch_type_find_types_with_property () |
void | ipatch_type_set () |
void | ipatch_type_set_valist () |
void | ipatch_type_set_property () |
void | ipatch_type_unset_property () |
void | ipatch_type_get () |
void | ipatch_type_get_valist () |
void | ipatch_type_get_property () |
void | ipatch_type_object_get () |
void | ipatch_type_object_get_valist () |
void | ipatch_type_object_get_property () |
void | ipatch_type_set_dynamic_func () |
void | ipatch_type_set_dynamic_func_full () |
IpatchTypePropGetFunc | ipatch_type_get_dynamic_func () |
Provides a registry system for adding GObject style properties to GTypes. This is used to describe certain properties of different objects, such as "category".
void (*IpatchTypePropGetFunc) (GType type
,GParamSpec *spec
,GValue *value
,GObject *object
);
A function type used for active type property callbacks. Allows for dynamic type properties that can return values depending on an object's state.
void
ipatch_type_install_property (GParamSpec *prop_spec
);
Install a new GType property which can be used to associate arbitrary information to GTypes.
GParamSpec *
ipatch_type_find_property (const char *name
);
Lookup a GType property by name.
GParamSpec **
ipatch_type_list_properties (guint *n_properties
);
Get a list of all registered GType properties.
GType * ipatch_type_find_types_with_property (const char *name
,const GValue *value
,guint *n_types
);
Get an array of types which have the given type property assigned and match
value
(optional, NULL
matches any value).
void ipatch_type_set (GType type
,const char *first_property_name
,...
);
Set GType properties. GType properties are used to associate arbitrary information with GTypes.
void ipatch_type_set_valist (GType type
,const char *first_property_name
,va_list args
);
Like ipatch_type_set()
but uses a va_list.
void ipatch_type_set_property (GType type
,const char *property_name
,const GValue *value
);
Set a single property of a GType.
void ipatch_type_unset_property (GType type
,const char *property_name
);
Unsets the value or dynamic function of a type property.
Since: 1.1.0
void ipatch_type_get (GType type
,const char *first_property_name
,...
);
Get GType property values.
void ipatch_type_get_valist (GType type
,const char *first_property_name
,va_list args
);
Like ipatch_type_get()
but uses a va_list.
void ipatch_type_get_property (GType type
,const char *property_name
,GValue *value
);
Get a single property from a GType.
void ipatch_type_object_get (GObject *object
,const char *first_property_name
,...
);
Get GType property values. Like ipatch_type_get()
but takes an object
instance which can be used by any registered dynamic type property
functions.
void ipatch_type_object_get_valist (GObject *object
,const char *first_property_name
,va_list args
);
void ipatch_type_object_get_property (GObject *object
,const char *property_name
,GValue *value
);
Get a single type property from an object
instance.
void ipatch_type_set_dynamic_func (GType type
,const char *property_name
,IpatchTypePropGetFunc func
);
Registers a callback function for dynamically getting the value of a type property.
Example: A dynamic property is created for SoundFont presets to return a different "virtual-parent-type" depending on if its a percussion or melodic preset (determined from a preset's bank number).
[skip]
void ipatch_type_set_dynamic_func_full (GType type
,const char *property_name
,IpatchTypePropGetFunc func
,GDestroyNotify notify_func
,gpointer user_data
);
Registers a callback function for dynamically getting the value of a
type property. Like ipatch_type_set_dynamic_func()
but more GObject Introspection
friendly.
Example: A dynamic property is created for SoundFont presets to return a different "virtual-parent-type" depending on if its a percussion or melodic preset (determined from a preset's bank number).
[rename-to ipatch_type_set_dynamic_func]
type |
GType of the type property |
|
property_name |
Name of a previously registered type property |
|
func |
Callback function used for getting values for this type property |
|
notify_func |
Destroy function
callback when |
[nullable][scope async][closure user_data] |
user_data |
Data passed to |
[nullable] |
Since: 1.1.0
IpatchTypePropGetFunc ipatch_type_get_dynamic_func (GType type
,const char *property_name
);
Get a the dynamic function registered for a given type
and property_name
with ipatch_type_set_dynamic_func()
. Also can be used as an indicator of
whether a type property is dynamic or not.
[skip]