Module
Play.Types
- Package
- purescript-play
- Repository
- shamansir/purescript-play
#Direction Source
data DirectionDefines the layout direction for arranging child elements.
TopToBottom: Children are arranged vertically from top to bottomLeftToRight: Children are arranged horizontally from left to right
Constructors
Instances
#Sizing Source
data SizingDefines how an element should size itself along a particular axis.
None: No specific sizing constraintFixed Number: Fixed size in pixelsFit: Size to fit the content (minimum required space)Grow: Expand to fill available spaceFitGrow: If fitting the content requires more space than growing, then fit anyway, else grow to fill the available space
Constructors
Instances
#WithDefSize Source
type WithDefSize a = { def :: Def, size :: Size, v :: a }An element with layout definition and computed size. Intermediate state during layout computation.
#WithDefRect Source
type WithDefRect a = { def :: Def, rect :: Rect, v :: a }An element with both layout definition and computed rectangular bounds. Contains complete layout information for potential rollback operations.
- Modules
- Play
- Play.
Extra - Play.
Types
FixedPct Percentage FitMin { min :: Number } FitMax { max :: Number } FitMinMax { min :: Number, max :: Number }