curves-1.1.0.1: Library for drawing curve based images.

Safe HaskellSafe-Inferred

Graphics.Curves.Attribute

Description

Write-only attributes.

Synopsis

Documentation

data Assignment a Source

Representation of an attribute update for an element of type a.

Constructors

forall f b . HasAttribute f a => (f b) := b

Set an attribute

forall f b . HasAttribute f a => (f b) :~ (b -> b)

Modify an attribute

class HasAttribute f a whereSource

The type constructor f is such that f b is the type of names of attributes of a of type b.

Methods

modifyAttribute :: f b -> (b -> b) -> a -> aSource

setAttribute :: f b -> b -> a -> aSource

with :: a -> [Assignment a] -> aSource

Apply a sequence of attribute assignments to an object (applied left-to-right).