| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Badge.Barrier
Contents
Synopsis
- class Badge a
- flat :: Flat
- flatSquare :: FlatSquare
- plastic :: Plastic
- renderBadge :: Badge b => b -> Text -> Text -> ByteString
- class HasLeftColor a where
- class HasRightColor a where
- module Graphics.Badge.Barrier.Color
badge
Minimal complete definition
Instances
| Badge Flat # | |
Defined in Graphics.Badge.Barrier.Style.Flat Methods badge :: Flat -> BadgeConfig -> Svg # | |
| Badge FlatSquare # | |
Defined in Graphics.Badge.Barrier.Style.FlatSquare Methods badge :: FlatSquare -> BadgeConfig -> Svg # | |
| Badge Plastic # | |
Defined in Graphics.Badge.Barrier.Style.Plastic Methods badge :: Plastic -> BadgeConfig -> Svg # | |
render function
Arguments
| :: Badge b | |
| => b | |
| -> Text | left text |
| -> Text | right text |
| -> ByteString | svg string |
renderBadge flat "left" "right"
lens
class HasLeftColor a where #
Minimal complete definition
Instances
| HasLeftColor Flat # | |
| HasLeftColor FlatSquare # | |
Defined in Graphics.Badge.Barrier.Style.FlatSquare Methods left :: Lens' FlatSquare Color # | |
| HasLeftColor Plastic # | |
class HasRightColor a where #
Minimal complete definition
Instances
| HasRightColor Flat # | |
| HasRightColor FlatSquare # | |
Defined in Graphics.Badge.Barrier.Style.FlatSquare Methods right :: Lens' FlatSquare Color # | |
| HasRightColor Plastic # | |
module Graphics.Badge.Barrier.Color