Module

Play

Package
purescript-play
Repository
shamansir/purescript-play

#direction Source

direction :: forall a. Direction -> Play a -> Play a

#padding Source

padding :: forall a. Padding -> Play a -> Play a

#childGap Source

childGap :: forall a. Number -> Play a -> Play a

#w Source

w :: forall a. Sizing -> Play a -> Play a

#h Source

h :: forall a. Sizing -> Play a -> Play a

#with Source

with :: forall a. Array (Play a) -> Play a -> Play a

#default Source

#p Source

p :: forall a. a -> Array (Play a) -> Play a

#i Source

i :: forall a. a -> Play a

#toTree Source

toTree :: forall a. Play a -> Tree (WithDef a)

#fromTree Source

fromTree :: forall a. Tree (WithDef a) -> Play a

#layout Source

layout :: forall a. Play a -> Layout a

#layoutToTree Source

layoutToTree :: forall a. Layout a -> Tree (WithRect a)

#flattenLayout Source

flattenLayout :: forall a. Layout a -> Array (WithRect a)

#rollback Source

rollback :: forall a. Layout a -> Play a

#widthFit Source

widthFit :: forall (a :: Type). Play a -> Play a

#widthGrow Source

widthGrow :: forall (a :: Type). Play a -> Play a

#widthFitGrow Source

widthFitGrow :: forall (a :: Type). Play a -> Play a

#width Source

width :: forall a. Number -> PropF a

#heightFit Source

heightFit :: forall (a :: Type). Play a -> Play a

#heightGrow Source

heightGrow :: forall (a :: Type). Play a -> Play a

#heightFitGrow Source

heightFitGrow :: forall (a :: Type). Play a -> Play a

#height Source

height :: forall a. Number -> PropF a

#topToBottom Source

topToBottom :: forall (a :: Type). Play a -> Play a

#leftToRight Source

leftToRight :: forall (a :: Type). Play a -> Play a

#(~*) Source

Operator alias for Play.playProp (left-associative / precedence 1)

#playProp Source

playProp :: forall x a. x -> (x -> Play a) -> Play a

Re-exports from Play.Types

#WithRect Source

type WithRect a = { rect :: Rect, v :: a }

#WithDefSize Source

type WithDefSize a = { def :: Def, size :: Size, v :: a }

#WithDefRect Source

type WithDefRect a = { def :: Def, rect :: Rect, v :: a }

#WithDef Source

type WithDef a = { def :: Def, v :: a }

#Sizing Source

data Sizing

Constructors

Instances

  • Eq Sizing

    FixedPct Percentage FitMin { min :: Number } FitMax { max :: Number } FitMinMax { min :: Number, max :: Number }

#Size Source

type Size = { height :: Number, width :: Number }

#Rect Source

type Rect = { pos :: Pos, size :: Size }

#Pos Source

type Pos = { x :: Number, y :: Number }

#Padding Source

type Padding = { bottom :: Number, left :: Number, right :: Number, top :: Number }

#Offset Source

type Offset = Pos

#Direction Source

#Def Source

type Def = { childGap :: Number, direction :: Direction, padding :: Padding, sizing :: { height :: Sizing, width :: Sizing } }
Modules
Play
Play.Types