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

GI.Gsk.Objects.OpacityNode

Description

A render node controlling the opacity of its single child node.

Synopsis

Exported types

newtype OpacityNode Source #

Memory-managed wrapper type.

Constructors

OpacityNode (ManagedPtr OpacityNode) 

Instances

Instances details
Eq OpacityNode Source # 
Instance details

Defined in GI.Gsk.Objects.OpacityNode

BoxedPtr OpacityNode Source # 
Instance details

Defined in GI.Gsk.Objects.OpacityNode

ManagedPtrNewtype OpacityNode Source # 
Instance details

Defined in GI.Gsk.Objects.OpacityNode

Methods

toManagedPtr :: OpacityNode -> ManagedPtr OpacityNode

TypedObject OpacityNode Source # 
Instance details

Defined in GI.Gsk.Objects.OpacityNode

Methods

glibType :: IO GType

HasParentTypes OpacityNode Source # 
Instance details

Defined in GI.Gsk.Objects.OpacityNode

type ParentTypes OpacityNode Source # 
Instance details

Defined in GI.Gsk.Objects.OpacityNode

type ParentTypes OpacityNode = '[RenderNode]

class (BoxedPtr o, TypedObject o, IsDescendantOf OpacityNode o) => IsOpacityNode o Source #

Type class for types which can be safely cast to OpacityNode, for instance with toOpacityNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf OpacityNode o) => IsOpacityNode o Source # 
Instance details

Defined in GI.Gsk.Objects.OpacityNode

toOpacityNode :: (MonadIO m, IsOpacityNode o) => o -> m OpacityNode Source #

Cast to OpacityNode, 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

getBounds, getChild, getNodeType, getOpacity.

Setters

None.

getChild

opacityNodeGetChild Source #

Arguments

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

node: a GskRenderNode for an opacity

-> m RenderNode

Returns: The child that is getting opacityed

Gets the child node that is getting opacityed by the given node.

getOpacity

opacityNodeGetOpacity Source #

Arguments

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

node: a GskRenderNode for an opacity

-> m Float

Returns: the opacity factor

Gets the transparency factor for an opacity node.

new

opacityNodeNew Source #

Arguments

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

child: The node to draw

-> Float

opacity: The opacity to apply

-> m OpacityNode

Returns: A new GskRenderNode

Creates a GskRenderNode that will drawn the child with reduced opacity.