module Data.Text.ParagraphLayout.Internal.ResolvedBox (ResolvedBox (..))
where
import Data.Text.ParagraphLayout.Internal.BoxOptions
-- | Internal structure describing an inline box.
-- May be shared by multiple fragments.
data ResolvedBox d = ResolvedBox
{ boxUserData :: d
, boxIndex :: Int
, boxOptions :: BoxOptions
}
instance Eq (ResolvedBox d) where
a == b = boxIndex a == boxIndex b