WebKit.FeatureList¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
Details¶
- class WebKit.FeatureList¶
Contains a set of toggle-able web engine features.
The list supports passing around a set of [struct`Feature`] objects and iterating over them:
``c g_autoptr(WebKitFeatureList) list = webkit_settings_get_experimental_features(); for (gsize i = 0; i < webkit_feature_list_get_length(list): i++) {
WebKitFeature *feature = webkit_feature_list_get(list, i); // Do something with “feature”.
}¶
Lists of features can be obtained with [func`Settings`.get_experimental_features], [func`Settings`.get_development_features], and [func`Settings`.get_all_features].
New in version 2.42.
- get(index)¶
- Parameters:
index (
int
) – index of the feature- Returns:
The feature at index.
- Return type:
Gets a feature given its index.
New in version 2.42.
- get_length()¶
- Returns:
number of elements.
- Return type:
Gets the number of elements in the feature list.
- ref()¶
- Returns:
The same self with an additional reference.
- Return type:
Atomically acquires a reference on the given self.
This function is MT-safe and may be called from any thread.
New in version 2.42.
- unref()¶
Atomically releases a reference on the given self.
If the reference was the last, the resources associated to the self are freed. This function is MT-safe and may be called from any thread.
New in version 2.42.