| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gsk.Objects.BlurNode
Description
A render node applying a blur effect to its single child.
Synopsis
- newtype BlurNode = BlurNode (ManagedPtr BlurNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf BlurNode o) => IsBlurNode o
- toBlurNode :: (MonadIO m, IsBlurNode o) => o -> m BlurNode
- blurNodeGetBlurRadius :: (HasCallStack, MonadIO m, IsBlurNode a) => a -> m Size
- blurNodeGetChild :: (HasCallStack, MonadIO m, IsBlurNode a) => a -> m RenderNode
- blurNodeGetRadius :: (HasCallStack, MonadIO m, IsBlurNode a) => a -> m Float
- blurNodeNew :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> Float -> m BlurNode
Exported types
Memory-managed wrapper type.
Constructors
| BlurNode (ManagedPtr BlurNode) |
Instances
| Eq BlurNode Source # | |
| BoxedPtr BlurNode Source # | |
Defined in GI.Gsk.Objects.BlurNode | |
| ManagedPtrNewtype BlurNode Source # | |
Defined in GI.Gsk.Objects.BlurNode Methods toManagedPtr :: BlurNode -> ManagedPtr BlurNode # | |
| TypedObject BlurNode Source # | |
Defined in GI.Gsk.Objects.BlurNode | |
| HasParentTypes BlurNode Source # | |
Defined in GI.Gsk.Objects.BlurNode | |
| type ParentTypes BlurNode Source # | |
Defined in GI.Gsk.Objects.BlurNode | |
class (BoxedPtr o, TypedObject o, IsDescendantOf BlurNode o) => IsBlurNode o Source #
Type class for types which can be safely cast to BlurNode, for instance with toBlurNode.
Instances
| (BoxedPtr o, TypedObject o, IsDescendantOf BlurNode o) => IsBlurNode o Source # | |
Defined in GI.Gsk.Objects.BlurNode | |
toBlurNode :: (MonadIO m, IsBlurNode o) => o -> m BlurNode Source #
Methods
Click to display all available methods, including inherited ones
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBlurRadius, getBounds, getChild, getChildren, getNodeType, getOpaqueRect, getRadius.
Setters
None.
getBlurRadius
blurNodeGetBlurRadius Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBlurNode a) | |
| => a |
|
| -> m Size | Returns: the blur radius |
Retrieves the blur radius of the node.
The blur radius is the standard deviation of the blur to apply in the horizontal and vertical direction respectively.
Since: 4.26
getChild
Arguments
| :: (HasCallStack, MonadIO m, IsBlurNode a) | |
| => a |
|
| -> m RenderNode | Returns: the blurred child node |
Retrieves the child GskRenderNode of the blur node.
getRadius
Arguments
| :: (HasCallStack, MonadIO m, IsBlurNode a) | |
| => a |
|
| -> m Float | Returns: the blur radius |
Deprecated: (Since version 4.26)Use blurNodeGetBlurRadius toget the separate horizontal and vertical radius.And to not get confused by this function multiplying the stddeviation by 2.
Retrieves the blur radius of the node.
The blur radius is 2x the standard deviation of the blur, which, uhm, don't ask.
new
Arguments
| :: (HasCallStack, MonadIO m, IsRenderNode a) | |
| => a |
|
| -> Float |
|
| -> m BlurNode | Returns: a new |
Creates a render node that blurs the child.
The blur radius should be set to 2x the standard deviation.