| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.WebKit2.Structs.FeatureList
Description
Contains a set of toggle-able web engine features.
The list supports passing around a set of [structfeature] objects and
iterating over them:
c code
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.
Since: 2.42
Synopsis
- newtype FeatureList = FeatureList (ManagedPtr FeatureList)
- featureListGet :: (HasCallStack, MonadIO m) => FeatureList -> CSize -> m Feature
- featureListGetLength :: (HasCallStack, MonadIO m) => FeatureList -> m CSize
- featureListRef :: (HasCallStack, MonadIO m) => FeatureList -> m FeatureList
- featureListUnref :: (HasCallStack, MonadIO m) => FeatureList -> m ()
Exported types
newtype FeatureList Source #
Memory-managed wrapper type.
Constructors
| FeatureList (ManagedPtr FeatureList) |
Instances
| Eq FeatureList Source # | |
Defined in GI.WebKit2.Structs.FeatureList | |
| GBoxed FeatureList Source # | |
Defined in GI.WebKit2.Structs.FeatureList | |
| ManagedPtrNewtype FeatureList Source # | |
Defined in GI.WebKit2.Structs.FeatureList Methods toManagedPtr :: FeatureList -> ManagedPtr FeatureList | |
| TypedObject FeatureList Source # | |
Defined in GI.WebKit2.Structs.FeatureList | |
| HasParentTypes FeatureList Source # | |
Defined in GI.WebKit2.Structs.FeatureList | |
| IsGValue (Maybe FeatureList) Source # | Convert |
Defined in GI.WebKit2.Structs.FeatureList Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe FeatureList -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe FeatureList) | |
| type ParentTypes FeatureList Source # | |
Defined in GI.WebKit2.Structs.FeatureList | |
Methods
Click to display all available methods, including inherited ones
get
Arguments
| :: (HasCallStack, MonadIO m) | |
| => FeatureList |
|
| -> CSize |
|
| -> m Feature | Returns: The feature at |
Gets a feature given its index.
Since: 2.42
getLength
Arguments
| :: (HasCallStack, MonadIO m) | |
| => FeatureList |
|
| -> m CSize | Returns: number of elements. Since 2.42 |
Gets the number of elements in the feature list.
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => FeatureList |
|
| -> m FeatureList | Returns: The same |
Atomically acquires a reference on the given featureList.
This function is MT-safe and may be called from any thread.
Since: 2.42
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => FeatureList |
|
| -> m () |
Atomically releases a reference on the given featureList.
If the reference was the last, the resources associated to the
featureList are freed. This function is MT-safe and may be called
from any thread.
Since: 2.42