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.Button

Description

Button widget, with support for multiline text. At the most basic level, a button consists of a caption and an event to raise when clicked.

Synopsis

Configuration

data ButtonCfg s e Source #

Configuration options for button:

Instances

Instances details
Semigroup (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

(<>) :: ButtonCfg s e -> ButtonCfg s e -> ButtonCfg s e #

sconcat :: NonEmpty (ButtonCfg s e) -> ButtonCfg s e #

stimes :: Integral b => b -> ButtonCfg s e -> ButtonCfg s e #

Monoid (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

mempty :: ButtonCfg s e #

mappend :: ButtonCfg s e -> ButtonCfg s e -> ButtonCfg s e #

mconcat :: [ButtonCfg s e] -> ButtonCfg s e #

Default (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

def :: ButtonCfg s e #

CmbIgnoreTheme (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

CmbResizeFactorDim (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

CmbResizeFactor (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

CmbTrimSpaces (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

CmbEllipsis (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

CmbMultiline (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

CmbMaxLines (ButtonCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

maxLines :: Int -> ButtonCfg s e Source #

WidgetEvent e => CmbOnClick (ButtonCfg s e) e Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

onClick :: e -> ButtonCfg s e Source #

CmbOnClickReq (ButtonCfg s e) s e Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

WidgetEvent e => CmbOnBlur (ButtonCfg s e) e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

onBlur :: (Path -> e) -> ButtonCfg s e Source #

WidgetEvent e => CmbOnFocus (ButtonCfg s e) e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

onFocus :: (Path -> e) -> ButtonCfg s e Source #

CmbOnBlurReq (ButtonCfg s e) s e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

onBlurReq :: (Path -> WidgetRequest s e) -> ButtonCfg s e Source #

CmbOnFocusReq (ButtonCfg s e) s e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.Button

Methods

onFocusReq :: (Path -> WidgetRequest s e) -> ButtonCfg s e Source #

Constructors

button :: WidgetEvent e => Text -> e -> WidgetNode s e Source #

Creates a button with normal styling.

button_ :: WidgetEvent e => Text -> e -> [ButtonCfg s e] -> WidgetNode s e Source #

Creates a button with normal styling. Accepts config.

mainButton :: WidgetEvent e => Text -> e -> WidgetNode s e Source #

Creates a button with main styling. Useful for dialogs.

mainButton_ :: WidgetEvent e => Text -> e -> [ButtonCfg s e] -> WidgetNode s e Source #

Creates a button with main styling. Useful for dialogs. Accepts config.