monomer-1.0.0.1: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Singles.Icon

Description

Icon widget. Used for showing basic icons without the need of an asset.

Synopsis

Configuration

data IconCfg Source #

Configuration options for icon:

  • width: the maximum width and height of the icon.

Instances

Instances details
Semigroup IconCfg Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Monoid IconCfg Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Default IconCfg Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Methods

def :: IconCfg #

CmbWidth IconCfg Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Methods

width :: Double -> IconCfg Source #

data IconType Source #

Different types of icons that can be displayed.

Constructors

IconClose 
IconPlus 
IconMinus 

Instances

Instances details
Eq IconType Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Show IconType Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Constructors

icon :: IconType -> WidgetNode s e Source #

Creates an icon of the given type.

icon_ :: IconType -> [IconCfg] -> WidgetNode s e Source #

Creates an icon of the given type. Accepts config.