Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Lenses for the Core types.
Documentation
class HasColor s a | s -> a where Source #
Instances
HasColor BorderSide Color Source # | |
Defined in Monomer.Core.Lens |
class HasWidth s a | s -> a where Source #
Instances
HasWidth RadiusCorner Double Source # | |
Defined in Monomer.Core.Lens | |
HasWidth BorderSide Double Source # | |
Defined in Monomer.Core.Lens |
class HasBottomLeft s a | s -> a where Source #
bottomLeft :: Lens' s a Source #
Instances
HasBottomLeft Radius (Maybe RadiusCorner) Source # | |
Defined in Monomer.Core.Lens |
class HasBottomRight s a | s -> a where Source #
bottomRight :: Lens' s a Source #
Instances
HasBottomRight Radius (Maybe RadiusCorner) Source # | |
Defined in Monomer.Core.Lens |
class HasTopLeft s a | s -> a where Source #
Instances
HasTopLeft Radius (Maybe RadiusCorner) Source # | |
Defined in Monomer.Core.Lens |
class HasTopRight s a | s -> a where Source #
Instances
HasTopRight Radius (Maybe RadiusCorner) Source # | |
Defined in Monomer.Core.Lens |
class HasFontColor s a | s -> a where Source #
class HasFontSize s a | s -> a where Source #
class HasFontSpaceH s a | s -> a where Source #
fontSpaceH :: Lens' s a Source #
Instances
HasFontSpaceH TextLine FontSpace Source # | |
Defined in Monomer.Graphics.Lens | |
HasFontSpaceH TextStyle (Maybe FontSpace) Source # | |
Defined in Monomer.Core.Lens |
class HasFontSpaceV s a | s -> a where Source #
fontSpaceV :: Lens' s a Source #
Instances
HasFontSpaceV TextLine FontSpace Source # | |
Defined in Monomer.Graphics.Lens | |
HasFontSpaceV TextStyle (Maybe FontSpace) Source # | |
Defined in Monomer.Core.Lens |
class HasOverline s a | s -> a where Source #
class HasThroughline s a | s -> a where Source #
throughline :: Lens' s a Source #
Instances
HasThroughline TextStyle (Maybe Bool) Source # | |
Defined in Monomer.Core.Lens |
class HasUnderline s a | s -> a where Source #
class HasBgColor s a | s -> a where Source #
Instances
HasBgColor StyleState (Maybe Color) Source # | |
Defined in Monomer.Core.Lens |
class HasBorder s a | s -> a where Source #
Instances
HasBorder StyleState (Maybe Border) Source # | |
Defined in Monomer.Core.Lens |
class HasCursorIcon s a | s -> a where Source #
cursorIcon :: Lens' s a Source #
Instances
HasCursorIcon StyleState (Maybe CursorIcon) Source # | |
Defined in Monomer.Core.Lens |
class HasFgColor s a | s -> a where Source #
Instances
HasFgColor StyleState (Maybe Color) Source # | |
Defined in Monomer.Core.Lens |
class HasHlColor s a | s -> a where Source #
Instances
HasHlColor StyleState (Maybe Color) Source # | |
Defined in Monomer.Core.Lens |
class HasPadding s a | s -> a where Source #
Instances
HasPadding StyleState (Maybe Padding) Source # | |
Defined in Monomer.Core.Lens |
class HasRadius s a | s -> a where Source #
Instances
HasRadius StyleState (Maybe Radius) Source # | |
Defined in Monomer.Core.Lens |
class HasSizeReqH s a | s -> a where Source #
Instances
HasSizeReqH WidgetNodeInfo SizeReq Source # | |
Defined in Monomer.Core.Lens | |
HasSizeReqH StyleState (Maybe SizeReq) Source # | |
Defined in Monomer.Core.Lens |
class HasSizeReqW s a | s -> a where Source #
Instances
HasSizeReqW WidgetNodeInfo SizeReq Source # | |
Defined in Monomer.Core.Lens | |
HasSizeReqW StyleState (Maybe SizeReq) Source # | |
Defined in Monomer.Core.Lens |
class HasSndColor s a | s -> a where Source #
Instances
HasSndColor StyleState (Maybe Color) Source # | |
Defined in Monomer.Core.Lens |
class HasActive s a | s -> a where Source #
Instances
HasActive Theme ThemeState Source # | |
Defined in Monomer.Core.Lens | |
HasActive Style (Maybe StyleState) Source # | |
Defined in Monomer.Core.Lens |
class HasBasic s a | s -> a where Source #
Instances
HasBasic Theme ThemeState Source # | |
Defined in Monomer.Core.Lens | |
HasBasic Style (Maybe StyleState) Source # | |
Defined in Monomer.Core.Lens |
class HasDisabled s a | s -> a where Source #
Instances
HasDisabled Theme ThemeState Source # | |
Defined in Monomer.Core.Lens | |
HasDisabled Style (Maybe StyleState) Source # | |
Defined in Monomer.Core.Lens |
class HasFocus s a | s -> a where Source #
Instances
HasFocus Theme ThemeState Source # | |
Defined in Monomer.Core.Lens | |
HasFocus Style (Maybe StyleState) Source # | |
Defined in Monomer.Core.Lens |
class HasFocusHover s a | s -> a where Source #
focusHover :: Lens' s a Source #
Instances
HasFocusHover Theme ThemeState Source # | |
Defined in Monomer.Core.Lens | |
HasFocusHover Style (Maybe StyleState) Source # | |
Defined in Monomer.Core.Lens focusHover :: Lens' Style (Maybe StyleState) Source # |
class HasHover s a | s -> a where Source #
Instances
HasHover Theme ThemeState Source # | |
Defined in Monomer.Core.Lens | |
HasHover Style (Maybe StyleState) Source # | |
Defined in Monomer.Core.Lens |
class HasBtnStyle s a | s -> a where Source #
Instances
HasBtnStyle ThemeState StyleState Source # | |
Defined in Monomer.Core.Lens |
class HasCheckboxWidth s a | s -> a where Source #
checkboxWidth :: Lens' s a Source #
Instances
HasCheckboxWidth ThemeState Double Source # | |
Defined in Monomer.Core.Lens |
class HasDialStyle s a | s -> a where Source #
Instances
HasDialStyle ThemeState StyleState Source # | |
Defined in Monomer.Core.Lens |
class HasDialWidth s a | s -> a where Source #
Instances
HasDialWidth ThemeState Double Source # | |
Defined in Monomer.Core.Lens |
class HasDialogButtonsStyle s a | s -> a where Source #
dialogButtonsStyle :: Lens' s a Source #
Instances
class HasDialogCloseIconStyle s a | s -> a where Source #
dialogCloseIconStyle :: Lens' s a Source #
Instances
class HasDialogFrameStyle s a | s -> a where Source #
dialogFrameStyle :: Lens' s a Source #
Instances
class HasDialogMsgBodyStyle s a | s -> a where Source #
dialogMsgBodyStyle :: Lens' s a Source #
Instances
class HasDialogTitleStyle s a | s -> a where Source #
dialogTitleStyle :: Lens' s a Source #
Instances
class HasDropdownItemSelectedStyle s a | s -> a where Source #
dropdownItemSelectedStyle :: Lens' s a Source #
Instances
class HasDropdownItemStyle s a | s -> a where Source #
dropdownItemStyle :: Lens' s a Source #
Instances
class HasDropdownListStyle s a | s -> a where Source #
dropdownListStyle :: Lens' s a Source #
Instances
class HasDropdownMaxHeight s a | s -> a where Source #
dropdownMaxHeight :: Lens' s a Source #
Instances
class HasEmptyOverlayStyle s a | s -> a where Source #
emptyOverlayStyle :: Lens' s a Source #
Instances
class HasExternalLinkStyle s a | s -> a where Source #
externalLinkStyle :: Lens' s a Source #
Instances
class HasLabelStyle s a | s -> a where Source #
labelStyle :: Lens' s a Source #
Instances
HasLabelStyle ThemeState StyleState Source # | |
Defined in Monomer.Core.Lens |
class HasNumericFieldStyle s a | s -> a where Source #
numericFieldStyle :: Lens' s a Source #
Instances
class HasRadioStyle s a | s -> a where Source #
radioStyle :: Lens' s a Source #
Instances
HasRadioStyle ThemeState StyleState Source # | |
Defined in Monomer.Core.Lens |
class HasRadioWidth s a | s -> a where Source #
radioWidth :: Lens' s a Source #
Instances
HasRadioWidth ThemeState Double Source # | |
Defined in Monomer.Core.Lens |
class HasScrollBarColor s a | s -> a where Source #
scrollBarColor :: Lens' s a Source #
Instances
HasScrollBarColor ThemeState Color Source # | |
Defined in Monomer.Core.Lens |
class HasScrollBarWidth s a | s -> a where Source #
scrollBarWidth :: Lens' s a Source #
Instances
HasScrollBarWidth ThemeState Double Source # | |
Defined in Monomer.Core.Lens |
class HasScrollFollowFocus s a | s -> a where Source #
scrollFollowFocus :: Lens' s a Source #
Instances
class HasScrollOverlay s a | s -> a where Source #
scrollOverlay :: Lens' s a Source #
Instances
HasScrollOverlay ThemeState Bool Source # | |
Defined in Monomer.Core.Lens |
class HasScrollThumbColor s a | s -> a where Source #
scrollThumbColor :: Lens' s a Source #
Instances
class HasScrollThumbRadius s a | s -> a where Source #
scrollThumbRadius :: Lens' s a Source #
Instances
class HasScrollThumbWidth s a | s -> a where Source #
scrollThumbWidth :: Lens' s a Source #
Instances
class HasSelectListItemSelectedStyle s a | s -> a where Source #
selectListItemSelectedStyle :: Lens' s a Source #
Instances
class HasSelectListItemStyle s a | s -> a where Source #
selectListItemStyle :: Lens' s a Source #
Instances
class HasSeparatorLineStyle s a | s -> a where Source #
separatorLineStyle :: Lens' s a Source #
Instances
class HasSeparatorLineWidth s a | s -> a where Source #
separatorLineWidth :: Lens' s a Source #
Instances
class HasSliderRadius s a | s -> a where Source #
sliderRadius :: Lens' s a Source #
Instances
HasSliderRadius ThemeState (Maybe Double) Source # | |
Defined in Monomer.Core.Lens |
class HasSliderThumbFactor s a | s -> a where Source #
sliderThumbFactor :: Lens' s a Source #
Instances
class HasSliderWidth s a | s -> a where Source #
sliderWidth :: Lens' s a Source #
Instances
HasSliderWidth ThemeState Double Source # | |
Defined in Monomer.Core.Lens |
class HasUserColorMap s a | s -> a where Source #
userColorMap :: Lens' s a Source #
Instances
HasUserColorMap ThemeState (Map String Color) Source # | |
Defined in Monomer.Core.Lens userColorMap :: Lens' ThemeState (Map String Color) Source # | |
HasUserColorMap Theme (Map String Color) Source # | |
Defined in Monomer.Core.Lens |
class HasUserStyleMap s a | s -> a where Source #
userStyleMap :: Lens' s a Source #
Instances
HasUserStyleMap ThemeState (Map String StyleState) Source # | |
Defined in Monomer.Core.Lens |
class HasClearColor s a | s -> a where Source #
clearColor :: Lens' s a Source #
Instances
HasClearColor Theme Color Source # | |
Defined in Monomer.Core.Lens |
class HasSectionColor s a | s -> a where Source #
sectionColor :: Lens' s a Source #
Instances
HasSectionColor Theme Color Source # | |
Defined in Monomer.Core.Lens |
_WidgetLens :: forall s a s. Prism (WidgetData s a) (WidgetData s a) (ALens' s a) (ALens' s a) Source #
_WidgetValue :: forall s a. Prism' (WidgetData s a) a Source #
class HasContextButton s a | s -> a where Source #
contextButton :: Lens' s a Source #
Instances
HasContextButton (AppConfig e) (Maybe Button) Source # | |
Defined in Monomer.Main.Lens | |
HasContextButton (WidgetEnv s e) Button Source # | |
Defined in Monomer.Core.Lens |
class HasDragStatus s a | s -> a where Source #
dragStatus :: Lens' s a Source #
Instances
HasDragStatus (WidgetEnv s e) (Maybe (Path, WidgetDragMsg)) Source # | |
Defined in Monomer.Core.Lens dragStatus :: Lens' (WidgetEnv s e) (Maybe (Path, WidgetDragMsg)) Source # |
class HasFindByPath s a | s -> a where Source #
findByPath :: Lens' s a Source #
Instances
HasFindByPath (WidgetEnv s e) (Path -> Maybe WidgetNodeInfo) Source # | |
Defined in Monomer.Core.Lens findByPath :: Lens' (WidgetEnv s e) (Path -> Maybe WidgetNodeInfo) Source # |
class HasFocusedPath s a | s -> a where Source #
focusedPath :: Lens' s a Source #
Instances
HasFocusedPath (WidgetEnv s e) Path Source # | |
Defined in Monomer.Core.Lens |
class HasFontManager s a | s -> a where Source #
fontManager :: Lens' s a Source #
Instances
HasFontManager (WidgetEnv s e) FontManager Source # | |
Defined in Monomer.Core.Lens fontManager :: Lens' (WidgetEnv s e) FontManager Source # |
class HasHoveredPath s a | s -> a where Source #
hoveredPath :: Lens' s a Source #
Instances
HasHoveredPath (WidgetEnv s e) (Maybe Path) Source # | |
Defined in Monomer.Core.Lens |
class HasInTopLayer s a | s -> a where Source #
inTopLayer :: Lens' s a Source #
Instances
HasInTopLayer (WidgetEnv s e) (Point -> Bool) Source # | |
Defined in Monomer.Core.Lens |
class HasInputStatus s a | s -> a where Source #
inputStatus :: Lens' s a Source #
Instances
HasInputStatus (WidgetEnv s e) InputStatus Source # | |
Defined in Monomer.Core.Lens inputStatus :: Lens' (WidgetEnv s e) InputStatus Source # | |
HasInputStatus (MonomerCtx s e) InputStatus Source # | |
Defined in Monomer.Main.Lens inputStatus :: Lens' (MonomerCtx s e) InputStatus Source # |
class HasLayoutDirection s a | s -> a where Source #
layoutDirection :: Lens' s a Source #
Instances
HasLayoutDirection (WidgetEnv s e) LayoutDirection Source # | |
Defined in Monomer.Core.Lens layoutDirection :: Lens' (WidgetEnv s e) LayoutDirection Source # |
class HasMainBtnPress s a | s -> a where Source #
mainBtnPress :: Lens' s a Source #
Instances
HasMainBtnPress (WidgetEnv s e) (Maybe (Path, Point)) Source # | |
Defined in Monomer.Core.Lens | |
HasMainBtnPress (MonomerCtx s e) (Maybe (Path, Point)) Source # | |
Defined in Monomer.Main.Lens mainBtnPress :: Lens' (MonomerCtx s e) (Maybe (Path, Point)) Source # |
class HasMainButton s a | s -> a where Source #
mainButton :: Lens' s a Source #
Instances
HasMainButton (AppConfig e) (Maybe Button) Source # | |
Defined in Monomer.Main.Lens | |
HasMainButton (WidgetEnv s e) Button Source # | |
Defined in Monomer.Core.Lens |
class HasOverlayPath s a | s -> a where Source #
overlayPath :: Lens' s a Source #
Instances
HasOverlayPath (WidgetEnv s e) (Maybe Path) Source # | |
Defined in Monomer.Core.Lens |
class HasThemeChanged s a | s -> a where Source #
themeChanged :: Lens' s a Source #
Instances
HasThemeChanged (WidgetEnv s e) Bool Source # | |
Defined in Monomer.Core.Lens |
class HasTimestamp s a | s -> a where Source #
class HasViewport s a | s -> a where Source #
Instances
HasViewport WidgetNodeInfo Rect Source # | |
Defined in Monomer.Core.Lens | |
HasViewport (WidgetEnv s e) Rect Source # | |
class HasWidgetKeyMap s a | s -> a where Source #
widgetKeyMap :: Lens' s a Source #
Instances
HasWidgetKeyMap (WidgetEnv s e) (WidgetKeyMap s e) Source # | |
Defined in Monomer.Core.Lens widgetKeyMap :: Lens' (WidgetEnv s e) (WidgetKeyMap s e) Source # |
class HasWindowSize s a | s -> a where Source #
windowSize :: Lens' s a Source #
Instances
HasWindowSize (WidgetEnv s e) Size Source # | |
Defined in Monomer.Core.Lens | |
HasWindowSize (MonomerCtx s e) Size Source # | |
Defined in Monomer.Main.Lens windowSize :: Lens' (MonomerCtx s e) Size Source # |
class HasNode s a | s -> a where Source #
Instances
HasNode (WidgetResult s e) (WidgetNode s e) Source # | |
Defined in Monomer.Core.Lens node :: Lens' (WidgetResult s e) (WidgetNode s e) Source # |
class HasRequests s a | s -> a where Source #
Instances
HasRequests (WidgetResult s e) (Seq (WidgetRequest s e)) Source # | |
Defined in Monomer.Core.Lens requests :: Lens' (WidgetResult s e) (Seq (WidgetRequest s e)) Source # |
class HasChildren s a | s -> a where Source #
Instances
HasChildren WidgetInstanceNode (Seq WidgetInstanceNode) Source # | |
Defined in Monomer.Core.Lens | |
HasChildren (WidgetNode s e) (Seq (WidgetNode s e)) Source # | |
Defined in Monomer.Core.Lens children :: Lens' (WidgetNode s e) (Seq (WidgetNode s e)) Source # |
class HasInfo s a | s -> a where Source #
Instances
HasInfo WidgetInstanceNode WidgetNodeInfo Source # | |
Defined in Monomer.Core.Lens | |
HasInfo (WidgetNode s e) WidgetNodeInfo Source # | |
Defined in Monomer.Core.Lens info :: Lens' (WidgetNode s e) WidgetNodeInfo Source # |
class HasWidget s a | s -> a where Source #
Instances
HasWidget (WidgetNode s e) (Widget s e) Source # | |
Defined in Monomer.Core.Lens |
class HasEnabled s a | s -> a where Source #
Instances
HasEnabled WidgetNodeInfo Bool Source # | |
Defined in Monomer.Core.Lens |
class HasFocusable s a | s -> a where Source #
Instances
HasFocusable WidgetNodeInfo Bool Source # | |
Defined in Monomer.Core.Lens |
class HasKey s a | s -> a where Source #
Instances
HasKey WidgetNodeInfo (Maybe WidgetKey) Source # | |
Defined in Monomer.Core.Lens |
class HasStyle s a | s -> a where Source #
Instances
HasStyle WidgetNodeInfo Style Source # | |
Defined in Monomer.Core.Lens |
class HasVisible s a | s -> a where Source #
Instances
HasVisible WidgetNodeInfo Bool Source # | |
Defined in Monomer.Core.Lens |
class HasWidgetId s a | s -> a where Source #
Instances
HasWidgetId WidgetNodeInfo WidgetId Source # | |
Defined in Monomer.Core.Lens | |
HasWidgetId DragAction WidgetId Source # | |
Defined in Monomer.Main.Lens | |
HasWidgetId RenderSchedule WidgetId Source # | |
Defined in Monomer.Main.Lens |
class HasState s a | s -> a where Source #
Instances
HasState WidgetInstanceNode (Maybe WidgetState) Source # | |
Defined in Monomer.Core.Lens |