monomer-1.0.0.0: 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 some standard icos without the need of an asset.

Configs:

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

Documentation

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

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.