{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.WebGLContextAttributes (js_setAlpha, setAlpha, js_getAlpha, getAlpha, js_setDepth, setDepth, js_getDepth, getDepth, js_setStencil, setStencil, js_getStencil, getStencil, js_setAntialias, setAntialias, js_getAntialias, getAntialias, js_setPremultipliedAlpha, setPremultipliedAlpha, js_getPremultipliedAlpha, getPremultipliedAlpha, js_setPreserveDrawingBuffer, setPreserveDrawingBuffer, js_getPreserveDrawingBuffer, getPreserveDrawingBuffer, WebGLContextAttributes, castToWebGLContextAttributes, gTypeWebGLContextAttributes) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, fmap, Show, Read, Eq, Ord) import Data.Typeable (Typeable) import GHCJS.Types (JSRef(..), JSString) import GHCJS.Foreign (jsNull) import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..)) import GHCJS.Marshal (ToJSRef(..), FromJSRef(..)) import GHCJS.Marshal.Pure (PToJSRef(..), PFromJSRef(..)) import Control.Monad.IO.Class (MonadIO(..)) import Data.Int (Int64) import Data.Word (Word, Word64) import GHCJS.DOM.Types import Control.Applicative ((<$>)) import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName) import GHCJS.DOM.Enums foreign import javascript unsafe "$1[\"alpha\"] = $2;" js_setAlpha :: WebGLContextAttributes -> Bool -> IO () -- | setAlpha :: (MonadIO m) => WebGLContextAttributes -> Bool -> m () setAlpha self val = liftIO (js_setAlpha (self) val) foreign import javascript unsafe "($1[\"alpha\"] ? 1 : 0)" js_getAlpha :: WebGLContextAttributes -> IO Bool -- | getAlpha :: (MonadIO m) => WebGLContextAttributes -> m Bool getAlpha self = liftIO (js_getAlpha (self)) foreign import javascript unsafe "$1[\"depth\"] = $2;" js_setDepth :: WebGLContextAttributes -> Bool -> IO () -- | setDepth :: (MonadIO m) => WebGLContextAttributes -> Bool -> m () setDepth self val = liftIO (js_setDepth (self) val) foreign import javascript unsafe "($1[\"depth\"] ? 1 : 0)" js_getDepth :: WebGLContextAttributes -> IO Bool -- | getDepth :: (MonadIO m) => WebGLContextAttributes -> m Bool getDepth self = liftIO (js_getDepth (self)) foreign import javascript unsafe "$1[\"stencil\"] = $2;" js_setStencil :: WebGLContextAttributes -> Bool -> IO () -- | setStencil :: (MonadIO m) => WebGLContextAttributes -> Bool -> m () setStencil self val = liftIO (js_setStencil (self) val) foreign import javascript unsafe "($1[\"stencil\"] ? 1 : 0)" js_getStencil :: WebGLContextAttributes -> IO Bool -- | getStencil :: (MonadIO m) => WebGLContextAttributes -> m Bool getStencil self = liftIO (js_getStencil (self)) foreign import javascript unsafe "$1[\"antialias\"] = $2;" js_setAntialias :: WebGLContextAttributes -> Bool -> IO () -- | setAntialias :: (MonadIO m) => WebGLContextAttributes -> Bool -> m () setAntialias self val = liftIO (js_setAntialias (self) val) foreign import javascript unsafe "($1[\"antialias\"] ? 1 : 0)" js_getAntialias :: WebGLContextAttributes -> IO Bool -- | getAntialias :: (MonadIO m) => WebGLContextAttributes -> m Bool getAntialias self = liftIO (js_getAntialias (self)) foreign import javascript unsafe "$1[\"premultipliedAlpha\"] = $2;" js_setPremultipliedAlpha :: WebGLContextAttributes -> Bool -> IO () -- | setPremultipliedAlpha :: (MonadIO m) => WebGLContextAttributes -> Bool -> m () setPremultipliedAlpha self val = liftIO (js_setPremultipliedAlpha (self) val) foreign import javascript unsafe "($1[\"premultipliedAlpha\"] ? 1 : 0)" js_getPremultipliedAlpha :: WebGLContextAttributes -> IO Bool -- | getPremultipliedAlpha :: (MonadIO m) => WebGLContextAttributes -> m Bool getPremultipliedAlpha self = liftIO (js_getPremultipliedAlpha (self)) foreign import javascript unsafe "$1[\"preserveDrawingBuffer\"] = $2;" js_setPreserveDrawingBuffer :: WebGLContextAttributes -> Bool -> IO () -- | setPreserveDrawingBuffer :: (MonadIO m) => WebGLContextAttributes -> Bool -> m () setPreserveDrawingBuffer self val = liftIO (js_setPreserveDrawingBuffer (self) val) foreign import javascript unsafe "($1[\"preserveDrawingBuffer\"] ? 1 : 0)" js_getPreserveDrawingBuffer :: WebGLContextAttributes -> IO Bool -- | getPreserveDrawingBuffer :: (MonadIO m) => WebGLContextAttributes -> m Bool getPreserveDrawingBuffer self = liftIO (js_getPreserveDrawingBuffer (self))