gi-gsk-4.0.8: 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.ColorNode

Description

A render node for a solid color.

Synopsis

Exported types

newtype ColorNode Source #

Memory-managed wrapper type.

Constructors

ColorNode (ManagedPtr ColorNode) 

Instances

Instances details
Eq ColorNode Source # 
Instance details

Defined in GI.Gsk.Objects.ColorNode

BoxedPtr ColorNode Source # 
Instance details

Defined in GI.Gsk.Objects.ColorNode

ManagedPtrNewtype ColorNode Source # 
Instance details

Defined in GI.Gsk.Objects.ColorNode

Methods

toManagedPtr :: ColorNode -> ManagedPtr ColorNode

TypedObject ColorNode Source # 
Instance details

Defined in GI.Gsk.Objects.ColorNode

Methods

glibType :: IO GType

HasParentTypes ColorNode Source # 
Instance details

Defined in GI.Gsk.Objects.ColorNode

type ParentTypes ColorNode Source # 
Instance details

Defined in GI.Gsk.Objects.ColorNode

type ParentTypes ColorNode = '[RenderNode]

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

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf ColorNode o) => IsColorNode o Source # 
Instance details

Defined in GI.Gsk.Objects.ColorNode

toColorNode :: (MonadIO m, IsColorNode o) => o -> m ColorNode Source #

Cast to ColorNode, 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, getColor, getNodeType.

Setters

None.

getColor

colorNodeGetColor Source #

Arguments

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

node: a GskRenderNode

-> m RGBA

Returns: the color of the node

Retrieves the color of the given node.

new

colorNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RGBA

rgba: a GdkRGBA specifying a color

-> Rect

bounds: the rectangle to render the color into

-> m ColorNode

Returns: A new GskRenderNode

Creates a GskRenderNode that will render the color specified by rgba into the area given by bounds.