@@ -19,6 +19,7 @@ module Graphics.Vty.Image ( Image(..)
19 , utf8_string
19 , utf8_string
20 , utf8_bytestring
20 , utf8_bytestring
21 , char_fill
21 , char_fill
22 -- | The possible display attributes used in constructing an `Image`.
23 -- | The possible display attributes used in constructing an `Image`.
23 , module Graphics.Vty.Attributes
24 , module Graphics.Vty.Attributes
@@ -91,7 +92,11 @@ data Image =
91 { output_width :: !Word -- >= 1
92 { output_width :: !Word -- >= 1
92 , output_height :: !Word -- >= 1
93 , output_height :: !Word -- >= 1
95+ -- The combining operators identity constant.
94− -- Any image of zero size equals the id image
99+ -- Any image of zero size equals the identity image.
95 | IdImage
100 | IdImage
96 deriving Eq
101 deriving Eq
@@ -310,3 +315,8 @@ char_fill :: Enum d => Attr -> Char -> d -> d -> Image
310char_fill !a !c w h =
315char_fill !a !c w h =
311 vert_cat $ replicate (fromEnum h) $ horiz_cat $ replicate (fromEnum w) $ char a c
316 vert_cat $ replicate (fromEnum h) $ horiz_cat $ replicate (fromEnum w) $ char a c
318+-- | The empty image. Useful for fold combinators. These occupy no space nor define any display
321+empty_image = IdImage