mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-17 20:06:07 +00:00
112 lines
2.7 KiB
Haskell
112 lines
2.7 KiB
Haskell
{-# LANGUAGE CPP #-}
|
||
{-# LANGUAGE DataKinds #-}
|
||
{-# LANGUAGE TypeFamilies #-}
|
||
{-# LANGUAGE PolyKinds #-}
|
||
{-# LANGUAGE GADTs #-}
|
||
{-# LANGUAGE UndecidableInstances #-}
|
||
{-# LANGUAGE TemplateHaskell #-}
|
||
{-# LANGUAGE QuasiQuotes #-}
|
||
{-# LANGUAGE ScopedTypeVariables #-}
|
||
{-# LANGUAGE StandaloneDeriving #-}
|
||
{-# LANGUAGE InstanceSigs #-}
|
||
{-# LANGUAGE EmptyCase #-}
|
||
{-# LANGUAGE CPP #-}
|
||
{-# LANGUAGE TypeApplications #-}
|
||
#if __GLASGOW_HASKELL__ >= 810
|
||
{-# LANGUAGE StandaloneKindSignatures #-}
|
||
#endif
|
||
|
||
module IHaskell.Display.Widgets.Singletons where
|
||
|
||
#if MIN_VERSION_singletons(3,0,0)
|
||
import Data.Singletons.Base.TH
|
||
#elif MIN_VERSION_singletons(2,4,0)
|
||
import Data.Singletons.TH
|
||
#else
|
||
import Data.Singletons.Prelude.Ord
|
||
import Data.Singletons.TH
|
||
#endif
|
||
|
||
-- Widget properties
|
||
singletons
|
||
[d|
|
||
|
||
data Field = ViewModule
|
||
| ViewModuleVersion
|
||
| ViewName
|
||
| ModelModule
|
||
| ModelModuleVersion
|
||
| ModelName
|
||
| DisplayHandler
|
||
| Visible
|
||
| CSS
|
||
| DOMClasses
|
||
| Width
|
||
| Height
|
||
| Padding
|
||
| Margin
|
||
| Color
|
||
| BackgroundColor
|
||
| BorderColor
|
||
| BorderWidth
|
||
| BorderRadius
|
||
| BorderStyle
|
||
| FontStyle
|
||
| FontWeight
|
||
| FontSize
|
||
| FontFamily
|
||
| Description
|
||
| ClickHandler
|
||
| SubmitHandler
|
||
| Disabled
|
||
| StringValue
|
||
| Placeholder
|
||
| Tooltip
|
||
| Icon
|
||
| ButtonStyle
|
||
| B64Value
|
||
| ImageFormat
|
||
| BoolValue
|
||
| Options
|
||
| SelectedLabel
|
||
| SelectedValue
|
||
| SelectionHandler
|
||
| Tooltips
|
||
| Icons
|
||
| SelectedLabels
|
||
| SelectedValues
|
||
| IntValue
|
||
| StepInt
|
||
| MaxInt
|
||
| MinInt
|
||
| IntPairValue
|
||
| LowerInt
|
||
| UpperInt
|
||
| FloatValue
|
||
| StepFloat
|
||
| MaxFloat
|
||
| MinFloat
|
||
| FloatPairValue
|
||
| LowerFloat
|
||
| UpperFloat
|
||
| Orientation
|
||
| ShowRange
|
||
| ReadOut
|
||
| SliderColor
|
||
| BarStyle
|
||
| ChangeHandler
|
||
| Children
|
||
| OverflowX
|
||
| OverflowY
|
||
| BoxStyle
|
||
| Flex
|
||
| Pack
|
||
| Align
|
||
| Titles
|
||
| SelectedIndex
|
||
| ReadOutMsg
|
||
| Child
|
||
| Selector
|
||
deriving (Eq, Ord, Show)
|
||
|]
|