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 |
Combinator typeclasses used for style and widget configutation. The reason for using typeclasses is for the ability to reuse names such as onClick.
Boolean combinators in general have two versions:
- combinatorName: uses the default value, normally True, and is derived from the combinator with _ suffix.
- combinatorName_: receives a boolean parameter. This is the function that needs to be overriden in widgets.
Synopsis
- class CmbMergeRequired t w s | t -> w s where
- mergeRequired :: (w -> s -> s -> Bool) -> t
- class CmbValidInput t s | t -> s where
- validInput :: ALens' s Bool -> t
- class CmbValidInputV t e | t -> e where
- validInputV :: (Bool -> e) -> t
- class CmbSelectOnFocus t where
- selectOnFocus :: t
- selectOnFocus_ :: Bool -> t
- class CmbReadOnly t where
- class CmbResizeOnChange t where
- resizeOnChange :: t
- resizeOnChange_ :: Bool -> t
- class CmbAutoStart t where
- autoStart :: t
- autoStart_ :: Bool -> t
- class CmbDuration t a | t -> a where
- duration :: a -> t
- class CmbTitleCaption t where
- titleCaption :: Text -> t
- class CmbAcceptCaption t where
- acceptCaption :: Text -> t
- class CmbCancelCaption t where
- cancelCaption :: Text -> t
- class CmbCloseCaption t where
- closeCaption :: Text -> t
- class CmbMinValue t a | t -> a where
- minValue :: a -> t
- class CmbMaxValue t a | t -> a where
- maxValue :: a -> t
- class CmbDragRate t a | t -> a where
- dragRate :: a -> t
- class CmbWheelRate t a | t -> a where
- wheelRate :: a -> t
- class CmbIgnoreEmptyArea t where
- ignoreEmptyArea :: t
- ignoreEmptyArea_ :: Bool -> t
- class CmbDecimals t where
- class CmbMaxLength t where
- class CmbMaxLines t where
- class CmbAcceptTab t where
- acceptTab :: t
- acceptTab_ :: Bool -> t
- class CmbMultiline t where
- multiline :: t
- multiline_ :: Bool -> t
- class CmbEllipsis t where
- class CmbTrimSpaces t where
- trimSpaces :: t
- trimSpaces_ :: Bool -> t
- class CmbSelectOnBlur t where
- selectOnBlur :: t
- selectOnBlur_ :: Bool -> t
- class CmbPlaceholder t a | t -> a where
- placeholder :: a -> t
- class CmbCaretWidth t a | t -> a where
- caretWidth :: a -> t
- class CmbCaretMs t a | t -> a where
- caretMs :: a -> t
- class CmbTextFont t where
- class CmbTextSize t where
- class CmbTextSpaceH t where
- textSpaceH :: Double -> t
- class CmbTextSpaceV t where
- textSpaceV :: Double -> t
- class CmbTextColor t where
- class CmbTextLeft t where
- class CmbTextCenter t where
- textCenter :: t
- textCenter_ :: Bool -> t
- class CmbTextRight t where
- textRight :: t
- textRight_ :: Bool -> t
- class CmbTextTop t where
- class CmbTextMiddle t where
- textMiddle :: t
- textMiddle_ :: Bool -> t
- class CmbTextAscender t where
- textAscender :: t
- textAscender_ :: Bool -> t
- class CmbTextLowerX t where
- textLowerX :: t
- textLowerX_ :: Bool -> t
- class CmbTextBottom t where
- textBottom :: t
- textBottom_ :: Bool -> t
- class CmbTextBaseline t where
- textBaseline :: t
- textBaseline_ :: Bool -> t
- class CmbTextUnderline t where
- textUnderline :: t
- textUnderline_ :: Bool -> t
- class CmbTextOverline t where
- textOverline :: t
- textOverline_ :: Bool -> t
- class CmbTextThroughline t where
- textThroughline :: t
- textThroughline_ :: Bool -> t
- class CmbTextLineBreak t where
- textLineBreak :: LineBreak -> t
- class CmbFitNone t where
- fitNone :: t
- class CmbFitFill t where
- fitFill :: t
- class CmbFitWidth t where
- fitWidth :: t
- class CmbFitHeight t where
- fitHeight :: t
- class CmbFitEither t where
- fitEither :: t
- class CmbImageNearest t where
- imageNearest :: t
- class CmbImageRepeatX t where
- imageRepeatX :: t
- class CmbImageRepeatY t where
- imageRepeatY :: t
- class CmbBarColor t where
- class CmbBarHoverColor t where
- barHoverColor :: Color -> t
- class CmbBarWidth t where
- class CmbThumbColor t where
- thumbColor :: Color -> t
- class CmbThumbHoverColor t where
- thumbHoverColor :: Color -> t
- class CmbThumbFactor t where
- thumbFactor :: Double -> t
- class CmbThumbRadius t where
- thumbRadius :: Double -> t
- class CmbThumbVisible t where
- thumbVisible :: t
- thumbVisible_ :: Bool -> t
- class CmbThumbWidth t where
- thumbWidth :: Double -> t
- class CmbThumbMinSize t where
- thumbMinSize :: Double -> t
- class CmbShowAlpha t where
- showAlpha :: t
- showAlpha_ :: Bool -> t
- class CmbIgnoreChildrenEvts t where
- ignoreChildrenEvts :: t
- ignoreChildrenEvts_ :: Bool -> t
- class CmbIgnoreParentEvts t where
- ignoreParentEvts :: t
- ignoreParentEvts_ :: Bool -> t
- class CmbOnInit t e | t -> e where
- onInit :: e -> t
- class CmbOnInitReq t s e | t -> s e where
- onInitReq :: WidgetRequest s e -> t
- class CmbOnDispose t e | t -> e where
- onDispose :: e -> t
- class CmbOnDisposeReq t s e | t -> s e where
- onDisposeReq :: WidgetRequest s e -> t
- class CmbOnResize t e a | t -> e a where
- onResize :: (a -> e) -> t
- class CmbOnFocus t e a | t -> e a where
- onFocus :: (a -> e) -> t
- class CmbOnFocusReq t s e a | t -> s e a where
- onFocusReq :: (a -> WidgetRequest s e) -> t
- class CmbOnBlur t e a | t -> e a where
- onBlur :: (a -> e) -> t
- class CmbOnBlurReq t s e a | t -> s e a where
- onBlurReq :: (a -> WidgetRequest s e) -> t
- class CmbOnEnter t e | t -> e where
- onEnter :: e -> t
- class CmbOnEnterReq t s e | t -> s e where
- onEnterReq :: WidgetRequest s e -> t
- class CmbOnLeave t e | t -> e where
- onLeave :: e -> t
- class CmbOnLeaveReq t s e | t -> s e where
- onLeaveReq :: WidgetRequest s e -> t
- class CmbOnClick t e | t -> e where
- onClick :: e -> t
- class CmbOnClickReq t s e | t -> s e where
- onClickReq :: WidgetRequest s e -> t
- class CmbOnClickEmpty t e | t -> e where
- onClickEmpty :: e -> t
- class CmbOnClickEmptyReq t s e | t -> s e where
- onClickEmptyReq :: WidgetRequest s e -> t
- class CmbOnBtnPressed t e | t -> e where
- onBtnPressed :: (Button -> Int -> e) -> t
- class CmbOnBtnPressedReq t s e | t -> s e where
- onBtnPressedReq :: (Button -> Int -> WidgetRequest s e) -> t
- class CmbOnBtnReleased t e | t -> e where
- onBtnReleased :: (Button -> Int -> e) -> t
- class CmbOnBtnReleasedReq t s e | t -> s e where
- onBtnReleasedReq :: (Button -> Int -> WidgetRequest s e) -> t
- class CmbOnEnabledChange t e | t -> e where
- onEnabledChange :: e -> t
- class CmbOnVisibleChange t e | t -> e where
- onVisibleChange :: e -> t
- class CmbOnChange t a e | t -> e where
- onChange :: (a -> e) -> t
- class CmbOnChangeIdx t e a | t -> e a where
- onChangeIdx :: (Int -> a -> e) -> t
- class CmbOnChangeReq t s e a | t -> s e a where
- onChangeReq :: (a -> WidgetRequest s e) -> t
- class CmbOnChangeIdxReq t s e a | t -> s e a where
- onChangeIdxReq :: (Int -> a -> WidgetRequest s e) -> t
- class CmbOnLoadError t e a | t -> e a where
- onLoadError :: (a -> e) -> t
- class CmbOnFinished t e | t -> e where
- onFinished :: e -> t
- class CmbWidth t where
- class CmbHeight t where
- class CmbFlexWidth t where
- class CmbFlexHeight t where
- flexHeight :: Double -> t
- class CmbMinWidth t where
- class CmbMinHeight t where
- class CmbMaxWidth t where
- class CmbMaxHeight t where
- class CmbExpandWidth t where
- expandWidth :: Double -> t
- class CmbExpandHeight t where
- expandHeight :: Double -> t
- class CmbRangeWidth t where
- rangeWidth :: Double -> Double -> t
- class CmbRangeHeight t where
- rangeHeight :: Double -> Double -> t
- class CmbSizeReqW t where
- class CmbSizeReqH t where
- class CmbSizeReqUpdater t where
- sizeReqUpdater :: ((SizeReq, SizeReq) -> (SizeReq, SizeReq)) -> t
- class CmbResizeFactor t where
- resizeFactor :: Double -> t
- class CmbResizeFactorDim t where
- resizeFactorW :: Double -> t
- resizeFactorH :: Double -> t
- class CmbStyleBasic t where
- styleBasic :: t -> [StyleState] -> t
- styleBasicSet :: t -> [StyleState] -> t
- class CmbStyleHover t where
- styleHover :: t -> [StyleState] -> t
- styleHoverSet :: t -> [StyleState] -> t
- class CmbStyleFocus t where
- styleFocus :: t -> [StyleState] -> t
- styleFocusSet :: t -> [StyleState] -> t
- class CmbStyleFocusHover t where
- styleFocusHover :: t -> [StyleState] -> t
- styleFocusHoverSet :: t -> [StyleState] -> t
- class CmbStyleActive t where
- styleActive :: t -> [StyleState] -> t
- styleActiveSet :: t -> [StyleState] -> t
- class CmbStyleDisabled t where
- styleDisabled :: t -> [StyleState] -> t
- styleDisabledSet :: t -> [StyleState] -> t
- class CmbIgnoreTheme t where
- ignoreTheme :: t
- ignoreTheme_ :: Bool -> t
- class CmbBgColor t where
- class CmbFgColor t where
- class CmbSndColor t where
- class CmbHlColor t where
- class CmbTransparency t where
- transparency :: Double -> t
- class CmbCursorIcon t where
- cursorArrow :: t
- cursorHand :: t
- cursorIBeam :: t
- cursorInvalid :: t
- cursorSizeH :: t
- cursorSizeV :: t
- cursorDiagTL :: t
- cursorDiagTR :: t
- cursorIcon :: CursorIcon -> t
- class CmbItemBasicStyle t s | t -> s where
- itemBasicStyle :: s -> t
- class CmbItemHoverStyle t s | t -> s where
- itemHoverStyle :: s -> t
- class CmbItemSelectedStyle t s | t -> s where
- itemSelectedStyle :: s -> t
- class CmbAlignLeft t where
- alignLeft :: t
- alignLeft_ :: Bool -> t
- class CmbAlignCenter t where
- alignCenter :: t
- alignCenter_ :: Bool -> t
- class CmbAlignRight t where
- alignRight :: t
- alignRight_ :: Bool -> t
- class CmbAlignTop t where
- class CmbAlignMiddle t where
- alignMiddle :: t
- alignMiddle_ :: Bool -> t
- class CmbAlignBottom t where
- alignBottom :: t
- alignBottom_ :: Bool -> t
- class CmbPadding t where
- class CmbPaddingL t where
- class CmbPaddingR t where
- class CmbPaddingT t where
- class CmbPaddingB t where
- class CmbBorder t where
- class CmbBorderL t where
- class CmbBorderR t where
- class CmbBorderT t where
- class CmbBorderB t where
- class CmbRadius t where
- class CmbRadiusTL t where
- class CmbRadiusTR t where
- class CmbRadiusBL t where
- class CmbRadiusBR t where
- class CmbChildSpacing t where
- childSpacing :: t
- childSpacing_ :: Double -> t
Documentation
class CmbMergeRequired t w s | t -> w s where Source #
Given two values, usually model, checks if merge is required for a given widget.
The first parameter usually corresponds to the current WidgetEnv
, the second
to the old valuemodel, and the third to the newmodel.
This is used, for example, by _composite_ and _box_.
mergeRequired :: (w -> s -> s -> Bool) -> t Source #
Instances
CmbMergeRequired (BoxCfg s e) (WidgetEnv s e) s Source # | |
Defined in Monomer.Widgets.Containers.Box | |
CmbMergeRequired (SelectListCfg s e a) (WidgetEnv s e) (Seq a) Source # | |
Defined in Monomer.Widgets.Containers.SelectList mergeRequired :: (WidgetEnv s e -> Seq a -> Seq a -> Bool) -> SelectListCfg s e a Source # | |
CmbMergeRequired (CompositeCfg s e sp ep) (WidgetEnv s e) s Source # | |
Defined in Monomer.Widgets.Composite mergeRequired :: (WidgetEnv s e -> s -> s -> Bool) -> CompositeCfg s e sp ep Source # |
class CmbValidInput t s | t -> s where Source #
Listener for the validation status of a user input field using a lens.
Allows associating a flag to know if the input of a field with validation settings is valid. This can be used with _textField_, _numericField_, _dateField_ and _timeField_.
The flag can be used for styling the component according to the current status.
Beyond styling, its usage is needed for validation purposes. Taking
_numericField_ as an example, one can bind a Double
record field to it and set
a valid range from 0 to 100. When the user inputs 100, the record field will
reflect the correct value. If the user adds a 0 (the numericField showing 1000),
the record field will still have 100 because it's the last valid value. Since
there is not a way of indicating errors when using primitive types (a Double
is just a number), we can rely on the flag to check its validity.
validInput :: ALens' s Bool -> t Source #
Instances
CmbValidInput (TextFieldCfg s e) s Source # | |
Defined in Monomer.Widgets.Singles.TextField validInput :: ALens' s Bool -> TextFieldCfg s e Source # | |
CmbValidInput (TimeFieldCfg s e a) s Source # | |
Defined in Monomer.Widgets.Singles.TimeField validInput :: ALens' s Bool -> TimeFieldCfg s e a Source # | |
CmbValidInput (NumericFieldCfg s e a) s Source # | |
Defined in Monomer.Widgets.Singles.NumericField validInput :: ALens' s Bool -> NumericFieldCfg s e a Source # | |
CmbValidInput (DateFieldCfg s e a) s Source # | |
Defined in Monomer.Widgets.Singles.DateField validInput :: ALens' s Bool -> DateFieldCfg s e a Source # |
class CmbValidInputV t e | t -> e where Source #
Listener for the validation status of a user input field using an event handler, avoiding the need of a lens.
Check CmbValidInput
for details.
validInputV :: (Bool -> e) -> t Source #
Instances
CmbValidInputV (TextFieldCfg s e) e Source # | |
Defined in Monomer.Widgets.Singles.TextField validInputV :: (Bool -> e) -> TextFieldCfg s e Source # | |
CmbValidInputV (TimeFieldCfg s e a) e Source # | |
Defined in Monomer.Widgets.Singles.TimeField validInputV :: (Bool -> e) -> TimeFieldCfg s e a Source # | |
CmbValidInputV (NumericFieldCfg s e a) e Source # | |
Defined in Monomer.Widgets.Singles.NumericField validInputV :: (Bool -> e) -> NumericFieldCfg s e a Source # | |
CmbValidInputV (DateFieldCfg s e a) e Source # | |
Defined in Monomer.Widgets.Singles.DateField validInputV :: (Bool -> e) -> DateFieldCfg s e a Source # |
class CmbSelectOnFocus t where Source #
Defines whether a widget selects all its content when receiving focus.
selectOnFocus :: t Source #
selectOnFocus_ :: Bool -> t Source #
Instances
CmbSelectOnFocus (TextFieldCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextField selectOnFocus :: TextFieldCfg s e Source # selectOnFocus_ :: Bool -> TextFieldCfg s e Source # | |
CmbSelectOnFocus (TextAreaCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextArea selectOnFocus :: TextAreaCfg s e Source # selectOnFocus_ :: Bool -> TextAreaCfg s e Source # | |
CmbSelectOnFocus (TimeFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.TimeField selectOnFocus :: TimeFieldCfg s e a Source # selectOnFocus_ :: Bool -> TimeFieldCfg s e a Source # | |
CmbSelectOnFocus (NumericFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.NumericField selectOnFocus :: NumericFieldCfg s e a Source # selectOnFocus_ :: Bool -> NumericFieldCfg s e a Source # | |
CmbSelectOnFocus (DateFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.DateField selectOnFocus :: DateFieldCfg s e a Source # selectOnFocus_ :: Bool -> DateFieldCfg s e a Source # |
class CmbReadOnly t where Source #
Defines whether a widget prevents the user changing the value. Note that, in contrast to a disabled widget, a read-only widget can still be focused and still allows selecting and copying the value.
Instances
CmbReadOnly (TextFieldCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextField readOnly :: TextFieldCfg s e Source # readOnly_ :: Bool -> TextFieldCfg s e Source # | |
CmbReadOnly (TextAreaCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextArea readOnly :: TextAreaCfg s e Source # readOnly_ :: Bool -> TextAreaCfg s e Source # | |
CmbReadOnly (TimeFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.TimeField readOnly :: TimeFieldCfg s e a Source # readOnly_ :: Bool -> TimeFieldCfg s e a Source # | |
CmbReadOnly (NumericFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.NumericField readOnly :: NumericFieldCfg s e a Source # readOnly_ :: Bool -> NumericFieldCfg s e a Source # | |
CmbReadOnly (DateFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.DateField readOnly :: DateFieldCfg s e a Source # readOnly_ :: Bool -> DateFieldCfg s e a Source # |
class CmbResizeOnChange t where Source #
Defines whether a widget changes its size when the model changes.
resizeOnChange :: t Source #
resizeOnChange_ :: Bool -> t Source #
Instances
CmbResizeOnChange (TextFieldCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextField resizeOnChange :: TextFieldCfg s e Source # resizeOnChange_ :: Bool -> TextFieldCfg s e Source # | |
CmbResizeOnChange (TimeFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.TimeField resizeOnChange :: TimeFieldCfg s e a Source # resizeOnChange_ :: Bool -> TimeFieldCfg s e a Source # | |
CmbResizeOnChange (NumericFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.NumericField resizeOnChange :: NumericFieldCfg s e a Source # resizeOnChange_ :: Bool -> NumericFieldCfg s e a Source # | |
CmbResizeOnChange (DateFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.DateField resizeOnChange :: DateFieldCfg s e a Source # resizeOnChange_ :: Bool -> DateFieldCfg s e a Source # |
class CmbAutoStart t where Source #
Defines whether animation should start automatically.
Instances
CmbAutoStart (SlideCfg e) Source # | |
Defined in Monomer.Widgets.Animation.Slide | |
CmbAutoStart (FadeCfg e) Source # | |
Defined in Monomer.Widgets.Animation.Fade |
class CmbDuration t a | t -> a where Source #
Defines the animation length.
Instances
CmbDuration (SlideCfg e) Millisecond Source # | |
Defined in Monomer.Widgets.Animation.Slide duration :: Millisecond -> SlideCfg e Source # | |
CmbDuration (FadeCfg e) Millisecond Source # | |
Defined in Monomer.Widgets.Animation.Fade duration :: Millisecond -> FadeCfg e Source # |
class CmbTitleCaption t where Source #
Title caption of a widget, usually a dialog.
titleCaption :: Text -> t Source #
Instances
CmbTitleCaption ConfirmCfg Source # | |
Defined in Monomer.Widgets.Containers.Confirm titleCaption :: Text -> ConfirmCfg Source # | |
CmbTitleCaption AlertCfg Source # | |
Defined in Monomer.Widgets.Containers.Alert titleCaption :: Text -> AlertCfg Source # |
class CmbAcceptCaption t where Source #
Accept caption of a widget, usually a button.
acceptCaption :: Text -> t Source #
Instances
CmbAcceptCaption ConfirmCfg Source # | |
Defined in Monomer.Widgets.Containers.Confirm acceptCaption :: Text -> ConfirmCfg Source # |
class CmbCancelCaption t where Source #
Cancel caption of a widget, usually a button.
cancelCaption :: Text -> t Source #
Instances
CmbCancelCaption ConfirmCfg Source # | |
Defined in Monomer.Widgets.Containers.Confirm cancelCaption :: Text -> ConfirmCfg Source # |
class CmbCloseCaption t where Source #
Close caption of a widget, usually a button.
closeCaption :: Text -> t Source #
Instances
CmbCloseCaption AlertCfg Source # | |
Defined in Monomer.Widgets.Containers.Alert closeCaption :: Text -> AlertCfg Source # |
class CmbMinValue t a | t -> a where Source #
Minimum value of a widget, usually numeric.
Instances
FormattableTime a => CmbMinValue (TimeFieldCfg s e a) a Source # | |
Defined in Monomer.Widgets.Singles.TimeField minValue :: a -> TimeFieldCfg s e a Source # | |
FormattableNumber a => CmbMinValue (NumericFieldCfg s e a) a Source # | |
Defined in Monomer.Widgets.Singles.NumericField minValue :: a -> NumericFieldCfg s e a Source # | |
FormattableDate a => CmbMinValue (DateFieldCfg s e a) a Source # | |
Defined in Monomer.Widgets.Singles.DateField minValue :: a -> DateFieldCfg s e a Source # |
class CmbMaxValue t a | t -> a where Source #
Maximum value of a widget, usually numeric.
Instances
FormattableTime a => CmbMaxValue (TimeFieldCfg s e a) a Source # | |
Defined in Monomer.Widgets.Singles.TimeField maxValue :: a -> TimeFieldCfg s e a Source # | |
FormattableNumber a => CmbMaxValue (NumericFieldCfg s e a) a Source # | |
Defined in Monomer.Widgets.Singles.NumericField maxValue :: a -> NumericFieldCfg s e a Source # | |
FormattableDate a => CmbMaxValue (DateFieldCfg s e a) a Source # | |
Defined in Monomer.Widgets.Singles.DateField maxValue :: a -> DateFieldCfg s e a Source # |
class CmbDragRate t a | t -> a where Source #
Drag rate of a widget, usually numeric.
Instances
CmbDragRate (SliderCfg s e a) Rational Source # | |
CmbDragRate (DialCfg s e a) Rational Source # | |
CmbDragRate (TimeFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.TimeField dragRate :: Double -> TimeFieldCfg s e a Source # | |
CmbDragRate (NumericFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.NumericField dragRate :: Double -> NumericFieldCfg s e a Source # | |
CmbDragRate (DateFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.DateField dragRate :: Double -> DateFieldCfg s e a Source # |
class CmbWheelRate t a | t -> a where Source #
Wheel rate of a widget, usually numeric or scrollable.
Instances
CmbWheelRate (ScrollCfg s e) Rational Source # | |
CmbWheelRate (SliderCfg s e a) Rational Source # | |
CmbWheelRate (DialCfg s e a) Rational Source # | |
CmbWheelRate (TimeFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.TimeField wheelRate :: Double -> TimeFieldCfg s e a Source # | |
CmbWheelRate (NumericFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.NumericField wheelRate :: Double -> NumericFieldCfg s e a Source # | |
CmbWheelRate (DateFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.DateField wheelRate :: Double -> DateFieldCfg s e a Source # |
class CmbIgnoreEmptyArea t where Source #
Whether to ignore pointer events where no widget exists.
ignoreEmptyArea :: t Source #
ignoreEmptyArea_ :: Bool -> t Source #
Instances
CmbIgnoreEmptyArea StackCfg Source # | |
Defined in Monomer.Widgets.Containers.Stack | |
CmbIgnoreEmptyArea (BoxCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Box ignoreEmptyArea :: BoxCfg s e Source # ignoreEmptyArea_ :: Bool -> BoxCfg s e Source # |
class CmbDecimals t where Source #
How many decimals a numeric widget accepts.
Instances
CmbDecimals (NumericFieldCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.NumericField decimals :: Int -> NumericFieldCfg s e a Source # |
class CmbMaxLength t where Source #
Max length a widget accepts.
Instances
CmbMaxLength (TextFieldCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextField maxLength :: Int -> TextFieldCfg s e Source # | |
CmbMaxLength (TextAreaCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextArea maxLength :: Int -> TextAreaCfg s e Source # |
class CmbMaxLines t where Source #
Max lines a widget accepts.
Instances
CmbMaxLines (LabelCfg s e) Source # | |
CmbMaxLines (ExternalLinkCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.ExternalLink maxLines :: Int -> ExternalLinkCfg s e Source # | |
CmbMaxLines (ButtonCfg s e) Source # | |
CmbMaxLines (TextAreaCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextArea maxLines :: Int -> TextAreaCfg s e Source # | |
CmbMaxLines (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox maxLines :: Int -> LabeledCheckboxCfg s e Source # | |
CmbMaxLines (OptionButtonCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.OptionButton maxLines :: Int -> OptionButtonCfg s e a Source # | |
CmbMaxLines (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio maxLines :: Int -> LabeledRadioCfg s e a Source # |
class CmbAcceptTab t where Source #
Whether a widget accepts tab key.
Instances
CmbAcceptTab (TextAreaCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.TextArea acceptTab :: TextAreaCfg s e Source # acceptTab_ :: Bool -> TextAreaCfg s e Source # |
class CmbMultiline t where Source #
Whether a text based widget is multiline.
Instances
CmbMultiline (LabelCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.Label | |
CmbMultiline (ExternalLinkCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.ExternalLink multiline :: ExternalLinkCfg s e Source # multiline_ :: Bool -> ExternalLinkCfg s e Source # | |
CmbMultiline (ButtonCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.Button | |
CmbMultiline (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox multiline :: LabeledCheckboxCfg s e Source # multiline_ :: Bool -> LabeledCheckboxCfg s e Source # | |
CmbMultiline (OptionButtonCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.OptionButton multiline :: OptionButtonCfg s e a Source # multiline_ :: Bool -> OptionButtonCfg s e a Source # | |
CmbMultiline (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio multiline :: LabeledRadioCfg s e a Source # multiline_ :: Bool -> LabeledRadioCfg s e a Source # |
class CmbEllipsis t where Source #
Whether to use ellipsis or not.
Instances
CmbEllipsis (LabelCfg s e) Source # | |
CmbEllipsis (ExternalLinkCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.ExternalLink ellipsis :: ExternalLinkCfg s e Source # ellipsis_ :: Bool -> ExternalLinkCfg s e Source # | |
CmbEllipsis (ButtonCfg s e) Source # | |
CmbEllipsis (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox ellipsis :: LabeledCheckboxCfg s e Source # ellipsis_ :: Bool -> LabeledCheckboxCfg s e Source # | |
CmbEllipsis (OptionButtonCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.OptionButton ellipsis :: OptionButtonCfg s e a Source # ellipsis_ :: Bool -> OptionButtonCfg s e a Source # | |
CmbEllipsis (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio ellipsis :: LabeledRadioCfg s e a Source # ellipsis_ :: Bool -> LabeledRadioCfg s e a Source # |
class CmbTrimSpaces t where Source #
Whether to trim spaces or not.
trimSpaces :: t Source #
trimSpaces_ :: Bool -> t Source #
Instances
class CmbSelectOnBlur t where Source #
Whether to automatically select a value on blur (for example, dropdown).
selectOnBlur :: t Source #
selectOnBlur_ :: Bool -> t Source #
Instances
CmbSelectOnBlur (SelectListCfg s e a) Source # | |
Defined in Monomer.Widgets.Containers.SelectList selectOnBlur :: SelectListCfg s e a Source # selectOnBlur_ :: Bool -> SelectListCfg s e a Source # |
class CmbPlaceholder t a | t -> a where Source #
Placeholder to use when main value is empty.
placeholder :: a -> t Source #
Instances
CmbPlaceholder (TextFieldCfg s e) Text Source # | |
Defined in Monomer.Widgets.Singles.TextField placeholder :: Text -> TextFieldCfg s e Source # |
class CmbCaretWidth t a | t -> a where Source #
Width of the caret in a text widget.
caretWidth :: a -> t Source #
Instances
CmbCaretWidth (TextFieldCfg s e) Double Source # | |
Defined in Monomer.Widgets.Singles.TextField caretWidth :: Double -> TextFieldCfg s e Source # | |
CmbCaretWidth (TextAreaCfg s e) Double Source # | |
Defined in Monomer.Widgets.Singles.TextArea caretWidth :: Double -> TextAreaCfg s e Source # | |
CmbCaretWidth (TimeFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.TimeField caretWidth :: Double -> TimeFieldCfg s e a Source # | |
CmbCaretWidth (NumericFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.NumericField caretWidth :: Double -> NumericFieldCfg s e a Source # | |
CmbCaretWidth (DateFieldCfg s e a) Double Source # | |
Defined in Monomer.Widgets.Singles.DateField caretWidth :: Double -> DateFieldCfg s e a Source # |
class CmbCaretMs t a | t -> a where Source #
Blink period of the caret in a text widget.
Instances
CmbCaretMs (TextFieldCfg s e) Millisecond Source # | |
Defined in Monomer.Widgets.Singles.TextField caretMs :: Millisecond -> TextFieldCfg s e Source # | |
CmbCaretMs (TextAreaCfg s e) Millisecond Source # | |
Defined in Monomer.Widgets.Singles.TextArea caretMs :: Millisecond -> TextAreaCfg s e Source # | |
CmbCaretMs (TimeFieldCfg s e a) Millisecond Source # | |
Defined in Monomer.Widgets.Singles.TimeField caretMs :: Millisecond -> TimeFieldCfg s e a Source # | |
CmbCaretMs (NumericFieldCfg s e a) Millisecond Source # | |
Defined in Monomer.Widgets.Singles.NumericField caretMs :: Millisecond -> NumericFieldCfg s e a Source # | |
CmbCaretMs (DateFieldCfg s e a) Millisecond Source # | |
Defined in Monomer.Widgets.Singles.DateField caretMs :: Millisecond -> DateFieldCfg s e a Source # |
class CmbTextFont t where Source #
Text font.
Instances
CmbTextFont TextStyle Source # | |
CmbTextFont StyleState Source # | |
Defined in Monomer.Core.Style textFont :: Font -> StyleState Source # |
class CmbTextSize t where Source #
Text size.
Instances
CmbTextSize TextStyle Source # | |
CmbTextSize StyleState Source # | |
Defined in Monomer.Core.Style textSize :: Double -> StyleState Source # |
class CmbTextSpaceH t where Source #
Horizontal text spacing.
textSpaceH :: Double -> t Source #
Instances
CmbTextSpaceH TextStyle Source # | |
Defined in Monomer.Core.Style textSpaceH :: Double -> TextStyle Source # | |
CmbTextSpaceH StyleState Source # | |
Defined in Monomer.Core.Style textSpaceH :: Double -> StyleState Source # |
class CmbTextSpaceV t where Source #
Vertical text spacing.
textSpaceV :: Double -> t Source #
Instances
CmbTextSpaceV TextStyle Source # | |
Defined in Monomer.Core.Style textSpaceV :: Double -> TextStyle Source # | |
CmbTextSpaceV StyleState Source # | |
Defined in Monomer.Core.Style textSpaceV :: Double -> StyleState Source # |
class CmbTextColor t where Source #
Text color.
Instances
CmbTextColor TextStyle Source # | |
CmbTextColor StyleState Source # | |
Defined in Monomer.Core.Style textColor :: Color -> StyleState Source # |
class CmbTextLeft t where Source #
Align text to the left.
Instances
CmbTextLeft TextStyle Source # | |
CmbTextLeft StyleState Source # | |
Defined in Monomer.Core.Style textLeft :: StyleState Source # textLeft_ :: Bool -> StyleState Source # | |
CmbTextLeft (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox textLeft :: LabeledCheckboxCfg s e Source # textLeft_ :: Bool -> LabeledCheckboxCfg s e Source # | |
CmbTextLeft (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio textLeft :: LabeledRadioCfg s e a Source # textLeft_ :: Bool -> LabeledRadioCfg s e a Source # |
class CmbTextCenter t where Source #
Align text to the center.
textCenter :: t Source #
textCenter_ :: Bool -> t Source #
Instances
CmbTextCenter TextStyle Source # | |
Defined in Monomer.Core.Style textCenter :: TextStyle Source # textCenter_ :: Bool -> TextStyle Source # | |
CmbTextCenter StyleState Source # | |
Defined in Monomer.Core.Style textCenter :: StyleState Source # textCenter_ :: Bool -> StyleState Source # |
class CmbTextRight t where Source #
Align text to the right.
Instances
CmbTextRight TextStyle Source # | |
Defined in Monomer.Core.Style | |
CmbTextRight StyleState Source # | |
Defined in Monomer.Core.Style textRight :: StyleState Source # textRight_ :: Bool -> StyleState Source # | |
CmbTextRight (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox textRight :: LabeledCheckboxCfg s e Source # textRight_ :: Bool -> LabeledCheckboxCfg s e Source # | |
CmbTextRight (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio textRight :: LabeledRadioCfg s e a Source # textRight_ :: Bool -> LabeledRadioCfg s e a Source # |
class CmbTextTop t where Source #
Align text to the top.
Instances
CmbTextTop TextStyle Source # | |
CmbTextTop StyleState Source # | |
Defined in Monomer.Core.Style textTop :: StyleState Source # textTop_ :: Bool -> StyleState Source # | |
CmbTextTop (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox textTop :: LabeledCheckboxCfg s e Source # textTop_ :: Bool -> LabeledCheckboxCfg s e Source # | |
CmbTextTop (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio textTop :: LabeledRadioCfg s e a Source # textTop_ :: Bool -> LabeledRadioCfg s e a Source # |
class CmbTextMiddle t where Source #
Align text to the vertical middle based on the line height.
textMiddle :: t Source #
textMiddle_ :: Bool -> t Source #
Instances
CmbTextMiddle TextStyle Source # | |
Defined in Monomer.Core.Style textMiddle :: TextStyle Source # textMiddle_ :: Bool -> TextStyle Source # | |
CmbTextMiddle StyleState Source # | |
Defined in Monomer.Core.Style textMiddle :: StyleState Source # textMiddle_ :: Bool -> StyleState Source # |
class CmbTextAscender t where Source #
Align text to the vertical middle based on the ascender.
textAscender :: t Source #
textAscender_ :: Bool -> t Source #
Instances
CmbTextAscender TextStyle Source # | |
Defined in Monomer.Core.Style textAscender :: TextStyle Source # textAscender_ :: Bool -> TextStyle Source # | |
CmbTextAscender StyleState Source # | |
Defined in Monomer.Core.Style textAscender :: StyleState Source # textAscender_ :: Bool -> StyleState Source # |
class CmbTextLowerX t where Source #
Align text to the vertical middle based on the x height.
textLowerX :: t Source #
textLowerX_ :: Bool -> t Source #
Instances
CmbTextLowerX TextStyle Source # | |
Defined in Monomer.Core.Style textLowerX :: TextStyle Source # textLowerX_ :: Bool -> TextStyle Source # | |
CmbTextLowerX StyleState Source # | |
Defined in Monomer.Core.Style textLowerX :: StyleState Source # textLowerX_ :: Bool -> StyleState Source # |
class CmbTextBottom t where Source #
Align text to the bottom.
textBottom :: t Source #
textBottom_ :: Bool -> t Source #
Instances
CmbTextBottom TextStyle Source # | |
Defined in Monomer.Core.Style textBottom :: TextStyle Source # textBottom_ :: Bool -> TextStyle Source # | |
CmbTextBottom StyleState Source # | |
Defined in Monomer.Core.Style textBottom :: StyleState Source # textBottom_ :: Bool -> StyleState Source # | |
CmbTextBottom (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox textBottom :: LabeledCheckboxCfg s e Source # textBottom_ :: Bool -> LabeledCheckboxCfg s e Source # | |
CmbTextBottom (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio textBottom :: LabeledRadioCfg s e a Source # textBottom_ :: Bool -> LabeledRadioCfg s e a Source # |
class CmbTextBaseline t where Source #
Align text to the baseline.
textBaseline :: t Source #
textBaseline_ :: Bool -> t Source #
Instances
CmbTextBaseline TextStyle Source # | |
Defined in Monomer.Core.Style textBaseline :: TextStyle Source # textBaseline_ :: Bool -> TextStyle Source # | |
CmbTextBaseline StyleState Source # | |
Defined in Monomer.Core.Style textBaseline :: StyleState Source # textBaseline_ :: Bool -> StyleState Source # |
class CmbTextUnderline t where Source #
Display a line under the text.
textUnderline :: t Source #
textUnderline_ :: Bool -> t Source #
Instances
CmbTextUnderline TextStyle Source # | |
Defined in Monomer.Core.Style textUnderline :: TextStyle Source # textUnderline_ :: Bool -> TextStyle Source # | |
CmbTextUnderline StyleState Source # | |
Defined in Monomer.Core.Style |
class CmbTextOverline t where Source #
Display a line above the text.
textOverline :: t Source #
textOverline_ :: Bool -> t Source #
Instances
CmbTextOverline TextStyle Source # | |
Defined in Monomer.Core.Style textOverline :: TextStyle Source # textOverline_ :: Bool -> TextStyle Source # | |
CmbTextOverline StyleState Source # | |
Defined in Monomer.Core.Style textOverline :: StyleState Source # textOverline_ :: Bool -> StyleState Source # |
class CmbTextThroughline t where Source #
Display a line over the text.
textThroughline :: t Source #
textThroughline_ :: Bool -> t Source #
Instances
CmbTextThroughline TextStyle Source # | |
Defined in Monomer.Core.Style | |
CmbTextThroughline StyleState Source # | |
Defined in Monomer.Core.Style |
class CmbTextLineBreak t where Source #
How to break texts into lines.
textLineBreak :: LineBreak -> t Source #
Instances
CmbTextLineBreak TextStyle Source # | |
Defined in Monomer.Core.Style textLineBreak :: LineBreak -> TextStyle Source # | |
CmbTextLineBreak StyleState Source # | |
Defined in Monomer.Core.Style textLineBreak :: LineBreak -> StyleState Source # |
class CmbFitNone t where Source #
Does not apply any kind of resizing to fit to container.
Instances
CmbFitNone (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image |
class CmbFitFill t where Source #
Fits to use all the container's space.
Instances
CmbFitFill (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image |
class CmbFitWidth t where Source #
Fits to use all the container's width.
Instances
CmbFitWidth (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image |
class CmbFitHeight t where Source #
Fits to use all the container's height.
Instances
CmbFitHeight (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image |
class CmbFitEither t where Source #
Either fitWidth or fitHeight such that image does not overflow viewport
Instances
CmbFitEither (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image |
class CmbImageNearest t where Source #
Applies nearest filtering when stretching an image.
imageNearest :: t Source #
Instances
CmbImageNearest (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image imageNearest :: ImageCfg e Source # |
class CmbImageRepeatX t where Source #
Applies horizontal repetition when stretching an image.
imageRepeatX :: t Source #
Instances
CmbImageRepeatX (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image imageRepeatX :: ImageCfg e Source # |
class CmbImageRepeatY t where Source #
Applies vertical repetition when stretching an image.
imageRepeatY :: t Source #
Instances
CmbImageRepeatY (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image imageRepeatY :: ImageCfg e Source # |
class CmbBarColor t where Source #
The color of a bar, for example in a scroll.
Instances
CmbBarColor (ScrollCfg s e) Source # | |
class CmbBarHoverColor t where Source #
The hover color of a bar, for example in a scroll.
barHoverColor :: Color -> t Source #
Instances
CmbBarHoverColor (ScrollCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Scroll barHoverColor :: Color -> ScrollCfg s e Source # |
class CmbBarWidth t where Source #
The width of a bar, for example in a scroll.
Instances
CmbBarWidth (ScrollCfg s e) Source # | |
class CmbThumbColor t where Source #
The color of a thumb, for example in a scroll.
thumbColor :: Color -> t Source #
Instances
CmbThumbColor (ScrollCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Scroll thumbColor :: Color -> ScrollCfg s e Source # |
class CmbThumbHoverColor t where Source #
The hover color of a thumb, for example in a scroll.
thumbHoverColor :: Color -> t Source #
Instances
CmbThumbHoverColor (ScrollCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Scroll thumbHoverColor :: Color -> ScrollCfg s e Source # |
class CmbThumbFactor t where Source #
The thumb factor. For example, in slider this makes the thumb proportional to the width of the slider.
thumbFactor :: Double -> t Source #
Instances
CmbThumbFactor (SliderCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.Slider thumbFactor :: Double -> SliderCfg s e a Source # |
class CmbThumbRadius t where Source #
The radius of a thumb's rect, for example in a scroll.
thumbRadius :: Double -> t Source #
Instances
CmbThumbRadius (ScrollCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Scroll thumbRadius :: Double -> ScrollCfg s e Source # |
class CmbThumbVisible t where Source #
Whether the thumb is visible, for example in a scroll.
thumbVisible :: t Source #
thumbVisible_ :: Bool -> t Source #
Instances
CmbThumbVisible (SliderCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.Slider thumbVisible :: SliderCfg s e a Source # thumbVisible_ :: Bool -> SliderCfg s e a Source # |
class CmbThumbWidth t where Source #
The width of a thumb, for example in a scroll.
thumbWidth :: Double -> t Source #
Instances
CmbThumbWidth (ScrollCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Scroll thumbWidth :: Double -> ScrollCfg s e Source # |
class CmbThumbMinSize t where Source #
The minimum size of a thumb, for example in a scroll.
thumbMinSize :: Double -> t Source #
Instances
CmbThumbMinSize (ScrollCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Scroll thumbMinSize :: Double -> ScrollCfg s e Source # |
class CmbShowAlpha t where Source #
Whether to show an alpha channel, for instance in color selector.
Instances
CmbShowAlpha (ColorPickerCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.ColorPicker showAlpha :: ColorPickerCfg s e Source # showAlpha_ :: Bool -> ColorPickerCfg s e Source # |
class CmbIgnoreChildrenEvts t where Source #
Whether to ignore children events.
By default low-level events (keyboard, mouse, clipboard, etc) traverse the whole branch where the target widget is located in the widget tree, giving the chance to each widget along the line to respond to the event.
In some cases it is desirable to restrict which widgets can handle an event. Two
different WidgetRequest
s, which can be returned during event handling, exist
for this:
IgnoreChildrenEvents
: parent widgets always have the priority. If a widget returns thisWidgetRequest
during event handling, its children widgets response will be ignored. For example, the _keystroke_ widget can be configured to return this when a keystroke combination matches.IgnoreParentEvents
: if no parent widget requestedIgnoreChildrenEvents
, a widget can respond withIgnoreParentEvents
to have its response being the only one taking place. This is used, for example, by the _textArea_ widget to handle the tab key; without this, the default handler would pass focus to the next widget down the line.
Some of the stock widgets allow configuring this behavior (e.g, keystroke and button).
ignoreChildrenEvts :: t Source #
ignoreChildrenEvts_ :: Bool -> t Source #
Instances
class CmbIgnoreParentEvts t where Source #
Whether to ignore parent events. Check CmbIgnoreChildrenEvts
.
ignoreParentEvts :: t Source #
ignoreParentEvts_ :: Bool -> t Source #
Instances
CmbIgnoreParentEvts (ButtonCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.Button ignoreParentEvts :: ButtonCfg s e Source # ignoreParentEvts_ :: Bool -> ButtonCfg s e Source # |
class CmbOnInit t e | t -> e where Source #
On init event.
Instances
WidgetEvent e => CmbOnInit (CompositeCfg s e sp ep) e Source # | |
Defined in Monomer.Widgets.Composite onInit :: e -> CompositeCfg s e sp ep Source # |
class CmbOnInitReq t s e | t -> s e where Source #
On init WidgetRequest.
onInitReq :: WidgetRequest s e -> t Source #
Instances
CmbOnInitReq (CompositeCfg s e sp ep) s e Source # | |
Defined in Monomer.Widgets.Composite onInitReq :: WidgetRequest s e -> CompositeCfg s e sp ep Source # |
class CmbOnDispose t e | t -> e where Source #
On dispose event.
Instances
WidgetEvent e => CmbOnDispose (CompositeCfg s e sp ep) e Source # | |
Defined in Monomer.Widgets.Composite onDispose :: e -> CompositeCfg s e sp ep Source # |
class CmbOnDisposeReq t s e | t -> s e where Source #
On dispose WidgetRequest.
onDisposeReq :: WidgetRequest s e -> t Source #
Instances
CmbOnDisposeReq (CompositeCfg s e sp ep) s e Source # | |
Defined in Monomer.Widgets.Composite onDisposeReq :: WidgetRequest s e -> CompositeCfg s e sp ep Source # |
class CmbOnResize t e a | t -> e a where Source #
On resize event.
Instances
CmbOnResize (CompositeCfg s e sp ep) e Rect Source # | |
Defined in Monomer.Widgets.Composite onResize :: (Rect -> e) -> CompositeCfg s e sp ep Source # |
class CmbOnFocus t e a | t -> e a where Source #
On focus event.
Instances
class CmbOnFocusReq t s e a | t -> s e a where Source #
On focus WidgetRequest.
onFocusReq :: (a -> WidgetRequest s e) -> t Source #
Instances
class CmbOnBlur t e a | t -> e a where Source #
On blur event.
Instances
class CmbOnBlurReq t s e a | t -> s e a where Source #
On blur WidgetRequest.
onBlurReq :: (a -> WidgetRequest s e) -> t Source #
Instances
class CmbOnEnter t e | t -> e where Source #
On enter event.
Instances
WidgetEvent e => CmbOnEnter (BoxCfg s e) e Source # | |
Defined in Monomer.Widgets.Containers.Box |
class CmbOnEnterReq t s e | t -> s e where Source #
On enter WidgetRequest.
onEnterReq :: WidgetRequest s e -> t Source #
Instances
CmbOnEnterReq (BoxCfg s e) s e Source # | |
Defined in Monomer.Widgets.Containers.Box onEnterReq :: WidgetRequest s e -> BoxCfg s e Source # |
class CmbOnLeave t e | t -> e where Source #
On leave event.
Instances
WidgetEvent e => CmbOnLeave (BoxCfg s e) e Source # | |
Defined in Monomer.Widgets.Containers.Box |
class CmbOnLeaveReq t s e | t -> s e where Source #
On leave WidgetRequest.
onLeaveReq :: WidgetRequest s e -> t Source #
Instances
CmbOnLeaveReq (BoxCfg s e) s e Source # | |
Defined in Monomer.Widgets.Containers.Box onLeaveReq :: WidgetRequest s e -> BoxCfg s e Source # |
class CmbOnClick t e | t -> e where Source #
On click event.
Instances
WidgetEvent e => CmbOnClick (ButtonCfg s e) e Source # | |
Defined in Monomer.Widgets.Singles.Button | |
WidgetEvent e => CmbOnClick (BoxCfg s e) e Source # | |
Defined in Monomer.Widgets.Containers.Box | |
WidgetEvent e => CmbOnClick (RadioCfg s e a) e Source # | |
Defined in Monomer.Widgets.Singles.Radio | |
WidgetEvent e => CmbOnClick (OptionButtonCfg s e a) e Source # | |
Defined in Monomer.Widgets.Singles.OptionButton onClick :: e -> OptionButtonCfg s e a Source # |
class CmbOnClickReq t s e | t -> s e where Source #
On click WidgetRequest.
onClickReq :: WidgetRequest s e -> t Source #
Instances
CmbOnClickReq (ButtonCfg s e) s e Source # | |
Defined in Monomer.Widgets.Singles.Button onClickReq :: WidgetRequest s e -> ButtonCfg s e Source # | |
CmbOnClickReq (BoxCfg s e) s e Source # | |
Defined in Monomer.Widgets.Containers.Box onClickReq :: WidgetRequest s e -> BoxCfg s e Source # | |
CmbOnClickReq (RadioCfg s e a) s e Source # | |
Defined in Monomer.Widgets.Singles.Radio onClickReq :: WidgetRequest s e -> RadioCfg s e a Source # | |
CmbOnClickReq (OptionButtonCfg s e a) s e Source # | |
Defined in Monomer.Widgets.Singles.OptionButton onClickReq :: WidgetRequest s e -> OptionButtonCfg s e a Source # |
class CmbOnClickEmpty t e | t -> e where Source #
On click empty event, where supported (box, for example).
onClickEmpty :: e -> t Source #
Instances
WidgetEvent e => CmbOnClickEmpty (BoxCfg s e) e Source # | |
Defined in Monomer.Widgets.Containers.Box onClickEmpty :: e -> BoxCfg s e Source # |
class CmbOnClickEmptyReq t s e | t -> s e where Source #
On click empty WidgetRequest, where supported (box, for example).
onClickEmptyReq :: WidgetRequest s e -> t Source #
Instances
CmbOnClickEmptyReq (BoxCfg s e) s e Source # | |
Defined in Monomer.Widgets.Containers.Box onClickEmptyReq :: WidgetRequest s e -> BoxCfg s e Source # |
class CmbOnBtnPressed t e | t -> e where Source #
On button pressed event.
onBtnPressed :: (Button -> Int -> e) -> t Source #
Instances
WidgetEvent e => CmbOnBtnPressed (BoxCfg s e) e Source # | |
Defined in Monomer.Widgets.Containers.Box |
class CmbOnBtnPressedReq t s e | t -> s e where Source #
On button pressed WidgetRequest.
onBtnPressedReq :: (Button -> Int -> WidgetRequest s e) -> t Source #
Instances
CmbOnBtnPressedReq (BoxCfg s e) s e Source # | |
Defined in Monomer.Widgets.Containers.Box onBtnPressedReq :: (Button -> Int -> WidgetRequest s e) -> BoxCfg s e Source # |
class CmbOnBtnReleased t e | t -> e where Source #
On button released event.
onBtnReleased :: (Button -> Int -> e) -> t Source #
Instances
WidgetEvent e => CmbOnBtnReleased (BoxCfg s e) e Source # | |
Defined in Monomer.Widgets.Containers.Box |
class CmbOnBtnReleasedReq t s e | t -> s e where Source #
On button released WidgetRequest.
onBtnReleasedReq :: (Button -> Int -> WidgetRequest s e) -> t Source #
Instances
CmbOnBtnReleasedReq (BoxCfg s e) s e Source # | |
Defined in Monomer.Widgets.Containers.Box onBtnReleasedReq :: (Button -> Int -> WidgetRequest s e) -> BoxCfg s e Source # |
class CmbOnEnabledChange t e | t -> e where Source #
On enabled change event.
onEnabledChange :: e -> t Source #
Instances
CmbOnEnabledChange (CompositeCfg s e sp ep) e Source # | |
Defined in Monomer.Widgets.Composite onEnabledChange :: e -> CompositeCfg s e sp ep Source # |
class CmbOnVisibleChange t e | t -> e where Source #
On visible change event.
onVisibleChange :: e -> t Source #
Instances
CmbOnVisibleChange (CompositeCfg s e sp ep) e Source # | |
Defined in Monomer.Widgets.Composite onVisibleChange :: e -> CompositeCfg s e sp ep Source # |
class CmbOnChange t a e | t -> e where Source #
On change event.
Instances
class CmbOnChangeIdx t e a | t -> e a where Source #
On change event, including index.
onChangeIdx :: (Int -> a -> e) -> t Source #
Instances
WidgetEvent e => CmbOnChangeIdx (SelectListCfg s e a) e a Source # | |
Defined in Monomer.Widgets.Containers.SelectList onChangeIdx :: (Int -> a -> e) -> SelectListCfg s e a Source # | |
WidgetEvent e => CmbOnChangeIdx (DropdownCfg s e a) e a Source # | |
Defined in Monomer.Widgets.Containers.Dropdown onChangeIdx :: (Int -> a -> e) -> DropdownCfg s e a Source # |
class CmbOnChangeReq t s e a | t -> s e a where Source #
On change WidgetRequest.
onChangeReq :: (a -> WidgetRequest s e) -> t Source #
Instances
class CmbOnChangeIdxReq t s e a | t -> s e a where Source #
On change WidgetRequest, including index.
onChangeIdxReq :: (Int -> a -> WidgetRequest s e) -> t Source #
Instances
CmbOnChangeIdxReq (SelectListCfg s e a) s e a Source # | |
Defined in Monomer.Widgets.Containers.SelectList onChangeIdxReq :: (Int -> a -> WidgetRequest s e) -> SelectListCfg s e a Source # | |
CmbOnChangeIdxReq (DropdownCfg s e a) s e a Source # | |
Defined in Monomer.Widgets.Containers.Dropdown onChangeIdxReq :: (Int -> a -> WidgetRequest s e) -> DropdownCfg s e a Source # |
class CmbOnLoadError t e a | t -> e a where Source #
On load error event.
onLoadError :: (a -> e) -> t Source #
Instances
CmbOnLoadError (ImageCfg e) e ImageLoadError Source # | |
Defined in Monomer.Widgets.Singles.Image onLoadError :: (ImageLoadError -> e) -> ImageCfg e Source # |
class CmbOnFinished t e | t -> e where Source #
On finished event.
onFinished :: e -> t Source #
Instances
CmbOnFinished (SlideCfg e) e Source # | |
Defined in Monomer.Widgets.Animation.Slide onFinished :: e -> SlideCfg e Source # | |
CmbOnFinished (FadeCfg e) e Source # | |
Defined in Monomer.Widgets.Animation.Fade onFinished :: e -> FadeCfg e Source # |
class CmbWidth t where Source #
Width combinator.
Instances
CmbWidth StyleState Source # | |
Defined in Monomer.Core.Style width :: Double -> StyleState Source # | |
CmbWidth SizeReq Source # | |
CmbWidth SpacerCfg Source # | |
CmbWidth SeparatorLineCfg Source # | |
Defined in Monomer.Widgets.Singles.SeparatorLine width :: Double -> SeparatorLineCfg Source # | |
CmbWidth IconCfg Source # | |
CmbWidth (CheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.Checkbox width :: Double -> CheckboxCfg s e Source # | |
CmbWidth (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox width :: Double -> LabeledCheckboxCfg s e Source # | |
CmbWidth (SliderCfg s e a) Source # | |
CmbWidth (RadioCfg s e a) Source # | |
CmbWidth (DialCfg s e a) Source # | |
CmbWidth (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio width :: Double -> LabeledRadioCfg s e a Source # |
class CmbHeight t where Source #
Height combinator.
Instances
CmbHeight StyleState Source # | |
Defined in Monomer.Core.Style height :: Double -> StyleState Source # | |
CmbHeight SizeReq Source # | |
class CmbFlexWidth t where Source #
Flex width combinator.
Instances
CmbFlexWidth StyleState Source # | |
Defined in Monomer.Core.Style flexWidth :: Double -> StyleState Source # | |
CmbFlexWidth SizeReq Source # | |
class CmbFlexHeight t where Source #
Flex height combinator.
flexHeight :: Double -> t Source #
Instances
CmbFlexHeight StyleState Source # | |
Defined in Monomer.Core.Style flexHeight :: Double -> StyleState Source # | |
CmbFlexHeight SizeReq Source # | |
Defined in Monomer.Core.Style flexHeight :: Double -> SizeReq Source # |
class CmbMinWidth t where Source #
Min width combinator.
Instances
CmbMinWidth StyleState Source # | |
Defined in Monomer.Core.Style minWidth :: Double -> StyleState Source # | |
CmbMinWidth SizeReq Source # | |
class CmbMinHeight t where Source #
Min height combinator.
Instances
CmbMinHeight StyleState Source # | |
Defined in Monomer.Core.Style minHeight :: Double -> StyleState Source # | |
CmbMinHeight SizeReq Source # | |
class CmbMaxWidth t where Source #
Max width combinator.
Instances
CmbMaxWidth StyleState Source # | |
Defined in Monomer.Core.Style maxWidth :: Double -> StyleState Source # | |
CmbMaxWidth SizeReq Source # | |
CmbMaxWidth TooltipCfg Source # | |
Defined in Monomer.Widgets.Containers.Tooltip maxWidth :: Double -> TooltipCfg Source # |
class CmbMaxHeight t where Source #
Max height combinator.
Instances
CmbMaxHeight StyleState Source # | |
Defined in Monomer.Core.Style maxHeight :: Double -> StyleState Source # | |
CmbMaxHeight SizeReq Source # | |
CmbMaxHeight TooltipCfg Source # | |
Defined in Monomer.Widgets.Containers.Tooltip maxHeight :: Double -> TooltipCfg Source # | |
CmbMaxHeight (DropdownCfg s e a) Source # | |
Defined in Monomer.Widgets.Containers.Dropdown maxHeight :: Double -> DropdownCfg s e a Source # |
class CmbExpandWidth t where Source #
Expand width combinator.
expandWidth :: Double -> t Source #
Instances
CmbExpandWidth StyleState Source # | |
Defined in Monomer.Core.Style expandWidth :: Double -> StyleState Source # | |
CmbExpandWidth SizeReq Source # | |
Defined in Monomer.Core.Style expandWidth :: Double -> SizeReq Source # |
class CmbExpandHeight t where Source #
Expand height combinator.
expandHeight :: Double -> t Source #
Instances
CmbExpandHeight StyleState Source # | |
Defined in Monomer.Core.Style expandHeight :: Double -> StyleState Source # | |
CmbExpandHeight SizeReq Source # | |
Defined in Monomer.Core.Style expandHeight :: Double -> SizeReq Source # |
class CmbRangeWidth t where Source #
Range width combinator.
rangeWidth :: Double -> Double -> t Source #
Instances
CmbRangeWidth StyleState Source # | |
Defined in Monomer.Core.Style rangeWidth :: Double -> Double -> StyleState Source # | |
CmbRangeWidth SizeReq Source # | |
Defined in Monomer.Core.Style |
class CmbRangeHeight t where Source #
Range height combinator.
rangeHeight :: Double -> Double -> t Source #
Instances
CmbRangeHeight StyleState Source # | |
Defined in Monomer.Core.Style rangeHeight :: Double -> Double -> StyleState Source # | |
CmbRangeHeight SizeReq Source # | |
Defined in Monomer.Core.Style |
class CmbSizeReqW t where Source #
Custom SizeReq width combinator.
Instances
CmbSizeReqW StyleState Source # | |
Defined in Monomer.Core.Style sizeReqW :: SizeReq -> StyleState Source # |
class CmbSizeReqH t where Source #
Custom SizeReq height combinator.
Instances
CmbSizeReqH StyleState Source # | |
Defined in Monomer.Core.Style sizeReqH :: SizeReq -> StyleState Source # |
class CmbSizeReqUpdater t where Source #
SizeReq updater. Useful to make modifications to widget SizeReqs without completely overriding them.
Instances
CmbSizeReqUpdater StackCfg Source # | |
Defined in Monomer.Widgets.Containers.Stack | |
CmbSizeReqUpdater GridCfg Source # | |
Defined in Monomer.Widgets.Containers.Grid | |
CmbSizeReqUpdater (BoxCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Box |
class CmbResizeFactor t where Source #
Resize factor combinator. A value of 0 represents fixed size.
resizeFactor :: Double -> t Source #
Instances
class CmbResizeFactorDim t where Source #
Resize factor combinator for individual w and h components. A value of 0 represents fixed size.
resizeFactorW :: Double -> t Source #
resizeFactorH :: Double -> t Source #
Instances
class CmbStyleBasic t where Source #
Basic style combinator, mainly used infix with widgets.
Represents the default style of a widget. It serves as the base for all the other style states when an attribute is not overriden.
styleBasic :: t -> [StyleState] -> t infixl 5 Source #
Merges the new basic style states with the existing ones.
styleBasicSet :: t -> [StyleState] -> t infixl 5 Source #
Sets the new basic style states overriding the existing ones.
Instances
CmbStyleBasic Style Source # | |
Defined in Monomer.Core.StyleUtil styleBasic :: Style -> [StyleState] -> Style Source # styleBasicSet :: Style -> [StyleState] -> Style Source # | |
CmbStyleBasic (WidgetNode s e) Source # | |
Defined in Monomer.Core.StyleUtil styleBasic :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # styleBasicSet :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # |
class CmbStyleHover t where Source #
Hover style combinator, mainly used infix with widgets.
Used when the widget is hovered with a pointing device.
styleHover :: t -> [StyleState] -> t infixl 5 Source #
Merges the new hover style states with the existing ones.
styleHoverSet :: t -> [StyleState] -> t infixl 5 Source #
Sets the new hover style states overriding the existing ones.
Instances
CmbStyleHover Style Source # | |
Defined in Monomer.Core.StyleUtil styleHover :: Style -> [StyleState] -> Style Source # styleHoverSet :: Style -> [StyleState] -> Style Source # | |
CmbStyleHover (WidgetNode s e) Source # | |
Defined in Monomer.Core.StyleUtil styleHover :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # styleHoverSet :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # |
class CmbStyleFocus t where Source #
Focus style combinator, mainly used infix with widgets.
Used when the widget has keyboard focus.
styleFocus :: t -> [StyleState] -> t infixl 5 Source #
Merges the new focus style states with the existing ones.
styleFocusSet :: t -> [StyleState] -> t infixl 5 Source #
Sets the new focus style states overriding the existing ones.
Instances
CmbStyleFocus Style Source # | |
Defined in Monomer.Core.StyleUtil styleFocus :: Style -> [StyleState] -> Style Source # styleFocusSet :: Style -> [StyleState] -> Style Source # | |
CmbStyleFocus (WidgetNode s e) Source # | |
Defined in Monomer.Core.StyleUtil styleFocus :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # styleFocusSet :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # |
class CmbStyleFocusHover t where Source #
Focus Hover style combinator, mainly used infix with widgets.
Used when the widget is both focused and hovered. In this situation the attributes defined in focus and hover will be combined, with focus attributes taking precedence. This style state allows for better control in cases when the combination of focus and hover styles do not match expectations.
styleFocusHover :: t -> [StyleState] -> t infixl 5 Source #
Merges the new focus hover style states with the existing ones.
styleFocusHoverSet :: t -> [StyleState] -> t infixl 5 Source #
Sets the new focus hover style states overriding the existing ones.
Instances
CmbStyleFocusHover Style Source # | |
Defined in Monomer.Core.StyleUtil styleFocusHover :: Style -> [StyleState] -> Style Source # styleFocusHoverSet :: Style -> [StyleState] -> Style Source # | |
CmbStyleFocusHover (WidgetNode s e) Source # | |
Defined in Monomer.Core.StyleUtil styleFocusHover :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # styleFocusHoverSet :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # |
class CmbStyleActive t where Source #
Active style combinator, mainly used infix with widgets.
Used when a mouse press was started in the widget and the pointer is inside its boundaries.
styleActive :: t -> [StyleState] -> t infixl 5 Source #
Merges the new active style states with the existing ones.
styleActiveSet :: t -> [StyleState] -> t infixl 5 Source #
Sets the new active style states overriding the existing ones.
Instances
CmbStyleActive Style Source # | |
Defined in Monomer.Core.StyleUtil styleActive :: Style -> [StyleState] -> Style Source # styleActiveSet :: Style -> [StyleState] -> Style Source # | |
CmbStyleActive (WidgetNode s e) Source # | |
Defined in Monomer.Core.StyleUtil styleActive :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # styleActiveSet :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # |
class CmbStyleDisabled t where Source #
Disabled style combinator, mainly used infix with widgets.
Used when the _nodeEnabled_ attribute has been set to False.
styleDisabled :: t -> [StyleState] -> t infixl 5 Source #
Merges the new disabled style states with the existing ones.
styleDisabledSet :: t -> [StyleState] -> t infixl 5 Source #
Sets the new disabled style states overriding the existing ones.
Instances
CmbStyleDisabled Style Source # | |
Defined in Monomer.Core.StyleUtil styleDisabled :: Style -> [StyleState] -> Style Source # styleDisabledSet :: Style -> [StyleState] -> Style Source # | |
CmbStyleDisabled (WidgetNode s e) Source # | |
Defined in Monomer.Core.StyleUtil styleDisabled :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # styleDisabledSet :: WidgetNode s e -> [StyleState] -> WidgetNode s e Source # |
class CmbIgnoreTheme t where Source #
Ignore theme settings and start with blank style.
ignoreTheme :: t Source #
ignoreTheme_ :: Bool -> t Source #
Instances
CmbIgnoreTheme (LabelCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.Label ignoreTheme :: LabelCfg s e Source # ignoreTheme_ :: Bool -> LabelCfg s e Source # | |
CmbIgnoreTheme (ButtonCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.Button ignoreTheme :: ButtonCfg s e Source # ignoreTheme_ :: Bool -> ButtonCfg s e Source # | |
CmbIgnoreTheme (OptionButtonCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.OptionButton ignoreTheme :: OptionButtonCfg s e a Source # ignoreTheme_ :: Bool -> OptionButtonCfg s e a Source # |
class CmbBgColor t where Source #
Background color.
Instances
CmbBgColor StyleState Source # | |
Defined in Monomer.Core.Style bgColor :: Color -> StyleState Source # |
class CmbFgColor t where Source #
Foreground color.
Instances
CmbFgColor StyleState Source # | |
Defined in Monomer.Core.Style fgColor :: Color -> StyleState Source # |
class CmbSndColor t where Source #
Secondary color.
Instances
CmbSndColor StyleState Source # | |
Defined in Monomer.Core.Style sndColor :: Color -> StyleState Source # |
class CmbHlColor t where Source #
Highlight color.
Instances
CmbHlColor StyleState Source # | |
Defined in Monomer.Core.Style hlColor :: Color -> StyleState Source # |
class CmbTransparency t where Source #
Transparency level.
transparency :: Double -> t Source #
Instances
CmbTransparency (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image transparency :: Double -> ImageCfg e Source # | |
CmbTransparency (DraggableCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Draggable transparency :: Double -> DraggableCfg s e Source # |
class CmbCursorIcon t where Source #
Cursor icons.
cursorArrow :: t Source #
cursorHand :: t Source #
cursorIBeam :: t Source #
cursorInvalid :: t Source #
cursorSizeH :: t Source #
cursorSizeV :: t Source #
cursorDiagTL :: t Source #
cursorDiagTR :: t Source #
cursorIcon :: CursorIcon -> t Source #
Instances
class CmbItemBasicStyle t s | t -> s where Source #
Basic style for each item of a list.
itemBasicStyle :: s -> t Source #
Instances
CmbItemBasicStyle (SelectListCfg s e a) Style Source # | |
Defined in Monomer.Widgets.Containers.SelectList itemBasicStyle :: Style -> SelectListCfg s e a Source # | |
CmbItemBasicStyle (DropdownCfg s e a) Style Source # | |
Defined in Monomer.Widgets.Containers.Dropdown itemBasicStyle :: Style -> DropdownCfg s e a Source # |
class CmbItemHoverStyle t s | t -> s where Source #
Hover style for an item of a list.
itemHoverStyle :: s -> t Source #
class CmbItemSelectedStyle t s | t -> s where Source #
Selected style for an item of a list.
itemSelectedStyle :: s -> t Source #
Instances
CmbItemSelectedStyle (SelectListCfg s e a) Style Source # | |
Defined in Monomer.Widgets.Containers.SelectList itemSelectedStyle :: Style -> SelectListCfg s e a Source # | |
CmbItemSelectedStyle (DropdownCfg s e a) Style Source # | |
Defined in Monomer.Widgets.Containers.Dropdown itemSelectedStyle :: Style -> DropdownCfg s e a Source # |
class CmbAlignLeft t where Source #
Align object to the left (not text).
Instances
CmbAlignLeft (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image | |
CmbAlignLeft (BoxCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Box |
class CmbAlignCenter t where Source #
Align object to the center (not text).
alignCenter :: t Source #
alignCenter_ :: Bool -> t Source #
Instances
CmbAlignCenter (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image alignCenter :: ImageCfg e Source # alignCenter_ :: Bool -> ImageCfg e Source # | |
CmbAlignCenter (BoxCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Box alignCenter :: BoxCfg s e Source # alignCenter_ :: Bool -> BoxCfg s e Source # |
class CmbAlignRight t where Source #
Align object to the right (not text).
alignRight :: t Source #
alignRight_ :: Bool -> t Source #
Instances
CmbAlignRight (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image alignRight :: ImageCfg e Source # alignRight_ :: Bool -> ImageCfg e Source # | |
CmbAlignRight (BoxCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Box alignRight :: BoxCfg s e Source # alignRight_ :: Bool -> BoxCfg s e Source # |
class CmbAlignMiddle t where Source #
Align object to the middle (not text).
alignMiddle :: t Source #
alignMiddle_ :: Bool -> t Source #
Instances
CmbAlignMiddle (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image alignMiddle :: ImageCfg e Source # alignMiddle_ :: Bool -> ImageCfg e Source # | |
CmbAlignMiddle (BoxCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Box alignMiddle :: BoxCfg s e Source # alignMiddle_ :: Bool -> BoxCfg s e Source # |
class CmbAlignBottom t where Source #
Align object to the bottom (not text).
alignBottom :: t Source #
alignBottom_ :: Bool -> t Source #
Instances
CmbAlignBottom (ImageCfg e) Source # | |
Defined in Monomer.Widgets.Singles.Image alignBottom :: ImageCfg e Source # alignBottom_ :: Bool -> ImageCfg e Source # | |
CmbAlignBottom (BoxCfg s e) Source # | |
Defined in Monomer.Widgets.Containers.Box alignBottom :: BoxCfg s e Source # alignBottom_ :: Bool -> BoxCfg s e Source # |
class CmbPadding t where Source #
Set padding to the same size on all sides.
Instances
CmbPadding Padding Source # | |
CmbPadding StyleState Source # | |
Defined in Monomer.Core.Style padding :: Double -> StyleState Source # |
class CmbPaddingL t where Source #
Set padding for the left side.
Instances
CmbPaddingL Padding Source # | |
CmbPaddingL StyleState Source # | |
Defined in Monomer.Core.Style paddingL :: Double -> StyleState Source # |
class CmbPaddingR t where Source #
Set padding for the right side.
Instances
CmbPaddingR Padding Source # | |
CmbPaddingR StyleState Source # | |
Defined in Monomer.Core.Style paddingR :: Double -> StyleState Source # |
class CmbPaddingT t where Source #
Set padding for the top side.
Instances
CmbPaddingT Padding Source # | |
CmbPaddingT StyleState Source # | |
Defined in Monomer.Core.Style paddingT :: Double -> StyleState Source # |
class CmbPaddingB t where Source #
Set padding for the bottom side.
Instances
CmbPaddingB Padding Source # | |
CmbPaddingB StyleState Source # | |
Defined in Monomer.Core.Style paddingB :: Double -> StyleState Source # |
class CmbBorderL t where Source #
Set border for the left side.
Instances
CmbBorderL Border Source # | |
CmbBorderL StyleState Source # | |
Defined in Monomer.Core.Style |
class CmbBorderR t where Source #
Set border for the right side.
Instances
CmbBorderR Border Source # | |
CmbBorderR StyleState Source # | |
Defined in Monomer.Core.Style |
class CmbBorderT t where Source #
Set border for the top side.
Instances
CmbBorderT Border Source # | |
CmbBorderT StyleState Source # | |
Defined in Monomer.Core.Style |
class CmbBorderB t where Source #
Set border for the bottom side.
Instances
CmbBorderB Border Source # | |
CmbBorderB StyleState Source # | |
Defined in Monomer.Core.Style |
class CmbRadius t where Source #
Set radius to the same size on all corners.
class CmbRadiusTL t where Source #
Set radius for the top left corner.
Instances
CmbRadiusTL Radius Source # | |
CmbRadiusTL StyleState Source # | |
Defined in Monomer.Core.Style radiusTL :: Double -> StyleState Source # |
class CmbRadiusTR t where Source #
Set radius for the top right corner.
Instances
CmbRadiusTR Radius Source # | |
CmbRadiusTR StyleState Source # | |
Defined in Monomer.Core.Style radiusTR :: Double -> StyleState Source # |
class CmbRadiusBL t where Source #
Set radius for the bottom left corner.
Instances
CmbRadiusBL Radius Source # | |
CmbRadiusBL StyleState Source # | |
Defined in Monomer.Core.Style radiusBL :: Double -> StyleState Source # |
class CmbRadiusBR t where Source #
Set radius for the bottom right corner.
Instances
CmbRadiusBR Radius Source # | |
CmbRadiusBR StyleState Source # | |
Defined in Monomer.Core.Style radiusBR :: Double -> StyleState Source # |
class CmbChildSpacing t where Source #
Set the spacing between the children of the container.
childSpacing :: t Source #
Set the spacing to the default amount (may vary by container).
childSpacing_ :: Double -> t Source #
Set the spacing to the specified amount.
Instances
CmbChildSpacing StackCfg Source # | |
Defined in Monomer.Widgets.Containers.Stack childSpacing :: StackCfg Source # childSpacing_ :: Double -> StackCfg Source # | |
CmbChildSpacing GridCfg Source # | |
Defined in Monomer.Widgets.Containers.Grid childSpacing :: GridCfg Source # childSpacing_ :: Double -> GridCfg Source # | |
CmbChildSpacing (LabeledCheckboxCfg s e) Source # | |
Defined in Monomer.Widgets.Singles.LabeledCheckbox childSpacing :: LabeledCheckboxCfg s e Source # childSpacing_ :: Double -> LabeledCheckboxCfg s e Source # | |
CmbChildSpacing (LabeledRadioCfg s e a) Source # | |
Defined in Monomer.Widgets.Singles.LabeledRadio childSpacing :: LabeledRadioCfg s e a Source # childSpacing_ :: Double -> LabeledRadioCfg s e a Source # |