mirror of
https://github.com/fjvallarino/monomer.git
synced 2024-11-15 04:05:06 +03:00
Minor documentation updates
This commit is contained in:
parent
3d1c9445ab
commit
19a546e1ff
@ -23,7 +23,6 @@ module Monomer.Core.Combinators where
|
|||||||
import Control.Lens (ALens')
|
import Control.Lens (ALens')
|
||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
|
|
||||||
import Monomer.Common
|
|
||||||
import Monomer.Core.StyleTypes
|
import Monomer.Core.StyleTypes
|
||||||
import Monomer.Core.WidgetTypes
|
import Monomer.Core.WidgetTypes
|
||||||
import Monomer.Event.Types
|
import Monomer.Event.Types
|
||||||
|
@ -50,15 +50,15 @@ Configuration options for button:
|
|||||||
- 'ellipsis': if ellipsis should be used for overflown text.
|
- 'ellipsis': if ellipsis should be used for overflown text.
|
||||||
- 'multiline': if text may be split in multiple lines.
|
- 'multiline': if text may be split in multiple lines.
|
||||||
- 'maxLines': maximum number of text lines to show.
|
- 'maxLines': maximum number of text lines to show.
|
||||||
|
- 'resizeFactor': flexibility to have more or less spaced assigned.
|
||||||
|
- 'resizeFactorW': flexibility to have more or less horizontal spaced assigned.
|
||||||
|
- 'resizeFactorH': flexibility to have more or less vertical spaced assigned.
|
||||||
- 'onFocus': event to raise when focus is received.
|
- 'onFocus': event to raise when focus is received.
|
||||||
- 'onFocusReq': 'WidgetRequest' to generate when focus is received.
|
- 'onFocusReq': 'WidgetRequest' to generate when focus is received.
|
||||||
- 'onBlur': event to raise when focus is lost.
|
- 'onBlur': event to raise when focus is lost.
|
||||||
- 'onBlurReq': 'WidgetRequest' to generate when focus is lost.
|
- 'onBlurReq': 'WidgetRequest' to generate when focus is lost.
|
||||||
- 'onClick': event to raise when button is clicked.
|
- 'onClick': event to raise when button is clicked.
|
||||||
- 'onClickReq': 'WidgetRequest' to generate when button is clicked.
|
- 'onClickReq': 'WidgetRequest' to generate when button is clicked.
|
||||||
- 'resizeFactor': flexibility to have more or less spaced assigned.
|
|
||||||
- 'resizeFactorW': flexibility to have more or less horizontal spaced assigned.
|
|
||||||
- 'resizeFactorH': flexibility to have more or less vertical spaced assigned.
|
|
||||||
-}
|
-}
|
||||||
data ButtonCfg s e = ButtonCfg {
|
data ButtonCfg s e = ButtonCfg {
|
||||||
_btnButtonType :: Maybe ButtonType,
|
_btnButtonType :: Maybe ButtonType,
|
||||||
|
@ -46,15 +46,15 @@ Configuration options for externalLink:
|
|||||||
- 'ellipsis': if ellipsis should be used for overflown text.
|
- 'ellipsis': if ellipsis should be used for overflown text.
|
||||||
- 'multiline': if text may be split in multiple lines.
|
- 'multiline': if text may be split in multiple lines.
|
||||||
- 'maxLines': maximum number of text lines to show.
|
- 'maxLines': maximum number of text lines to show.
|
||||||
|
- 'resizeFactor': flexibility to have more or less spaced assigned.
|
||||||
|
- 'resizeFactorW': flexibility to have more or less horizontal spaced assigned.
|
||||||
|
- 'resizeFactorH': flexibility to have more or less vertical spaced assigned.
|
||||||
- 'onFocus': event to raise when focus is received.
|
- 'onFocus': event to raise when focus is received.
|
||||||
- 'onFocusReq': 'WidgetRequest' to generate when focus is received.
|
- 'onFocusReq': 'WidgetRequest' to generate when focus is received.
|
||||||
- 'onBlur': event to raise when focus is lost.
|
- 'onBlur': event to raise when focus is lost.
|
||||||
- 'onBlurReq': 'WidgetRequest' to generate when focus is lost.
|
- 'onBlurReq': 'WidgetRequest' to generate when focus is lost.
|
||||||
- 'onClick': event to raise when button is clicked.
|
- 'onClick': event to raise when button is clicked.
|
||||||
- 'onClickReq': 'WidgetRequest' to generate when button is clicked.
|
- 'onClickReq': 'WidgetRequest' to generate when button is clicked.
|
||||||
- 'resizeFactor': flexibility to have more or less spaced assigned.
|
|
||||||
- 'resizeFactorW': flexibility to have more or less horizontal spaced assigned.
|
|
||||||
- 'resizeFactorH': flexibility to have more or less vertical spaced assigned.
|
|
||||||
-}
|
-}
|
||||||
data ExternalLinkCfg s e = ExternalLinkCfg {
|
data ExternalLinkCfg s e = ExternalLinkCfg {
|
||||||
_elcLabelCfg :: LabelCfg s e,
|
_elcLabelCfg :: LabelCfg s e,
|
||||||
|
@ -133,8 +133,8 @@ instance CmbResizeFactorDim (LabelCfg s e) where
|
|||||||
labelCurrentStyle
|
labelCurrentStyle
|
||||||
:: (WidgetEnv s e -> WidgetNode s e -> StyleState)
|
:: (WidgetEnv s e -> WidgetNode s e -> StyleState)
|
||||||
-> LabelCfg s e
|
-> LabelCfg s e
|
||||||
labelCurrentStyle style = def {
|
labelCurrentStyle styleFn = def {
|
||||||
_lscCurrentStyle = Just style
|
_lscCurrentStyle = Just styleFn
|
||||||
}
|
}
|
||||||
|
|
||||||
data LabelState = LabelState {
|
data LabelState = LabelState {
|
||||||
|
Loading…
Reference in New Issue
Block a user