keid-core-0.1.8.0: Core parts of Keid engine.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Engine.UI.Layout

Documentation

data Box Source #

Constructors

Box 

Fields

Instances

Instances details
Show Box Source # 
Instance details

Defined in Engine.UI.Layout

Eq Box Source # 
Instance details

Defined in Engine.UI.Layout

Methods

(==) :: Box -> Box -> Bool Source #

(/=) :: Box -> Box -> Bool Source #

Ord Box Source # 
Instance details

Defined in Engine.UI.Layout

Methods

compare :: Box -> Box -> Ordering Source #

(<) :: Box -> Box -> Bool Source #

(<=) :: Box -> Box -> Bool Source #

(>) :: Box -> Box -> Bool Source #

(>=) :: Box -> Box -> Bool Source #

max :: Box -> Box -> Box Source #

min :: Box -> Box -> Box Source #

padAbs :: (MonadResource m, MonadUnliftIO m, HasOutput parent, GetOutput parent ~ Box, HasOutput padding, GetOutput padding ~ Vec4) => parent -> padding -> m BoxProcess Source #

hSplitRel :: (MonadResource m, MonadUnliftIO m, HasOutput parent, GetOutput parent ~ Box, HasOutput proportion, GetOutput proportion ~ Float) => parent -> proportion -> m (BoxProcess, BoxProcess) Source #

vSplitRel :: (MonadUnliftIO m, MonadResource m, HasOutput parent, GetOutput parent ~ Box, HasOutput proportion, GetOutput proportion ~ Float) => parent -> proportion -> m (BoxProcess, BoxProcess) Source #

splitsRelStatic :: (MonadResource m, MonadUnliftIO m, HasOutput parent, GetOutput parent ~ Box, Traversable t) => ((Float, Float) -> Vec4) -> parent -> t Float -> m (t BoxProcess) Source #

sharePadsH :: (Float, Float) -> Vec4 Source #

sharePadsV :: (Float, Float) -> Vec4 Source #

boxPadAbs :: Box -> Vec4 -> Box Source #

fitPlaceAbs :: (MonadResource m, MonadUnliftIO m, HasOutput parent, GetOutput parent ~ Box) => Alignment -> ("dimensions" ::: Vec2) -> parent -> m BoxProcess Source #

boxFitPlace :: Alignment -> ("dimensions" ::: Vec2) -> ("parent" ::: Box) -> Box Source #

boxFitScale :: ("dimensions" ::: Vec2) -> ("parent" ::: Box) -> ("leftovers" ::: Vec2, Box) Source #

boxTransformAbs :: Box -> Transform Source #

data Alignment Source #

Constructors

Alignment 

Fields

data Origin Source #

Constructors

Begin 
Middle 
End 

whenInBoxP :: (MonadIO m, HasOutput box, GetOutput box ~ Box) => ("screen" ::: Vec2) -> box -> (("local" ::: Vec2) -> m ()) -> m () Source #

pointInBox :: Vec2 -> Box -> Bool Source #