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 HaskellSafe-Inferred
LanguageHaskell2010

Monomer.Core.StyleTypes

Description

Basic types for styling widgets.

Synopsis

Documentation

data SizeReq Source #

Represents a size requirement for a specific axis. Mainly used by stack and box, with grid using it as the base for its calculations. Each field represents:

  • Fixed: A minimum size required by the widget. This type of space is the first that gets assigned.
  • Flex: Additional space the widget accepts, up to the provided value. After fixed requirements are satisfied, flex sizes are assigned proportionally considering factor.
  • Extra: After flex is satisfied, the remaining space is distributed proportionally, considering factor, to all non zero extra requirements. There is no limit to how much extra space can be assigned.
  • Factor: How much flex/extra space a widget will get proportionally. This also affects how much a requirement is willing to lose: a value less than 1 can receive less space, but gives up less too.

Instances

Instances details
Eq SizeReq Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

(==) :: SizeReq -> SizeReq -> Bool #

(/=) :: SizeReq -> SizeReq -> Bool #

Show SizeReq Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic SizeReq Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep SizeReq :: Type -> Type #

Methods

from :: SizeReq -> Rep SizeReq x #

to :: Rep SizeReq x -> SizeReq #

Default SizeReq Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: SizeReq #

CmbRangeHeight SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbRangeWidth SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbExpandHeight SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbExpandWidth SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbMaxHeight SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbMaxWidth SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbMinHeight SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbMinWidth SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbFlexHeight SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbFlexWidth SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbHeight SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

CmbWidth SizeReq Source # 
Instance details

Defined in Monomer.Core.Style

Methods

width :: Double -> SizeReq Source #

HasFlex SizeReq Double Source # 
Instance details

Defined in Monomer.Core.Lens

HasFixed SizeReq Double Source # 
Instance details

Defined in Monomer.Core.Lens

HasFactor SizeReq Factor Source # 
Instance details

Defined in Monomer.Core.Lens

HasExtra SizeReq Double Source # 
Instance details

Defined in Monomer.Core.Lens

HasSizeReqW WidgetNodeInfo SizeReq Source # 
Instance details

Defined in Monomer.Core.Lens

HasSizeReqH WidgetNodeInfo SizeReq Source # 
Instance details

Defined in Monomer.Core.Lens

HasSizeReqW StyleState (Maybe SizeReq) Source # 
Instance details

Defined in Monomer.Core.Lens

HasSizeReqH StyleState (Maybe SizeReq) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep SizeReq Source # 
Instance details

Defined in Monomer.Core.StyleTypes

type Rep SizeReq = D1 ('MetaData "SizeReq" "Monomer.Core.StyleTypes" "monomer-1.0.0.1-inplace" 'False) (C1 ('MetaCons "SizeReq" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_szrFixed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "_szrFlex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "_szrExtra") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "_szrFactor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Factor))))

data CursorIcon Source #

Different mouse pointer types.

Instances

Instances details
Enum CursorIcon Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Eq CursorIcon Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Ord CursorIcon Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Show CursorIcon Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic CursorIcon Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep CursorIcon :: Type -> Type #

Default CursorIcon Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: CursorIcon #

HasCursorIcon StyleState (Maybe CursorIcon) Source # 
Instance details

Defined in Monomer.Core.Lens

HasCursor (WidgetEnv s e) (Maybe (Path, CursorIcon)) Source # 
Instance details

Defined in Monomer.Core.Lens

HasCursorStack (MonomerCtx s e) [(WidgetId, CursorIcon)] Source # 
Instance details

Defined in Monomer.Main.Lens

HasCursorIcons (MonomerCtx s e) (Map CursorIcon Cursor) Source # 
Instance details

Defined in Monomer.Main.Lens

type Rep CursorIcon Source # 
Instance details

Defined in Monomer.Core.StyleTypes

type Rep CursorIcon = D1 ('MetaData "CursorIcon" "Monomer.Core.StyleTypes" "monomer-1.0.0.1-inplace" 'False) (((C1 ('MetaCons "CursorArrow" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CursorHand" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CursorIBeam" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CursorInvalid" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "CursorSizeH" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CursorSizeV" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CursorDiagTL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CursorDiagTR" 'PrefixI 'False) (U1 :: Type -> Type))))

data Style Source #

Main style type, comprised of configurations for the different states:

  • Basic: Starting state for a widget, without any kind of interaction. This is used as the base for all other states, which override values as needed.
  • Hover: The mouse pointer is on top of the current widget.
  • Focus: The widget has keyboard focus.
  • Focus-Hover: The widget has keyboard focus and mouse is on top. Without this state one of Hover or Focus would take precedence and it would not be possible to specify the desired behavior.
  • Active: The mouse button is currently presed and the pointer is within the boundaries of the widget.
  • Disabled: The widget is disabled.

Instances

Instances details
Eq Style Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

(==) :: Style -> Style -> Bool #

(/=) :: Style -> Style -> Bool #

Show Style Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

showsPrec :: Int -> Style -> ShowS #

show :: Style -> String #

showList :: [Style] -> ShowS #

Generic Style Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep Style :: Type -> Type #

Methods

from :: Style -> Rep Style x #

to :: Rep Style x -> Style #

Semigroup Style Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

(<>) :: Style -> Style -> Style #

sconcat :: NonEmpty Style -> Style #

stimes :: Integral b => b -> Style -> Style #

Monoid Style Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

mempty :: Style #

mappend :: Style -> Style -> Style #

mconcat :: [Style] -> Style #

Default Style Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: Style #

CmbStyleDisabled Style Source # 
Instance details

Defined in Monomer.Core.StyleUtil

CmbStyleActive Style Source # 
Instance details

Defined in Monomer.Core.StyleUtil

CmbStyleFocusHover Style Source # 
Instance details

Defined in Monomer.Core.StyleUtil

CmbStyleFocus Style Source # 
Instance details

Defined in Monomer.Core.StyleUtil

CmbStyleHover Style Source # 
Instance details

Defined in Monomer.Core.StyleUtil

CmbStyleBasic Style Source # 
Instance details

Defined in Monomer.Core.StyleUtil

HasStyle WidgetNodeInfo Style Source # 
Instance details

Defined in Monomer.Core.Lens

HasHover Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFocusHover Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFocus Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasDisabled Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBasic Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasActive Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

CmbItemSelectedStyle (SelectListCfg s e a) Style Source # 
Instance details

Defined in Monomer.Widgets.Containers.SelectList

CmbItemSelectedStyle (DropdownCfg s e a) Style Source # 
Instance details

Defined in Monomer.Widgets.Containers.Dropdown

CmbItemBasicStyle (SelectListCfg s e a) Style Source # 
Instance details

Defined in Monomer.Widgets.Containers.SelectList

CmbItemBasicStyle (DropdownCfg s e a) Style Source # 
Instance details

Defined in Monomer.Widgets.Containers.Dropdown

type Rep Style Source # 
Instance details

Defined in Monomer.Core.StyleTypes

data StyleState Source #

Customizable style items for a specific state. All values are optional, and can be combined with the latest values taking precedence when the previous value is not empty.

Constructors

StyleState 

Fields

Instances

Instances details
Eq StyleState Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Show StyleState Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic StyleState Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep StyleState :: Type -> Type #

Semigroup StyleState Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Monoid StyleState Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Default StyleState Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: StyleState #

CmbRadiusBR StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbRadiusBL StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbRadiusTR StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbRadiusTL StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbRadius StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbBorderB StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbBorderT StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbBorderR StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbBorderL StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbBorder StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbPaddingB StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbPaddingT StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbPaddingR StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbPaddingL StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbPadding StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbCursorIcon StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbHlColor StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbSndColor StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbFgColor StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbBgColor StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbSizeReqH StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbSizeReqW StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbRangeHeight StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbRangeWidth StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbExpandHeight StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbExpandWidth StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbMaxHeight StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbMaxWidth StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbMinHeight StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbMinWidth StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbFlexHeight StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbFlexWidth StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbHeight StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbWidth StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextThroughline StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextOverline StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextUnderline StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextBaseline StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextBottom StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextLowerX StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextAscender StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextMiddle StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextTop StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextRight StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextCenter StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextLeft StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextColor StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextSpaceV StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextSpaceH StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextSize StyleState Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextFont StyleState Source # 
Instance details

Defined in Monomer.Core.Style

HasTooltipStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasTimeFieldStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasTextFieldStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasTextAreaStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasSliderStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasSeparatorLineStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasSelectListStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasSelectListItemStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasSelectListItemSelectedStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasRadioStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasNumericFieldStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasLabelStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasExternalLinkStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasEmptyOverlayStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDropdownStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDropdownListStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDropdownItemStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDropdownItemSelectedStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDialogTitleStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDialogMsgBodyStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDialogFrameStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDialogCloseIconStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDialogButtonsStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDialStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasDateFieldStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasCheckboxStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasBtnStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasBtnMainStyle ThemeState StyleState Source # 
Instance details

Defined in Monomer.Core.Lens

HasText StyleState (Maybe TextStyle) Source # 
Instance details

Defined in Monomer.Core.Lens

HasSndColor StyleState (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasSizeReqW StyleState (Maybe SizeReq) Source # 
Instance details

Defined in Monomer.Core.Lens

HasSizeReqH StyleState (Maybe SizeReq) Source # 
Instance details

Defined in Monomer.Core.Lens

HasRadius StyleState (Maybe Radius) Source # 
Instance details

Defined in Monomer.Core.Lens

HasPadding StyleState (Maybe Padding) Source # 
Instance details

Defined in Monomer.Core.Lens

HasHlColor StyleState (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFgColor StyleState (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasCursorIcon StyleState (Maybe CursorIcon) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBorder StyleState (Maybe Border) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBgColor StyleState (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasHover Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFocusHover Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFocus Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasDisabled Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBasic Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasActive Style (Maybe StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

HasUserStyleMap ThemeState (Map String StyleState) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep StyleState Source # 
Instance details

Defined in Monomer.Core.StyleTypes

data Padding Source #

Padding definitions (space between border and content) for each side.

Instances

Instances details
Eq Padding Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

(==) :: Padding -> Padding -> Bool #

(/=) :: Padding -> Padding -> Bool #

Show Padding Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic Padding Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep Padding :: Type -> Type #

Methods

from :: Padding -> Rep Padding x #

to :: Rep Padding x -> Padding #

Semigroup Padding Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Monoid Padding Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Default Padding Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: Padding #

CmbPaddingB Padding Source # 
Instance details

Defined in Monomer.Core.Style

CmbPaddingT Padding Source # 
Instance details

Defined in Monomer.Core.Style

CmbPaddingR Padding Source # 
Instance details

Defined in Monomer.Core.Style

CmbPaddingL Padding Source # 
Instance details

Defined in Monomer.Core.Style

CmbPadding Padding Source # 
Instance details

Defined in Monomer.Core.Style

HasTop Padding (Maybe Double) Source # 
Instance details

Defined in Monomer.Core.Lens

HasRight Padding (Maybe Double) Source # 
Instance details

Defined in Monomer.Core.Lens

HasLeft Padding (Maybe Double) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBottom Padding (Maybe Double) Source # 
Instance details

Defined in Monomer.Core.Lens

HasPadding StyleState (Maybe Padding) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep Padding Source # 
Instance details

Defined in Monomer.Core.StyleTypes

data BorderSide Source #

Defines width and color for a given border side.

Constructors

BorderSide 

Fields

Instances

Instances details
Eq BorderSide Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Show BorderSide Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic BorderSide Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep BorderSide :: Type -> Type #

Semigroup BorderSide Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Monoid BorderSide Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Default BorderSide Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: BorderSide #

HasWidth BorderSide Double Source # 
Instance details

Defined in Monomer.Core.Lens

HasColor BorderSide Color Source # 
Instance details

Defined in Monomer.Core.Lens

HasTop Border (Maybe BorderSide) Source # 
Instance details

Defined in Monomer.Core.Lens

HasRight Border (Maybe BorderSide) Source # 
Instance details

Defined in Monomer.Core.Lens

HasLeft Border (Maybe BorderSide) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBottom Border (Maybe BorderSide) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep BorderSide Source # 
Instance details

Defined in Monomer.Core.StyleTypes

type Rep BorderSide = D1 ('MetaData "BorderSide" "Monomer.Core.StyleTypes" "monomer-1.0.0.1-inplace" 'False) (C1 ('MetaCons "BorderSide" 'PrefixI 'True) (S1 ('MetaSel ('Just "_bsWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "_bsColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Color)))

data Border Source #

Border definitions for each side.

Instances

Instances details
Eq Border Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

(==) :: Border -> Border -> Bool #

(/=) :: Border -> Border -> Bool #

Show Border Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic Border Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep Border :: Type -> Type #

Methods

from :: Border -> Rep Border x #

to :: Rep Border x -> Border #

Semigroup Border Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Monoid Border Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Default Border Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: Border #

CmbBorderB Border Source # 
Instance details

Defined in Monomer.Core.Style

Methods

borderB :: Double -> Color -> Border Source #

CmbBorderT Border Source # 
Instance details

Defined in Monomer.Core.Style

Methods

borderT :: Double -> Color -> Border Source #

CmbBorderR Border Source # 
Instance details

Defined in Monomer.Core.Style

Methods

borderR :: Double -> Color -> Border Source #

CmbBorderL Border Source # 
Instance details

Defined in Monomer.Core.Style

Methods

borderL :: Double -> Color -> Border Source #

CmbBorder Border Source # 
Instance details

Defined in Monomer.Core.Style

Methods

border :: Double -> Color -> Border Source #

HasTop Border (Maybe BorderSide) Source # 
Instance details

Defined in Monomer.Core.Lens

HasRight Border (Maybe BorderSide) Source # 
Instance details

Defined in Monomer.Core.Lens

HasLeft Border (Maybe BorderSide) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBottom Border (Maybe BorderSide) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBorder StyleState (Maybe Border) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep Border Source # 
Instance details

Defined in Monomer.Core.StyleTypes

data RadiusType Source #

Type of corner radius.

Constructors

RadiusInner 
RadiusBoth 

Instances

Instances details
Eq RadiusType Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Show RadiusType Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic RadiusType Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep RadiusType :: Type -> Type #

Semigroup RadiusType Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Monoid RadiusType Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Default RadiusType Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: RadiusType #

type Rep RadiusType Source # 
Instance details

Defined in Monomer.Core.StyleTypes

type Rep RadiusType = D1 ('MetaData "RadiusType" "Monomer.Core.StyleTypes" "monomer-1.0.0.1-inplace" 'False) (C1 ('MetaCons "RadiusInner" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RadiusBoth" 'PrefixI 'False) (U1 :: Type -> Type))

newtype RadiusCorner Source #

Defines radius type and width/radius for a given corner.

Constructors

RadiusCorner 

Fields

Instances

Instances details
Eq RadiusCorner Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Show RadiusCorner Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic RadiusCorner Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep RadiusCorner :: Type -> Type #

Semigroup RadiusCorner Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Monoid RadiusCorner Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Default RadiusCorner Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: RadiusCorner #

HasWidth RadiusCorner Double Source # 
Instance details

Defined in Monomer.Core.Lens

HasTopRight Radius (Maybe RadiusCorner) Source # 
Instance details

Defined in Monomer.Core.Lens

HasTopLeft Radius (Maybe RadiusCorner) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBottomRight Radius (Maybe RadiusCorner) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBottomLeft Radius (Maybe RadiusCorner) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep RadiusCorner Source # 
Instance details

Defined in Monomer.Core.StyleTypes

type Rep RadiusCorner = D1 ('MetaData "RadiusCorner" "Monomer.Core.StyleTypes" "monomer-1.0.0.1-inplace" 'True) (C1 ('MetaCons "RadiusCorner" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rcrWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data Radius Source #

Provides radius definitions for each corner.

Instances

Instances details
Eq Radius Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

(==) :: Radius -> Radius -> Bool #

(/=) :: Radius -> Radius -> Bool #

Show Radius Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic Radius Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep Radius :: Type -> Type #

Methods

from :: Radius -> Rep Radius x #

to :: Rep Radius x -> Radius #

Semigroup Radius Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Monoid Radius Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Default Radius Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: Radius #

CmbRadiusBR Radius Source # 
Instance details

Defined in Monomer.Core.Style

CmbRadiusBL Radius Source # 
Instance details

Defined in Monomer.Core.Style

CmbRadiusTR Radius Source # 
Instance details

Defined in Monomer.Core.Style

CmbRadiusTL Radius Source # 
Instance details

Defined in Monomer.Core.Style

CmbRadius Radius Source # 
Instance details

Defined in Monomer.Core.Style

Methods

radius :: Double -> Radius Source #

HasTopRight Radius (Maybe RadiusCorner) Source # 
Instance details

Defined in Monomer.Core.Lens

HasTopLeft Radius (Maybe RadiusCorner) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBottomRight Radius (Maybe RadiusCorner) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBottomLeft Radius (Maybe RadiusCorner) Source # 
Instance details

Defined in Monomer.Core.Lens

HasRadius StyleState (Maybe Radius) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep Radius Source # 
Instance details

Defined in Monomer.Core.StyleTypes

data TextStyle Source #

Text related definitions.

Constructors

TextStyle 

Fields

Instances

Instances details
Eq TextStyle Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Show TextStyle Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Generic TextStyle Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Associated Types

type Rep TextStyle :: Type -> Type #

Semigroup TextStyle Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Monoid TextStyle Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Default TextStyle Source # 
Instance details

Defined in Monomer.Core.StyleTypes

Methods

def :: TextStyle #

CmbTextThroughline TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextOverline TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextUnderline TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextBaseline TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextBottom TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextLowerX TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextAscender TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextMiddle TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextTop TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextRight TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextCenter TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextLeft TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextColor TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextSpaceV TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextSpaceH TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextSize TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

CmbTextFont TextStyle Source # 
Instance details

Defined in Monomer.Core.Style

HasUnderline TextStyle (Maybe Bool) Source # 
Instance details

Defined in Monomer.Core.Lens

HasThroughline TextStyle (Maybe Bool) Source # 
Instance details

Defined in Monomer.Core.Lens

HasOverline TextStyle (Maybe Bool) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFontSpaceV TextStyle (Maybe FontSpace) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFontSpaceH TextStyle (Maybe FontSpace) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFontSize TextStyle (Maybe FontSize) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFontColor TextStyle (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFont TextStyle (Maybe Font) Source # 
Instance details

Defined in Monomer.Core.Lens

HasAlignV TextStyle (Maybe AlignTV) Source # 
Instance details

Defined in Monomer.Core.Lens

HasAlignH TextStyle (Maybe AlignTH) Source # 
Instance details

Defined in Monomer.Core.Lens

HasText StyleState (Maybe TextStyle) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep TextStyle Source # 
Instance details

Defined in Monomer.Core.StyleTypes