3.4 <WebKitFeatureList>

Structure: <WebKitFeatureList>

Contains a set of toggle-able web engine features.

The list supports passing around a set of Feature objects and iterating over them:

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 Settings.get_experimental_features, Settings.get_development_features, and Settings.get_all_features.

Procedures

Method: feature-list:get self index ⇒ %return
Method: get self index ⇒ %return

Gets a feature given its index.

self

Passed: a <WebKitFeatureList>.

a <WebKitFeatureList>

index

Passed: an unsigned 64-bit integer.

index of the feature

%return

Returned: a <WebKitFeature>.

The feature at index.

Method: feature-list:get-length self ⇒ %return
Method: get-length self ⇒ %return

Gets the number of elements in the feature list.

self

Passed: a <WebKitFeatureList>.

a <WebKitFeatureList>

%return

Returned: an unsigned 64-bit integer.

number of elements.

Since 2.42

Method: feature-list:ref self ⇒ %return
Method: ref self ⇒ %return

Atomically acquires a reference on the given self.

This function is MT-safe and may be called from any thread.

self

Passed: a <WebKitFeatureList>.

a <WebKitFeatureList>

%return

Returned: a <WebKitFeatureList>.

The same self with an additional reference.

Method: feature-list:unref self
Method: unref self

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.

self

Passed: a <WebKitFeatureList>.

a <WebKitFeatureList>