:right-sidebar: True FeatureList =================================================================== .. currentmodule:: gi.repository.WebKit .. versionadded:: 2.42 .. class:: FeatureList(*args, **kwargs) :no-contents-entry: Contains a set of toggle-able web engine features. The list supports passing around a set of :obj:`~gi.repository.WebKit.Feature` objects and iterating over them: .. code-block:: c :dedent: 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 :obj:`~gi.repository.Settings.get_experimental_features`\, :obj:`~gi.repository.Settings.get_development_features`\, and :obj:`~gi.repository.Settings.get_all_features`\. Methods ------- .. rst-class:: interim-class .. class:: FeatureList :no-index: .. method:: get(index: int) -> ~gi.repository.WebKit.Feature Gets a feature given its index. .. versionadded:: 2.42 :param index: index of the feature .. method:: get_length() -> int Gets the number of elements in the feature list.