module JSDOM.Generated.WebKitNamedFlow
(getRegionsByContent, getRegionsByContent_, getRegions,
getRegions_, getContent, getContent_, getName, getOverset,
getFirstEmptyRegionIndex, WebKitNamedFlow(..),
gTypeWebKitNamedFlow)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
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
getRegionsByContent ::
(MonadDOM m, IsNode contentNode) =>
WebKitNamedFlow -> Maybe contentNode -> m NodeList
getRegionsByContent self contentNode
= liftDOM
((self ^. jsf "getRegionsByContent" [toJSVal contentNode]) >>=
fromJSValUnchecked)
getRegionsByContent_ ::
(MonadDOM m, IsNode contentNode) =>
WebKitNamedFlow -> Maybe contentNode -> m ()
getRegionsByContent_ self contentNode
= liftDOM
(void (self ^. jsf "getRegionsByContent" [toJSVal contentNode]))
getRegions :: (MonadDOM m) => WebKitNamedFlow -> m NodeList
getRegions self
= liftDOM ((self ^. jsf "getRegions" ()) >>= fromJSValUnchecked)
getRegions_ :: (MonadDOM m) => WebKitNamedFlow -> m ()
getRegions_ self = liftDOM (void (self ^. jsf "getRegions" ()))
getContent :: (MonadDOM m) => WebKitNamedFlow -> m NodeList
getContent self
= liftDOM ((self ^. jsf "getContent" ()) >>= fromJSValUnchecked)
getContent_ :: (MonadDOM m) => WebKitNamedFlow -> m ()
getContent_ self = liftDOM (void (self ^. jsf "getContent" ()))
getName ::
(MonadDOM m, FromJSString result) => WebKitNamedFlow -> m result
getName self = liftDOM ((self ^. js "name") >>= fromJSValUnchecked)
getOverset :: (MonadDOM m) => WebKitNamedFlow -> m Bool
getOverset self = liftDOM ((self ^. js "overset") >>= valToBool)
getFirstEmptyRegionIndex ::
(MonadDOM m) => WebKitNamedFlow -> m Int
getFirstEmptyRegionIndex self
= liftDOM
(round <$> ((self ^. js "firstEmptyRegionIndex") >>= valToNumber))