| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Gsk.Objects.OpacityNode
Description
A render node controlling the opacity of its single child node.
Synopsis
- newtype OpacityNode = OpacityNode (ManagedPtr OpacityNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf OpacityNode o) => IsOpacityNode o
- toOpacityNode :: (MonadIO m, IsOpacityNode o) => o -> m OpacityNode
- opacityNodeGetChild :: (HasCallStack, MonadIO m, IsOpacityNode a) => a -> m RenderNode
- opacityNodeGetOpacity :: (HasCallStack, MonadIO m, IsOpacityNode a) => a -> m Float
- opacityNodeNew :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> Float -> m OpacityNode
Exported types
newtype OpacityNode Source #
Memory-managed wrapper type.
Constructors
| OpacityNode (ManagedPtr OpacityNode) |
Instances
| Eq OpacityNode Source # | |
Defined in GI.Gsk.Objects.OpacityNode | |
| BoxedPtr OpacityNode Source # | |
Defined in GI.Gsk.Objects.OpacityNode | |
| ManagedPtrNewtype OpacityNode Source # | |
Defined in GI.Gsk.Objects.OpacityNode Methods toManagedPtr :: OpacityNode -> ManagedPtr OpacityNode | |
| TypedObject OpacityNode Source # | |
Defined in GI.Gsk.Objects.OpacityNode | |
| HasParentTypes OpacityNode Source # | |
Defined in GI.Gsk.Objects.OpacityNode | |
| type ParentTypes OpacityNode Source # | |
Defined in GI.Gsk.Objects.OpacityNode | |
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
| (BoxedPtr o, TypedObject o, IsDescendantOf OpacityNode o) => IsOpacityNode o Source # | |
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
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBounds, getChild, getNodeType, getOpacity.
Setters
None.
getChild
Arguments
| :: (HasCallStack, MonadIO m, IsOpacityNode a) | |
| => a |
|
| -> 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 |
|
| -> m Float | Returns: the opacity factor |
Gets the transparency factor for an opacity node.
new
Arguments
| :: (HasCallStack, MonadIO m, IsRenderNode a) | |
| => a |
|
| -> Float |
|
| -> m OpacityNode | Returns: A new |
Creates a GskRenderNode that will drawn the child with reduced
opacity.