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 |
A render node for a solid color.
Synopsis
- newtype ColorNode = ColorNode (ManagedPtr ColorNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ColorNode o) => IsColorNode o
- toColorNode :: (MonadIO m, IsColorNode o) => o -> m ColorNode
- colorNodeGetColor :: (HasCallStack, MonadIO m, IsColorNode a) => a -> m RGBA
- colorNodeNew :: (HasCallStack, MonadIO m) => RGBA -> Rect -> m ColorNode
Exported types
Memory-managed wrapper type.
Instances
Eq ColorNode Source # | |
BoxedPtr ColorNode Source # | |
Defined in GI.Gsk.Objects.ColorNode boxedPtrCopy :: ColorNode -> IO ColorNode boxedPtrFree :: ColorNode -> IO () | |
ManagedPtrNewtype ColorNode Source # | |
Defined in GI.Gsk.Objects.ColorNode toManagedPtr :: ColorNode -> ManagedPtr ColorNode | |
TypedObject ColorNode Source # | |
Defined in GI.Gsk.Objects.ColorNode | |
HasParentTypes ColorNode Source # | |
Defined in GI.Gsk.Objects.ColorNode | |
type ParentTypes ColorNode Source # | |
Defined in GI.Gsk.Objects.ColorNode |
class (BoxedPtr o, TypedObject o, IsDescendantOf ColorNode o) => IsColorNode o Source #
Type class for types which can be safely cast to ColorNode
, for instance with toColorNode
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf ColorNode o) => IsColorNode o Source # | |
Defined in GI.Gsk.Objects.ColorNode |
toColorNode :: (MonadIO m, IsColorNode o) => o -> m ColorNode Source #
Methods
Click to display all available methods, including inherited ones
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBounds, getColor, getNodeType.
Setters
None.
getColor
:: (HasCallStack, MonadIO m, IsColorNode a) | |
=> a |
|
-> m RGBA | Returns: the color of the node |
Retrieves the color of the given node
.
new
:: (HasCallStack, MonadIO m) | |
=> RGBA |
|
-> Rect |
|
-> m ColorNode | Returns: A new |
Creates a GskRenderNode
that will render the color specified by rgba
into
the area given by bounds
.