| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.WebKit2.Structs.UserStyleSheet
Contents
Description
No description available in the introspection data.
Synopsis
- newtype UserStyleSheet = UserStyleSheet (ManagedPtr UserStyleSheet)
- noUserStyleSheet :: Maybe UserStyleSheet
- userStyleSheetNew :: (HasCallStack, MonadIO m) => Text -> UserContentInjectedFrames -> UserStyleLevel -> Maybe [Text] -> Maybe [Text] -> m UserStyleSheet
- userStyleSheetRef :: (HasCallStack, MonadIO m) => UserStyleSheet -> m UserStyleSheet
- userStyleSheetUnref :: (HasCallStack, MonadIO m) => UserStyleSheet -> m ()
Exported types
newtype UserStyleSheet Source #
Memory-managed wrapper type.
Constructors
| UserStyleSheet (ManagedPtr UserStyleSheet) |
Instances
| BoxedObject UserStyleSheet Source # | |
Methods boxedType :: UserStyleSheet -> IO GType # | |
noUserStyleSheet :: Maybe UserStyleSheet Source #
A convenience alias for Nothing :: Maybe UserStyleSheet.
Methods
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> UserContentInjectedFrames |
|
| -> UserStyleLevel |
|
| -> Maybe [Text] |
|
| -> Maybe [Text] |
|
| -> m UserStyleSheet | Returns: A new |
Creates a new user style sheet. Style sheets can be applied to some URIs
only by passing non-null values for whitelist or blacklist. Passing a
Nothing whitelist implies that all URIs are on the whitelist. The style
sheet is applied if an URI matches the whitelist and not the blacklist.
URI patterns must be of the form [protocol]://[host]/[path], where the
*host* and *path* components can contain the wildcard character (*) to
represent zero or more other characters.
Since: 2.6
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => UserStyleSheet |
|
| -> m UserStyleSheet | Returns: The passed |
Atomically increments the reference count of userStyleSheet by one.
This function is MT-safe and may be called from any thread.
Since: 2.6
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => UserStyleSheet |
|
| -> m () |
Atomically decrements the reference count of userStyleSheet by one.
If the reference count drops to 0, all memory allocated by
UserStyleSheet is released. This function is MT-safe and may be
called from any thread.
Since: 2.6