FULE-0.3.1: Functional UI Layout Engine
Copyright(c) Paul Schnapp 2023
LicenseBSD3
MaintainerPaul Schnapp <paul.schnapp@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

FULE.Container.Sized

Description

A Container to specify or override the (inherent) size of content.

To remove the size of content from consideration during the layout process see the Unreckoned container.

Synopsis

Documentation

data Sized c Source #

A container which specifies or overrides the size of content in the layout.

Instances

Instances details
Container c k m => Container (Sized c) k m Source # 
Instance details

Defined in FULE.Container.Sized

Methods

minWidth :: Sized c -> Proxy k -> m (Maybe Int) Source #

minHeight :: Sized c -> Proxy k -> m (Maybe Int) Source #

addToLayout :: Sized c -> Proxy k -> Bounds -> RenderGroup -> LayoutOp k m () Source #

sizedHoriz Source #

Arguments

:: Int

The width the content should have.

-> c

The content.

-> Sized c 

Add or override the horizontal size of the content.

sizedVert Source #

Arguments

:: Int

The height the content should have.

-> c

The content.

-> Sized c 

Add or override the vertical size of the content.

sized Source #

Arguments

:: (Int, Int)

The width and height the content should have.

-> c

The content.

-> Sized c 

Add or override the size of the content in both dimensions.