ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.Web.Canvas

Synopsis

Documentation

data Context Source #

Instances
IsJSVal Context Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Context -> JSVal

data Canvas Source #

Instances
IsJSVal Canvas Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Canvas -> JSVal

data Image Source #

Instances
IsJSVal Image Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Image -> JSVal

data TextAlign Source #

Constructors

Start 
End 
Left 
Right 
Center 
Instances
Enum TextAlign Source # 
Instance details

Defined in JavaScript.Web.Canvas

Eq TextAlign Source # 
Instance details

Defined in JavaScript.Web.Canvas

Data TextAlign Source # 
Instance details

Defined in JavaScript.Web.Canvas

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TextAlign -> c TextAlign

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TextAlign

toConstr :: TextAlign -> Constr

dataTypeOf :: TextAlign -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TextAlign)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TextAlign)

gmapT :: (forall b. Data b => b -> b) -> TextAlign -> TextAlign

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TextAlign -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TextAlign -> r

gmapQ :: (forall d. Data d => d -> u) -> TextAlign -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> TextAlign -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TextAlign -> m TextAlign

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TextAlign -> m TextAlign

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TextAlign -> m TextAlign

Show TextAlign Source # 
Instance details

Defined in JavaScript.Web.Canvas

data TextBaseline Source #

Instances
Enum TextBaseline Source # 
Instance details

Defined in JavaScript.Web.Canvas

Eq TextBaseline Source # 
Instance details

Defined in JavaScript.Web.Canvas

Data TextBaseline Source # 
Instance details

Defined in JavaScript.Web.Canvas

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TextBaseline -> c TextBaseline

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TextBaseline

toConstr :: TextBaseline -> Constr

dataTypeOf :: TextBaseline -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TextBaseline)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TextBaseline)

gmapT :: (forall b. Data b => b -> b) -> TextBaseline -> TextBaseline

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TextBaseline -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TextBaseline -> r

gmapQ :: (forall d. Data d => d -> u) -> TextBaseline -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> TextBaseline -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TextBaseline -> m TextBaseline

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TextBaseline -> m TextBaseline

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TextBaseline -> m TextBaseline

Show TextBaseline Source # 
Instance details

Defined in JavaScript.Web.Canvas

data LineCap Source #

Instances
Enum LineCap Source # 
Instance details

Defined in JavaScript.Web.Canvas

Eq LineCap Source # 
Instance details

Defined in JavaScript.Web.Canvas

Methods

(==) :: LineCap -> LineCap -> Bool #

(/=) :: LineCap -> LineCap -> Bool #

Data LineCap Source # 
Instance details

Defined in JavaScript.Web.Canvas

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LineCap -> c LineCap

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LineCap

toConstr :: LineCap -> Constr

dataTypeOf :: LineCap -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LineCap)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LineCap)

gmapT :: (forall b. Data b => b -> b) -> LineCap -> LineCap

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LineCap -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LineCap -> r

gmapQ :: (forall d. Data d => d -> u) -> LineCap -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> LineCap -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> LineCap -> m LineCap

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LineCap -> m LineCap

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LineCap -> m LineCap

Show LineCap Source # 
Instance details

Defined in JavaScript.Web.Canvas

data Repeat Source #

Constructors

Repeat 
RepeatX 
RepeatY 
NoRepeat 
Instances
Enum Repeat Source # 
Instance details

Defined in JavaScript.Web.Canvas

Eq Repeat Source # 
Instance details

Defined in JavaScript.Web.Canvas

Methods

(==) :: Repeat -> Repeat -> Bool #

(/=) :: Repeat -> Repeat -> Bool #

Data Repeat Source # 
Instance details

Defined in JavaScript.Web.Canvas

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Repeat -> c Repeat

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Repeat

toConstr :: Repeat -> Constr

dataTypeOf :: Repeat -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Repeat)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Repeat)

gmapT :: (forall b. Data b => b -> b) -> Repeat -> Repeat

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Repeat -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Repeat -> r

gmapQ :: (forall d. Data d => d -> u) -> Repeat -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Repeat -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Repeat -> m Repeat

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Repeat -> m Repeat

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Repeat -> m Repeat

Ord Repeat Source # 
Instance details

Defined in JavaScript.Web.Canvas

Show Repeat Source # 
Instance details

Defined in JavaScript.Web.Canvas

data Gradient Source #

Instances
IsJSVal Gradient Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Gradient -> JSVal

data Pattern Source #

Instances
IsJSVal Pattern Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Pattern -> JSVal

arc :: Double -> Double -> Double -> Double -> Double -> Bool -> Context -> IO () Source #

fillStyle :: Int -> Int -> Int -> Double -> Context -> IO () Source #

strokeStyle :: Int -> Int -> Int -> Double -> Context -> IO () Source #

setLineDash :: JSArray -> Context -> IO () Source #

pass an array of numbers

drawImage :: Image -> Int -> Int -> Int -> Int -> Context -> IO () Source #