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.StrokeNode
Description
A render node that will fill the area determined by stroking the the given
[structgsk
.Path] using the [structgsk
.Stroke] attributes.
Since: 4.14
Synopsis
- newtype StrokeNode = StrokeNode (ManagedPtr StrokeNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf StrokeNode o) => IsStrokeNode o
- toStrokeNode :: (MonadIO m, IsStrokeNode o) => o -> m StrokeNode
- strokeNodeGetChild :: (HasCallStack, MonadIO m, IsStrokeNode a) => a -> m RenderNode
- strokeNodeGetPath :: (HasCallStack, MonadIO m, IsStrokeNode a) => a -> m Path
- strokeNodeGetStroke :: (HasCallStack, MonadIO m, IsStrokeNode a) => a -> m Stroke
- strokeNodeNew :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> Path -> Stroke -> m StrokeNode
Exported types
newtype StrokeNode Source #
Memory-managed wrapper type.
Constructors
StrokeNode (ManagedPtr StrokeNode) |
Instances
Eq StrokeNode Source # | |
Defined in GI.Gsk.Objects.StrokeNode | |
BoxedPtr StrokeNode Source # | |
Defined in GI.Gsk.Objects.StrokeNode | |
ManagedPtrNewtype StrokeNode Source # | |
Defined in GI.Gsk.Objects.StrokeNode Methods toManagedPtr :: StrokeNode -> ManagedPtr StrokeNode | |
TypedObject StrokeNode Source # | |
Defined in GI.Gsk.Objects.StrokeNode | |
HasParentTypes StrokeNode Source # | |
Defined in GI.Gsk.Objects.StrokeNode | |
type ParentTypes StrokeNode Source # | |
Defined in GI.Gsk.Objects.StrokeNode |
class (BoxedPtr o, TypedObject o, IsDescendantOf StrokeNode o) => IsStrokeNode o Source #
Type class for types which can be safely cast to StrokeNode
, for instance with toStrokeNode
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf StrokeNode o) => IsStrokeNode o Source # | |
Defined in GI.Gsk.Objects.StrokeNode |
toStrokeNode :: (MonadIO m, IsStrokeNode o) => o -> m StrokeNode Source #
Cast to StrokeNode
, 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, getPath, getStroke.
Setters
None.
getChild
Arguments
:: (HasCallStack, MonadIO m, IsStrokeNode a) | |
=> a |
|
-> m RenderNode | Returns: The child that is getting drawn |
Gets the child node that is getting drawn by the given node
.
Since: 4.14
getPath
Arguments
:: (HasCallStack, MonadIO m, IsStrokeNode a) | |
=> a |
|
-> m Path | Returns: a |
Retrieves the path that will be stroked with the contents of
the node
.
Since: 4.14
getStroke
Arguments
:: (HasCallStack, MonadIO m, IsStrokeNode a) | |
=> a |
|
-> m Stroke | Returns: a |
Retrieves the stroke attributes used in this node
.
Since: 4.14
new
Arguments
:: (HasCallStack, MonadIO m, IsRenderNode a) | |
=> a |
|
-> Path |
|
-> Stroke |
|
-> m StrokeNode | Returns: A new |
Creates a RenderNode
that will fill the outline generated by stroking
the given path
using the attributes defined in stroke
.
The area is filled with child
.
Since: 4.14