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

Description

A Container to position content relative to its parent container, including in the center.

Synopsis

Documentation

data Positioned c Source #

A container for positioning content within a larger container in one of nine positions relative to the parent. Relative positioning will adjust to keep up with changes to the size of the parent container.

Instances

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

Defined in FULE.Container.Positioned

topLeft :: c -> Positioned c Source #

Position content in the top-left corner of its parent container.

topMiddle :: c -> Positioned c Source #

Position content in the middle of the top side of its parent container.

topRight :: c -> Positioned c Source #

Position content in the top-right corner of its parent container.

middleLeft :: c -> Positioned c Source #

Position content in the middle of the left side of its parent container.

centered :: c -> Positioned c Source #

Position content in the very center of its parent container.

middleRight :: c -> Positioned c Source #

Position content in the middle of the right side of its parent container.

bottomLeft :: c -> Positioned c Source #

Position content in the bottom-left corner of its parent container.

bottomMiddle :: c -> Positioned c Source #

Position content in the middle of the bottom side of its parent container.

bottomRight :: c -> Positioned c Source #

Position content in the bottom-right corner of its parent container.