gi-gsk-4.0.9: Gsk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gsk.Objects.BlurNode

Description

A render node applying a blur effect to its single child.

Synopsis

Exported types

newtype BlurNode Source #

Memory-managed wrapper type.

Constructors

BlurNode (ManagedPtr BlurNode) 

Instances

Instances details
Eq BlurNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlurNode

Methods

(==) :: BlurNode -> BlurNode -> Bool

(/=) :: BlurNode -> BlurNode -> Bool

BoxedPtr BlurNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlurNode

ManagedPtrNewtype BlurNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlurNode

TypedObject BlurNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlurNode

Methods

glibType :: IO GType #

HasParentTypes BlurNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlurNode

type ParentTypes BlurNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlurNode

type ParentTypes BlurNode = '[RenderNode]

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

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf BlurNode o) => IsBlurNode o Source # 
Instance details

Defined in GI.Gsk.Objects.BlurNode

toBlurNode :: (MonadIO m, IsBlurNode o) => o -> m BlurNode Source #

Cast to BlurNode, for types for which this is known to be safe. For general casts, use castTo.

Methods

Click to display all available methods, including inherited ones

Expand

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

node: a blur GskRenderNode

-> 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

blurNodeGetChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsBlurNode a) 
=> a

node: a blur GskRenderNode

-> m RenderNode

Returns: the blurred child node

Retrieves the child GskRenderNode of the blur node.

getRadius

blurNodeGetRadius Source #

Arguments

:: (HasCallStack, MonadIO m, IsBlurNode a) 
=> a

node: a blur GskRenderNode

-> 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

blurNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsRenderNode a) 
=> a

child: the child node to blur

-> Float

radius: the blur radius. Must be positive

-> m BlurNode

Returns: a new GskRenderNode

Creates a render node that blurs the child.

The blur radius should be set to 2x the standard deviation.