tinytools-0.1.0.5: tinytools is a monospace unicode diagram editor
Safe HaskellSafe-Inferred
LanguageHaskell2010

Potato.Flow.RenderCache

Synopsis

Documentation

toPoint :: LBox -> Int -> XY Source #

input index must be contained in the box

toIndex :: LBox -> XY -> Int Source #

input XY point must be contained in the box

toIndexSafe :: LBox -> XY -> Maybe Int Source #

same as above but does bounds checking

type MWidePChar = (Int8, PChar) Source #

WidePChar represents part of a PChar that the Int8 parameter is offset from where the PChar originates from, so for example 😱 <- PChar 01 <- Int8 offset parameter

  • 1 value for offset means there is no character in the space, the PChar value is ignored in this case

data PreRender Source #

the LBox may exceed the logical bounding box of the object that is being represented if that object contains wide chars

Constructors

PreRender (Vector MWidePChar) LBox 

Instances

Instances details
Show PreRender Source # 
Instance details

Defined in Potato.Flow.RenderCache

newtype RenderCache Source #

Instances

Instances details
Show RenderCache Source # 
Instance details

Defined in Potato.Flow.RenderCache