monomer-1.5.1.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 HaskellSafe-Inferred
LanguageHaskell2010

Monomer.Widgets.Singles.Icon

Description

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

icon IconPlus
Synopsis

Configuration

data IconCfg Source #

Configuration options for icon:

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

Instances

Instances details
Monoid IconCfg Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Semigroup 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
Show IconType Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Eq IconType Source # 
Instance details

Defined in Monomer.Widgets.Singles.Icon

Constructors

icon Source #

Arguments

:: IconType

The icon type.

-> WidgetNode s e

The created icon.

Creates an icon of the given type.

icon_ Source #

Arguments

:: IconType

The icon type.

-> [IconCfg]

The config options.

-> WidgetNode s e

The created icon.

Creates an icon of the given type. Accepts config.