| Copyright | (c) 2022 Gareth Smith Francisco Vallarino |
|---|---|
| License | BSD-3-Clause (see the LICENSE file) |
| Maintainer | fjvallarino@gmail.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Monomer.Widgets.Containers.BoxShadow
Contents
Description
A rectangular drop-shadow. Normally used around alert boxes to give the illusion they are floating above the widgets underneath them.
Synopsis
- data BoxShadowCfg
- boxShadow :: WidgetNode s e -> WidgetNode s e
- boxShadow_ :: [BoxShadowCfg] -> WidgetNode s e -> WidgetNode s e
Configuration
data BoxShadowCfg Source #
Configuration options for boxShadow:
radius: the radius of the corners of the shadow.alignLeft: aligns the shadow to the left.alignCenter: aligns the shadow to the horizontal center.alignRight: aligns the shadow to the right.alignTop: aligns the shadow to the top.alignMiddle: aligns the shadow to the vertical middle.alignBottom: aligns the shadow to the bottom.
Instances
Constructors
Arguments
| :: WidgetNode s e | The content to display inside the boxShadow. |
| -> WidgetNode s e | The created boxShadow. |
Creates a boxShadow around the provided content.
Arguments
| :: [BoxShadowCfg] | The config options for the boxShadow. |
| -> WidgetNode s e | The content to display inside the boxShadow. |
| -> WidgetNode s e | The created boxShadow. |
Creates a boxShadow around the provided content. Accepts config.