module JSDOM.Generated.IDBKeyRange
(only, lowerBound, upperBound, bound, getLower, getUpper,
getLowerOpen, getUpperOpen, IDBKeyRange, castToIDBKeyRange,
gTypeIDBKeyRange)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import Data.Typeable (Typeable)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, new, array)
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName)
import JSDOM.Enums
only ::
(MonadDOM m) => IDBKeyRange -> JSVal -> m (Maybe IDBKeyRange)
only self value
= liftDOM ((self ^. jsf "only" [toJSVal value]) >>= fromJSVal)
lowerBound ::
(MonadDOM m) =>
IDBKeyRange -> JSVal -> Bool -> m (Maybe IDBKeyRange)
lowerBound self lower open
= liftDOM
((self ^. jsf "lowerBound" [toJSVal lower, toJSVal open]) >>=
fromJSVal)
upperBound ::
(MonadDOM m) =>
IDBKeyRange -> JSVal -> Bool -> m (Maybe IDBKeyRange)
upperBound self upper open
= liftDOM
((self ^. jsf "upperBound" [toJSVal upper, toJSVal open]) >>=
fromJSVal)
bound ::
(MonadDOM m) =>
IDBKeyRange ->
JSVal -> JSVal -> Bool -> Bool -> m (Maybe IDBKeyRange)
bound self lower upper lowerOpen upperOpen
= liftDOM
((self ^. jsf "bound"
[toJSVal lower, toJSVal upper, toJSVal lowerOpen,
toJSVal upperOpen])
>>= fromJSVal)
getLower :: (MonadDOM m) => IDBKeyRange -> m JSVal
getLower self = liftDOM ((self ^. js "lower") >>= toJSVal)
getUpper :: (MonadDOM m) => IDBKeyRange -> m JSVal
getUpper self = liftDOM ((self ^. js "upper") >>= toJSVal)
getLowerOpen :: (MonadDOM m) => IDBKeyRange -> m Bool
getLowerOpen self
= liftDOM ((self ^. js "lowerOpen") >>= valToBool)
getUpperOpen :: (MonadDOM m) => IDBKeyRange -> m Bool
getUpperOpen self
= liftDOM ((self ^. js "upperOpen") >>= valToBool)