eventloop-0.8.1.2: 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

data CanvasIn Source

Opcode: 0100

Constructors

MeasuredText CanvasText ScreenDimensions

Opcode: 0101

data CanvasOut 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 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. Each quad is red,green,blue,alpha

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

type TransformUnit = Float Source

Opcode: 1600

type CSSLeftOffset = CSSUnit Source

Opcode: 2200

data CSSBindPoint Source

Opcode: 2300

Constructors

CSSFromCenter

Opcode: 2301

CSSFromDefault

Opcode: 2302 Usually this is the top left corner of the element

data CSSUnit Source

Opcode: 1800

Constructors

CSSPixels Int

Opcode: 1801

CSSPercentage Int

Opcode: 1802