eventloop-0.2.1.1: A different take on an IO system. Based on Amanda's IO loop, this eventloop takes a function that maps input events to output events. It can easily be extended by modules that represent IO devices or join multiple modules together.

Safe HaskellNone
LanguageHaskell2010

Eventloop.Module.Websocket.Canvas

Synopsis

Documentation

type ScreenAngle Source

Arguments

 = ScreenMetric

In degrees

type CanvasPositionLeft = CSSUnit Source

Reserved type words Type: t | Opcode Arguments: a | List of arguments for that data type Route: r | Either s for system or u for user Object: o | The object that is beneath

Example: {r: s, o: {SystemMeasuredText object}}

SystemMeasuredText object: {t:2102, a:[CanvasId, CanvasText object, ScreenDimensions]}

Opcode: 0200

data PathFill Source

Constructors

PathFill PathRenderFillStyle

Opcode: 0601

PathNoFill

Opcode: 0602

data CanvasImage Source

Opcode: 0800

Constructors

CanvasElement CanvasId ScreenPoint ScreenDimensions

Opcode: 0801

ImageData ScreenDimensions [ScreenPixel]

Opcode: 0802 [ScreenPixel] should be as long as width * height * 4

data PatternRepetition Source

Opcode: 0900

Constructors

Repeat

Opcode: 0901

RepeatX

Opcode: 0902

RepeatY

Opcode: 0903

NoRepeat

Opcode: 0904

data CanvasGradientType Source

Opcode: 1000

Constructors

RadialGradient ScreenCircle ScreenCircle

Opcode: 1001 First circle = inner circle, Second circle is enclosing circle

LinearGradient ScreenPoint ScreenPoint

Opcode: 1002

data Font Source

Opcode: 1300

Constructors

Font FontFamily FontSize

Opcode: 1301

data Alignment Source

Opcode: 1500

Constructors

AlignLeft

Opcode: 1501

AlignRight

Opcode: 1502

AlignCenter

Opcode: 1503

AlignStart

Opcode: 1504

AlignEnd

Opcode: 1505

type TransformUnit = Float Source

Opcode: 1600

data CSSUnit Source

Opcode: 1800

Constructors

CSSPixels Int

Opcode: 1801

CSSPercentage Int

Opcode: 1802

data ClearPart Source

Opcode: 1900

Constructors

ClearRectangle ScreenPoint ScreenDimensions

Opcode: 1901

ClearCanvas

Opcode: 1902