0 | module Web.Raw.Cssomview
3 | import Web.Internal.CssomviewPrim
4 | import Web.Internal.Types
13 | namespace CaretPosition
16 | offset : (obj : CaretPosition) -> JSIO Bits32
17 | offset a = primJS $
CaretPosition.prim__offset a
21 | offsetNode : (obj : CaretPosition) -> JSIO Node
22 | offsetNode a = primJS $
CaretPosition.prim__offsetNode a
26 | getClientRect : (obj : CaretPosition) -> JSIO (Maybe DOMRect)
27 | getClientRect a = tryJS "CaretPosition.getClientRect" $
28 | CaretPosition.prim__getClientRect a
32 | namespace MediaQueryList
35 | matches : (obj : MediaQueryList) -> JSIO Bool
36 | matches a = tryJS "MediaQueryList.matches" $
MediaQueryList.prim__matches a
40 | media : (obj : MediaQueryList) -> JSIO String
41 | media a = primJS $
MediaQueryList.prim__media a
45 | onchange : MediaQueryList -> Attribute False Maybe EventHandlerNonNull
46 | onchange v = fromNullablePrim
47 | "MediaQueryList.getonchange"
55 | (obj : MediaQueryList)
56 | -> (callback : Maybe EventListener)
58 | addListener a b = primJS $
MediaQueryList.prim__addListener a (toFFI b)
63 | (obj : MediaQueryList)
64 | -> (callback : Maybe EventListener)
66 | removeListener a b = primJS $
MediaQueryList.prim__removeListener a (toFFI b)
70 | namespace MediaQueryListEvent
74 | {auto 0 _ : JSType t2}
75 | -> {auto 0 _ : Elem MediaQueryListEventInit (Types t2)}
77 | -> (eventInitDict : Optional t2)
78 | -> JSIO MediaQueryListEvent
79 | new' a b = primJS $
MediaQueryListEvent.prim__new a (optUp b)
82 | new : (type : String) -> JSIO MediaQueryListEvent
83 | new a = primJS $
MediaQueryListEvent.prim__new a undef
87 | matches : (obj : MediaQueryListEvent) -> JSIO Bool
88 | matches a = tryJS "MediaQueryListEvent.matches" $
89 | MediaQueryListEvent.prim__matches a
93 | media : (obj : MediaQueryListEvent) -> JSIO String
94 | media a = primJS $
MediaQueryListEvent.prim__media a
101 | availHeight : (obj : Screen) -> JSIO Int32
102 | availHeight a = primJS $
Screen.prim__availHeight a
106 | availWidth : (obj : Screen) -> JSIO Int32
107 | availWidth a = primJS $
Screen.prim__availWidth a
111 | colorDepth : (obj : Screen) -> JSIO Bits32
112 | colorDepth a = primJS $
Screen.prim__colorDepth a
116 | height : (obj : Screen) -> JSIO Int32
117 | height a = primJS $
Screen.prim__height a
121 | pixelDepth : (obj : Screen) -> JSIO Bits32
122 | pixelDepth a = primJS $
Screen.prim__pixelDepth a
126 | width : (obj : Screen) -> JSIO Int32
127 | width a = primJS $
Screen.prim__width a
131 | namespace VisualViewport
134 | height : (obj : VisualViewport) -> JSIO Double
135 | height a = primJS $
VisualViewport.prim__height a
139 | offsetLeft : (obj : VisualViewport) -> JSIO Double
140 | offsetLeft a = primJS $
VisualViewport.prim__offsetLeft a
144 | offsetTop : (obj : VisualViewport) -> JSIO Double
145 | offsetTop a = primJS $
VisualViewport.prim__offsetTop a
149 | onresize : VisualViewport -> Attribute False Maybe EventHandlerNonNull
150 | onresize v = fromNullablePrim
151 | "VisualViewport.getonresize"
158 | onscroll : VisualViewport -> Attribute False Maybe EventHandlerNonNull
159 | onscroll v = fromNullablePrim
160 | "VisualViewport.getonscroll"
167 | onscrollend : VisualViewport -> Attribute False Maybe EventHandlerNonNull
168 | onscrollend v = fromNullablePrim
169 | "VisualViewport.getonscrollend"
171 | prim__setOnscrollend
176 | pageLeft : (obj : VisualViewport) -> JSIO Double
177 | pageLeft a = primJS $
VisualViewport.prim__pageLeft a
181 | pageTop : (obj : VisualViewport) -> JSIO Double
182 | pageTop a = primJS $
VisualViewport.prim__pageTop a
186 | scale : (obj : VisualViewport) -> JSIO Double
187 | scale a = primJS $
VisualViewport.prim__scale a
191 | width : (obj : VisualViewport) -> JSIO Double
192 | width a = primJS $
VisualViewport.prim__width a
201 | namespace GeometryUtils
204 | convertPointFromNode' :
205 | {auto 0 _ : JSType t1}
206 | -> {auto 0 _ : JSType t2}
207 | -> {auto 0 _ : JSType t4}
208 | -> {auto 0 _ : Elem GeometryUtils (Types t1)}
209 | -> {auto 0 _ : Elem DOMPointInit (Types t2)}
210 | -> {auto 0 _ : Elem ConvertCoordinateOptions (Types t4)}
213 | -> (from : HSum [Text, Element, CSSPseudoElement, Document])
214 | -> (options : Optional t4)
216 | convertPointFromNode' a b c d = primJS $
217 | GeometryUtils.prim__convertPointFromNode (up a) (up b) (toFFI c) (optUp d)
220 | convertPointFromNode :
221 | {auto 0 _ : JSType t1}
222 | -> {auto 0 _ : JSType t2}
223 | -> {auto 0 _ : Elem GeometryUtils (Types t1)}
224 | -> {auto 0 _ : Elem DOMPointInit (Types t2)}
227 | -> (from : HSum [Text, Element, CSSPseudoElement, Document])
229 | convertPointFromNode a b c = primJS $
230 | GeometryUtils.prim__convertPointFromNode (up a) (up b) (toFFI c) undef
234 | convertQuadFromNode' :
235 | {auto 0 _ : JSType t1}
236 | -> {auto 0 _ : JSType t2}
237 | -> {auto 0 _ : JSType t4}
238 | -> {auto 0 _ : Elem GeometryUtils (Types t1)}
239 | -> {auto 0 _ : Elem DOMQuadInit (Types t2)}
240 | -> {auto 0 _ : Elem ConvertCoordinateOptions (Types t4)}
243 | -> (from : HSum [Text, Element, CSSPseudoElement, Document])
244 | -> (options : Optional t4)
246 | convertQuadFromNode' a b c d = primJS $
247 | GeometryUtils.prim__convertQuadFromNode (up a) (up b) (toFFI c) (optUp d)
250 | convertQuadFromNode :
251 | {auto 0 _ : JSType t1}
252 | -> {auto 0 _ : JSType t2}
253 | -> {auto 0 _ : Elem GeometryUtils (Types t1)}
254 | -> {auto 0 _ : Elem DOMQuadInit (Types t2)}
257 | -> (from : HSum [Text, Element, CSSPseudoElement, Document])
259 | convertQuadFromNode a b c = primJS $
260 | GeometryUtils.prim__convertQuadFromNode (up a) (up b) (toFFI c) undef
264 | convertRectFromNode' :
265 | {auto 0 _ : JSType t1}
266 | -> {auto 0 _ : JSType t2}
267 | -> {auto 0 _ : JSType t4}
268 | -> {auto 0 _ : Elem GeometryUtils (Types t1)}
269 | -> {auto 0 _ : Elem DOMRectReadOnly (Types t2)}
270 | -> {auto 0 _ : Elem ConvertCoordinateOptions (Types t4)}
273 | -> (from : HSum [Text, Element, CSSPseudoElement, Document])
274 | -> (options : Optional t4)
276 | convertRectFromNode' a b c d = primJS $
277 | GeometryUtils.prim__convertRectFromNode (up a) (up b) (toFFI c) (optUp d)
280 | convertRectFromNode :
281 | {auto 0 _ : JSType t1}
282 | -> {auto 0 _ : JSType t2}
283 | -> {auto 0 _ : Elem GeometryUtils (Types t1)}
284 | -> {auto 0 _ : Elem DOMRectReadOnly (Types t2)}
287 | -> (from : HSum [Text, Element, CSSPseudoElement, Document])
289 | convertRectFromNode a b c = primJS $
290 | GeometryUtils.prim__convertRectFromNode (up a) (up b) (toFFI c) undef
295 | {auto 0 _ : JSType t1}
296 | -> {auto 0 _ : JSType t2}
297 | -> {auto 0 _ : Elem GeometryUtils (Types t1)}
298 | -> {auto 0 _ : Elem BoxQuadOptions (Types t2)}
300 | -> (options : Optional t2)
301 | -> JSIO (Array DOMQuad)
302 | getBoxQuads' a b = primJS $
GeometryUtils.prim__getBoxQuads (up a) (optUp b)
306 | {auto 0 _ : JSType t1}
307 | -> {auto 0 _ : Elem GeometryUtils (Types t1)}
309 | -> JSIO (Array DOMQuad)
310 | getBoxQuads a = primJS $
GeometryUtils.prim__getBoxQuads (up a) undef
319 | namespace BoxQuadOptions
323 | (box : Optional CSSBoxType)
324 | -> (relativeTo : Optional
325 | (HSum [Text, Element, CSSPseudoElement, Document]))
326 | -> JSIO BoxQuadOptions
327 | new' a b = primJS $
BoxQuadOptions.prim__new (toFFI a) (toFFI b)
330 | new : JSIO BoxQuadOptions
331 | new = primJS $
BoxQuadOptions.prim__new undef undef
336 | {auto 0 _ : JSType t}
337 | -> {auto 0 _ : Elem BoxQuadOptions (Types t)}
339 | -> Attribute False Optional CSSBoxType
340 | box v = fromUndefOrPrimNoDefault
341 | "BoxQuadOptions.getbox"
344 | (v :> BoxQuadOptions)
349 | {auto 0 _ : JSType t}
350 | -> {auto 0 _ : Elem BoxQuadOptions (Types t)}
352 | -> Attribute False Optional (HSum
353 | [Text, Element, CSSPseudoElement, Document])
354 | relativeTo v = fromUndefOrPrimNoDefault
355 | "BoxQuadOptions.getrelativeTo"
357 | prim__setRelativeTo
358 | (v :> BoxQuadOptions)
362 | namespace CheckVisibilityOptions
366 | (checkOpacity : Optional Bool)
367 | -> (checkVisibilityCSS : Optional Bool)
368 | -> JSIO CheckVisibilityOptions
369 | new' a b = primJS $
CheckVisibilityOptions.prim__new (toFFI a) (toFFI b)
372 | new : JSIO CheckVisibilityOptions
373 | new = primJS $
CheckVisibilityOptions.prim__new undef undef
378 | {auto 0 _ : JSType t}
379 | -> {auto 0 _ : Elem CheckVisibilityOptions (Types t)}
381 | -> Attribute True Optional Bool
382 | checkOpacity v = fromUndefOrPrim
383 | "CheckVisibilityOptions.getcheckOpacity"
385 | prim__setCheckOpacity
387 | (v :> CheckVisibilityOptions)
391 | checkVisibilityCSS :
392 | {auto 0 _ : JSType t}
393 | -> {auto 0 _ : Elem CheckVisibilityOptions (Types t)}
395 | -> Attribute True Optional Bool
396 | checkVisibilityCSS v = fromUndefOrPrim
397 | "CheckVisibilityOptions.getcheckVisibilityCSS"
398 | prim__checkVisibilityCSS
399 | prim__setCheckVisibilityCSS
401 | (v :> CheckVisibilityOptions)
405 | namespace ConvertCoordinateOptions
409 | (fromBox : Optional CSSBoxType)
410 | -> (toBox : Optional CSSBoxType)
411 | -> JSIO ConvertCoordinateOptions
412 | new' a b = primJS $
ConvertCoordinateOptions.prim__new (toFFI a) (toFFI b)
415 | new : JSIO ConvertCoordinateOptions
416 | new = primJS $
ConvertCoordinateOptions.prim__new undef undef
421 | {auto 0 _ : JSType t}
422 | -> {auto 0 _ : Elem ConvertCoordinateOptions (Types t)}
424 | -> Attribute False Optional CSSBoxType
425 | fromBox v = fromUndefOrPrimNoDefault
426 | "ConvertCoordinateOptions.getfromBox"
429 | (v :> ConvertCoordinateOptions)
434 | {auto 0 _ : JSType t}
435 | -> {auto 0 _ : Elem ConvertCoordinateOptions (Types t)}
437 | -> Attribute False Optional CSSBoxType
438 | toBox v = fromUndefOrPrimNoDefault
439 | "ConvertCoordinateOptions.gettoBox"
442 | (v :> ConvertCoordinateOptions)
446 | namespace MediaQueryListEventInit
450 | (media : Optional String)
451 | -> (matches : Optional Bool)
452 | -> JSIO MediaQueryListEventInit
453 | new' a b = primJS $
MediaQueryListEventInit.prim__new (toFFI a) (toFFI b)
456 | new : JSIO MediaQueryListEventInit
457 | new = primJS $
MediaQueryListEventInit.prim__new undef undef
462 | {auto 0 _ : JSType t}
463 | -> {auto 0 _ : Elem MediaQueryListEventInit (Types t)}
465 | -> Attribute True Optional Bool
466 | matches v = fromUndefOrPrim
467 | "MediaQueryListEventInit.getmatches"
471 | (v :> MediaQueryListEventInit)
476 | {auto 0 _ : JSType t}
477 | -> {auto 0 _ : Elem MediaQueryListEventInit (Types t)}
479 | -> Attribute True Optional String
480 | media v = fromUndefOrPrim
481 | "MediaQueryListEventInit.getmedia"
485 | (v :> MediaQueryListEventInit)
489 | namespace ScrollIntoViewOptions
493 | (block : Optional ScrollLogicalPosition)
494 | -> (inline : Optional ScrollLogicalPosition)
495 | -> JSIO ScrollIntoViewOptions
496 | new' a b = primJS $
ScrollIntoViewOptions.prim__new (toFFI a) (toFFI b)
499 | new : JSIO ScrollIntoViewOptions
500 | new = primJS $
ScrollIntoViewOptions.prim__new undef undef
505 | {auto 0 _ : JSType t}
506 | -> {auto 0 _ : Elem ScrollIntoViewOptions (Types t)}
508 | -> Attribute False Optional ScrollLogicalPosition
509 | block v = fromUndefOrPrimNoDefault
510 | "ScrollIntoViewOptions.getblock"
513 | (v :> ScrollIntoViewOptions)
518 | {auto 0 _ : JSType t}
519 | -> {auto 0 _ : Elem ScrollIntoViewOptions (Types t)}
521 | -> Attribute False Optional ScrollLogicalPosition
522 | inline v = fromUndefOrPrimNoDefault
523 | "ScrollIntoViewOptions.getinline"
526 | (v :> ScrollIntoViewOptions)
530 | namespace ScrollOptions
533 | new' : (behavior : Optional ScrollBehavior) -> JSIO ScrollOptions
534 | new' a = primJS $
ScrollOptions.prim__new (toFFI a)
537 | new : JSIO ScrollOptions
538 | new = primJS $
ScrollOptions.prim__new undef
543 | {auto 0 _ : JSType t}
544 | -> {auto 0 _ : Elem ScrollOptions (Types t)}
546 | -> Attribute False Optional ScrollBehavior
547 | behavior v = fromUndefOrPrimNoDefault
548 | "ScrollOptions.getbehavior"
551 | (v :> ScrollOptions)
555 | namespace ScrollToOptions
559 | (left : Optional Double)
560 | -> (top : Optional Double)
561 | -> JSIO ScrollToOptions
562 | new' a b = primJS $
ScrollToOptions.prim__new (toFFI a) (toFFI b)
565 | new : JSIO ScrollToOptions
566 | new = primJS $
ScrollToOptions.prim__new undef undef
571 | {auto 0 _ : JSType t}
572 | -> {auto 0 _ : Elem ScrollToOptions (Types t)}
574 | -> Attribute False Optional Double
575 | left v = fromUndefOrPrimNoDefault
576 | "ScrollToOptions.getleft"
579 | (v :> ScrollToOptions)
584 | {auto 0 _ : JSType t}
585 | -> {auto 0 _ : Elem ScrollToOptions (Types t)}
587 | -> Attribute False Optional Double
588 | top v = fromUndefOrPrimNoDefault
589 | "ScrollToOptions.gettop"
592 | (v :> ScrollToOptions)