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.Clipped

Description

A Container to specify that content overflow should be clipped.

Synopsis

Documentation

data Clipped c Source #

A container the content of which should be clipped on overflow. Clipping bounds are specified as part of Bounds of contained Components.

It is up to you the consumer to implement the actual clipping of content.

Instances

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

Defined in FULE.Container.Clipped

Methods

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

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

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

clipped :: c -> Clipped c Source #

Create a container which clips any overflow.