gi-webkit2-4.0.31: WebKit2 bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Exported types

newtype FeatureList Source #

Memory-managed wrapper type.

Constructors

FeatureList (ManagedPtr FeatureList) 

Instances

Instances details
Eq FeatureList Source # 
Instance details

Defined in GI.WebKit2.Structs.FeatureList

GBoxed FeatureList Source # 
Instance details

Defined in GI.WebKit2.Structs.FeatureList

ManagedPtrNewtype FeatureList Source # 
Instance details

Defined in GI.WebKit2.Structs.FeatureList

Methods

toManagedPtr :: FeatureList -> ManagedPtr FeatureList

TypedObject FeatureList Source # 
Instance details

Defined in GI.WebKit2.Structs.FeatureList

Methods

glibType :: IO GType

HasParentTypes FeatureList Source # 
Instance details

Defined in GI.WebKit2.Structs.FeatureList

IsGValue (Maybe FeatureList) Source #

Convert FeatureList to and from GValue. See toGValue and fromGValue.

Instance details

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 # 
Instance details

Defined in GI.WebKit2.Structs.FeatureList

type ParentTypes FeatureList = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

get, ref, unref.

Getters

getLength.

Setters

None.

get

featureListGet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FeatureList

featureList: a FeatureList

-> CSize

index: index of the feature

-> m Feature

Returns: The feature at index.

Gets a feature given its index.

Since: 2.42

getLength

featureListGetLength Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FeatureList

featureList: a FeatureList

-> m CSize

Returns: number of elements.

Since 2.42

Gets the number of elements in the feature list.

ref

featureListRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FeatureList

featureList: a FeatureList

-> m FeatureList

Returns: The same featureList with an additional reference.

Atomically acquires a reference on the given featureList.

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

Since: 2.42

unref

featureListUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FeatureList

featureList: a 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