| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Rendering.Rect
Documentation
Constructors
| Rects | |
Fields
| |
renderRects :: (MonadIO m, MonadIO n) => n (RectStyle Texture -> Rects -> M44 Float -> m ()) Source #
Constructors
| RectStyle | |
Fields
| |
Instances
| Eq img => Eq (RectStyle img) Source # | |
| Read img => Read (RectStyle img) Source # | |
Defined in Graphics.Rendering.Rect.CSS | |
| Show img => Show (RectStyle img) Source # | |
| PropertyParser (RectStyle Text) Source # | |
Defined in Graphics.Rendering.Rect.CSS Methods inherit :: RectStyle Text -> RectStyle Text # priority :: RectStyle Text -> [Text] # shorthand :: RectStyle Text -> Text -> [Token] -> [(Text, [Token])] # longhand :: RectStyle Text -> RectStyle Text -> Text -> [Token] -> Maybe (RectStyle Text) # getVars :: RectStyle Text -> Props # setVars :: Props -> RectStyle Text -> RectStyle Text # pseudoEl :: RectStyle Text -> Text -> (RectStyle Text -> Maybe (RectStyle Text) -> RectStyle Text) -> RectStyle Text # | |
colour :: RectStyle img -> AlphaColour Float Source #
data Backgrounds img Source #
Constructors
| Backgrounds | |
Instances
Constructors
| None | |
| Img img | |
| Linear Float [(C, Length)] | |
| Radial RadialShape Extent (Length, Length) [(C, Length)] | |
| Conical Float (Length, Length) [(C, Length)] |
data RadialShape Source #
Instances
| Eq RadialShape Source # | |
Defined in Graphics.Rendering.Rect.CSS.Backgrounds | |
| Read RadialShape Source # | |
Defined in Graphics.Rendering.Rect.CSS.Backgrounds Methods readsPrec :: Int -> ReadS RadialShape readList :: ReadS [RadialShape] readPrec :: ReadPrec RadialShape readListPrec :: ReadPrec [RadialShape] | |
| Show RadialShape Source # | |
Defined in Graphics.Rendering.Rect.CSS.Backgrounds Methods showsPrec :: Int -> RadialShape -> ShowS show :: RadialShape -> String showList :: [RadialShape] -> ShowS | |
Constructors
| Border | |
Fields
| |
Instances
| Eq Border Source # | |
| Read Border Source # | |
Defined in Graphics.Rendering.Rect.CSS.Border | |
| Show Border Source # | |
| PropertyParser Border Source # | |
Defined in Graphics.Rendering.Rect.CSS.Border | |
data BorderStyle Source #
Instances
| Enum BorderStyle Source # | |
Defined in Graphics.Rendering.Rect.CSS.Border Methods succ :: BorderStyle -> BorderStyle pred :: BorderStyle -> BorderStyle toEnum :: Int -> BorderStyle fromEnum :: BorderStyle -> Int enumFrom :: BorderStyle -> [BorderStyle] enumFromThen :: BorderStyle -> BorderStyle -> [BorderStyle] enumFromTo :: BorderStyle -> BorderStyle -> [BorderStyle] enumFromThenTo :: BorderStyle -> BorderStyle -> BorderStyle -> [BorderStyle] | |
| Eq BorderStyle Source # | |
Defined in Graphics.Rendering.Rect.CSS.Border | |
| Read BorderStyle Source # | |
Defined in Graphics.Rendering.Rect.CSS.Border Methods readsPrec :: Int -> ReadS BorderStyle readList :: ReadS [BorderStyle] readPrec :: ReadPrec BorderStyle readListPrec :: ReadPrec [BorderStyle] | |
| Show BorderStyle Source # | |
Defined in Graphics.Rendering.Rect.CSS.Border Methods showsPrec :: Int -> BorderStyle -> ShowS show :: BorderStyle -> String showList :: [BorderStyle] -> ShowS | |
topColour :: Border -> AlphaColour Float Source #
rightColour :: Border -> AlphaColour Float Source #
bottomColour :: Border -> AlphaColour Float Source #
leftColour :: Border -> AlphaColour Float Source #
buildAtlas :: MonadIO m => (Text -> IO DynamicImage) -> [Text] -> m Atlas Source #
atlasFromStyles :: MonadIO m => (Text -> IO DynamicImage) -> [RectStyle Text] -> m Atlas Source #