Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Style = Style (ManagedPtr Style)
- class GObject o => IsStyle o
- toStyle :: (MonadIO m, IsStyle o) => o -> m Style
- noStyle :: Maybe Style
- styleApply :: (HasCallStack, MonadIO m, IsStyle a, IsTextTag b) => a -> b -> m ()
- styleCopy :: (HasCallStack, MonadIO m, IsStyle a) => a -> m Style
- constructStyleBackground :: IsStyle o => Text -> IO (GValueConstruct o)
- getStyleBackground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleBackgroundSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleBackgroundSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleBold :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleBold :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleBoldSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleBoldSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleForeground :: IsStyle o => Text -> IO (GValueConstruct o)
- getStyleForeground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleForegroundSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleForegroundSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleItalic :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleItalic :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleItalicSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleItalicSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleLineBackground :: IsStyle o => Text -> IO (GValueConstruct o)
- getStyleLineBackground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleLineBackgroundSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleLineBackgroundSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStylePangoUnderline :: IsStyle o => Underline -> IO (GValueConstruct o)
- getStylePangoUnderline :: (MonadIO m, IsStyle o) => o -> m Underline
- constructStyleScale :: IsStyle o => Text -> IO (GValueConstruct o)
- getStyleScale :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleScaleSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleScaleSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleStrikethrough :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleStrikethrough :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleStrikethroughSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleStrikethroughSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleUnderline :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleUnderline :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleUnderlineColor :: IsStyle o => Text -> IO (GValueConstruct o)
- getStyleUnderlineColor :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleUnderlineColorSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleUnderlineColorSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleUnderlineSet :: IsStyle o => Bool -> IO (GValueConstruct o)
- getStyleUnderlineSet :: (MonadIO m, IsStyle o) => o -> m Bool
Exported types
Methods
apply
:: (HasCallStack, MonadIO m, IsStyle a, IsTextTag b) | |
=> a | |
-> b |
|
-> m () |
copy
:: (HasCallStack, MonadIO m, IsStyle a) | |
=> a |
|
-> m Style | Returns: copy of |
Creates a copy of style
, that is a new Style
instance which
has the same attributes set.
Since: 2.0
Properties
background
constructStyleBackground :: IsStyle o => Text -> IO (GValueConstruct o) Source #
backgroundSet
constructStyleBackgroundSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
bold
constructStyleBold :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
boldSet
constructStyleBoldSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
foreground
constructStyleForeground :: IsStyle o => Text -> IO (GValueConstruct o) Source #
foregroundSet
constructStyleForegroundSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
italic
constructStyleItalic :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
italicSet
constructStyleItalicSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
lineBackground
constructStyleLineBackground :: IsStyle o => Text -> IO (GValueConstruct o) Source #
lineBackgroundSet
constructStyleLineBackgroundSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
pangoUnderline
constructStylePangoUnderline :: IsStyle o => Underline -> IO (GValueConstruct o) Source #
scale
constructStyleScale :: IsStyle o => Text -> IO (GValueConstruct o) Source #
scaleSet
constructStyleScaleSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
strikethrough
constructStyleStrikethrough :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
strikethroughSet
constructStyleStrikethroughSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
underline
constructStyleUnderline :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
underlineColor
constructStyleUnderlineColor :: IsStyle o => Text -> IO (GValueConstruct o) Source #
underlineColorSet
constructStyleUnderlineColorSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #
underlineSet
constructStyleUnderlineSet :: IsStyle o => Bool -> IO (GValueConstruct o) Source #