ยค HasFontSpec, setFont, et al

Types

class HasFontSpec xxx where
   setFontSpec :: FontSpec -> Customiser xxx
   getFontSpec :: xxx -> FontSpec
   getFontSpecMaybe :: xxx -> Maybe FontSpec
instance HasFontSpec (GraphicsF a)
instance HasFontSpec (ButtonF a)
instance HasFontSpec (DisplayF a)
instance HasFontSpec ToggleButtonF
instance HasFontSpec RadioGroupF
instance HasFontSpec StringF
instance HasFontSpec TextF
instance HasFontSpec EditorF

setFont :: (HasFontSpec xxx, Show a, FontGen a) => a -> Customiser xxx
class HasBgColorSpec xxx where
   setBgColorSpec :: ColorSpec -> Customiser xxx
   getBgColorSpec :: xxx -> ColorSpec
   getBgColorSpecMaybe :: xxx -> Maybe ColorSpec
instance HasBgColorSpec (GraphicsF a)
instance HasBgColorSpec (ButtonF a)
instance HasBgColorSpec (DisplayF a)
instance HasBgColorSpec StringF
instance HasBgColorSpec TextF

class HasFgColorSpec xxx where
   setFgColorSpec :: ColorSpec -> Customiser xxx
   getFgColorSpec :: xxx -> ColorSpec
   getFgColorSpecMaybe :: xxx -> Maybe ColorSpec
instance HasFgColorSpec (GraphicsF a)
instance HasFgColorSpec (ButtonF a)
instance HasFgColorSpec (DisplayF a)
instance HasFgColorSpec StringF
instance HasFgColorSpec TextF

setBgColor :: (HasBgColorSpec xxx, Show p, ColorGen p) => p -> Customiser xxx
setFgColor :: (HasFgColorSpec xxx, Show p, ColorGen p) => p -> Customiser xxx
class HasKeys xxx where
   setKeys :: [(ModState, KeySym)] -> Customiser xxx
   getKeys :: xxx -> [(ModState, KeySym)]
   getKeysMaybe :: xxx -> Maybe [(ModState, KeySym)]
instance HasKeys (ButtonF a)
instance HasKeys ToggleButtonF

class HasBorderWidth xxx where
   setBorderWidth :: Int -> Customiser xxx
   getBorderWidth :: xxx -> Int
   getBorderWidthMaybe :: xxx -> Maybe Int
instance HasBorderWidth (GraphicsF a)
instance HasBorderWidth (DisplayF a)
instance HasBorderWidth StringF
instance HasBorderWidth TextF

class HasMargin xxx where
   setMargin :: Int -> Customiser xxx
   getMargin :: xxx -> Int
   getMarginMaybe :: xxx -> Maybe Int
instance HasMargin ShellF
instance HasMargin (ButtonF a)
instance HasMargin (DisplayF a)
instance HasMargin TextF

class HasAlign xxx where
   setAlign :: Alignment -> Customiser xxx
   getAlign :: xxx -> Alignment
   getAlignMaybe :: xxx -> Maybe Alignment
instance HasAlign (ButtonF a)
instance HasAlign (DisplayF a)
instance HasAlign TextF

class HasInitDisp xxx where
   setInitDisp :: a -> Customiser (xxx a)
   getInitDispMaybe :: xxx a -> Maybe a
   getInitDisp :: xxx a -> a
instance HasInitDisp GraphicsF
instance HasInitDisp DisplayF

class HasInitSize xxx where
   setInitSize :: a -> Customiser (xxx a)
   getInitSizeMaybe :: xxx a -> Maybe a
   getInitSize :: xxx a -> a
instance HasInitSize GraphicsF
instance HasInitSize DisplayF

class HasStretchable xxx where
   setStretchable :: (Bool, Bool) -> Customiser xxx
   getStretchable :: xxx -> (Bool, Bool)
   getStretchableMaybe :: xxx -> Maybe (Bool, Bool)
instance HasStretchable (GraphicsF a)
instance HasStretchable (DisplayF a)
instance HasStretchable TextF

class HasSizing xxx where
   setSizing :: Sizing -> Customiser xxx
   getSizing :: xxx -> Sizing
   getSizingMaybe :: xxx -> Maybe Sizing
instance HasSizing ShellF
instance HasSizing (GraphicsF a)
instance HasSizing (DisplayF a)
instance HasSizing StringF
instance HasSizing TextF

class HasWinAttr xxx where
   setWinAttr :: [WindowAttributes] -> Customiser xxx
   getWinAttr :: xxx -> [WindowAttributes]
   getWinAttrMaybe :: xxx -> Maybe [WindowAttributes]
instance HasWinAttr ShellF

Description

Classes used for parameters with default values.

See Also

Customiser.