{-# LANGUAGE OverloadedStrings #-}
module Miso.Native.X.Element.BlurView.Property
(
androidCaptureTarget_
, blurEffect_
, blurRadius_
, blurSampling_
, enableAutoBlur_
, experimentalUpdateBlurRadius_
, glassInteractive_
, glassStyle_
, glassTintColor_
, spacing_
, BlurEffect (..)
, GlassStyle (..)
) where
import Miso.JSON (ToJSON(..))
import Miso.String (MisoString)
import Miso.Types (Attribute)
import Miso.Property
data BlurEffect
= BlurLight
|
| BlurDark
| BlurGlass
| BlurGlassContainer
deriving (Int -> BlurEffect -> ShowS
[BlurEffect] -> ShowS
BlurEffect -> String
(Int -> BlurEffect -> ShowS)
-> (BlurEffect -> String)
-> ([BlurEffect] -> ShowS)
-> Show BlurEffect
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BlurEffect -> ShowS
showsPrec :: Int -> BlurEffect -> ShowS
$cshow :: BlurEffect -> String
show :: BlurEffect -> String
$cshowList :: [BlurEffect] -> ShowS
showList :: [BlurEffect] -> ShowS
Show, BlurEffect -> BlurEffect -> Bool
(BlurEffect -> BlurEffect -> Bool)
-> (BlurEffect -> BlurEffect -> Bool) -> Eq BlurEffect
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BlurEffect -> BlurEffect -> Bool
== :: BlurEffect -> BlurEffect -> Bool
$c/= :: BlurEffect -> BlurEffect -> Bool
/= :: BlurEffect -> BlurEffect -> Bool
Eq)
instance ToJSON BlurEffect where
toJSON :: BlurEffect -> Value
toJSON BlurEffect
BlurLight = Value
"light"
toJSON BlurEffect
BlurExtraLight = Value
"extra-light"
toJSON BlurEffect
BlurDark = Value
"dark"
toJSON BlurEffect
BlurGlass = Value
"glass"
toJSON BlurEffect
BlurGlassContainer = Value
"glass-container"
data GlassStyle
= GlassClear
| GlassRegular
deriving (Int -> GlassStyle -> ShowS
[GlassStyle] -> ShowS
GlassStyle -> String
(Int -> GlassStyle -> ShowS)
-> (GlassStyle -> String)
-> ([GlassStyle] -> ShowS)
-> Show GlassStyle
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GlassStyle -> ShowS
showsPrec :: Int -> GlassStyle -> ShowS
$cshow :: GlassStyle -> String
show :: GlassStyle -> String
$cshowList :: [GlassStyle] -> ShowS
showList :: [GlassStyle] -> ShowS
Show, GlassStyle -> GlassStyle -> Bool
(GlassStyle -> GlassStyle -> Bool)
-> (GlassStyle -> GlassStyle -> Bool) -> Eq GlassStyle
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GlassStyle -> GlassStyle -> Bool
== :: GlassStyle -> GlassStyle -> Bool
$c/= :: GlassStyle -> GlassStyle -> Bool
/= :: GlassStyle -> GlassStyle -> Bool
Eq)
instance ToJSON GlassStyle where
toJSON :: GlassStyle -> Value
toJSON GlassStyle
GlassClear = Value
"clear"
toJSON GlassStyle
GlassRegular = Value
"regular"
androidCaptureTarget_ :: MisoString -> Attribute model action
androidCaptureTarget_ :: forall model action. MisoString -> Attribute model action
androidCaptureTarget_ = MisoString -> MisoString -> Attribute model action
forall model action.
MisoString -> MisoString -> Attribute model action
textProp MisoString
"android-capture-target"
blurEffect_ :: BlurEffect -> Attribute model action
blurEffect_ :: forall model action. BlurEffect -> Attribute model action
blurEffect_ = MisoString -> BlurEffect -> Attribute model action
forall a model action.
ToJSON a =>
MisoString -> a -> Attribute model action
prop MisoString
"blur-effect"
blurRadius_ :: MisoString -> Attribute model action
blurRadius_ :: forall model action. MisoString -> Attribute model action
blurRadius_ = MisoString -> MisoString -> Attribute model action
forall model action.
MisoString -> MisoString -> Attribute model action
textProp MisoString
"blur-radius"
blurSampling_ :: Int -> Attribute model action
blurSampling_ :: forall model action. Int -> Attribute model action
blurSampling_ = MisoString -> Int -> Attribute model action
forall model action. MisoString -> Int -> Attribute model action
intProp MisoString
"blur-sampling"
enableAutoBlur_ :: Bool -> Attribute model action
enableAutoBlur_ :: forall model action. Bool -> Attribute model action
enableAutoBlur_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"enable-auto-blur"
experimentalUpdateBlurRadius_ :: Bool -> Attribute model action
experimentalUpdateBlurRadius_ :: forall model action. Bool -> Attribute model action
experimentalUpdateBlurRadius_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"experimental-update-blur-radius"
glassInteractive_ :: Bool -> Attribute model action
glassInteractive_ :: forall model action. Bool -> Attribute model action
glassInteractive_ = MisoString -> Bool -> Attribute model action
forall model action. MisoString -> Bool -> Attribute model action
boolProp MisoString
"glass-interactive"
glassStyle_ :: GlassStyle -> Attribute model action
glassStyle_ :: forall model action. GlassStyle -> Attribute model action
glassStyle_ = MisoString -> GlassStyle -> Attribute model action
forall a model action.
ToJSON a =>
MisoString -> a -> Attribute model action
prop MisoString
"glass-style"
glassTintColor_ :: MisoString -> Attribute model action
glassTintColor_ :: forall model action. MisoString -> Attribute model action
glassTintColor_ = MisoString -> MisoString -> Attribute model action
forall model action.
MisoString -> MisoString -> Attribute model action
textProp MisoString
"glass-tint-color"
spacing_ :: Int -> Attribute model action
spacing_ :: forall model action. Int -> Attribute model action
spacing_ = MisoString -> Int -> Attribute model action
forall model action. MisoString -> Int -> Attribute model action
intProp MisoString
"spacing"