Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Represents a style.
The GtkSourceStyle
structure is used to describe text attributes
which are set when given style is used.
Synopsis
- newtype Style = Style (ManagedPtr Style)
- class (GObject o, IsDescendantOf Style o) => IsStyle o
- toStyle :: (MonadIO m, IsStyle o) => o -> m Style
- styleApply :: (HasCallStack, MonadIO m, IsStyle a, IsTextTag b) => Maybe a -> b -> m ()
- styleCopy :: (HasCallStack, MonadIO m, IsStyle a) => a -> m Style
- constructStyleBackground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o)
- getStyleBackground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleBackgroundSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleBackgroundSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleBold :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleBold :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleBoldSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleBoldSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleForeground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o)
- getStyleForeground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleForegroundSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleForegroundSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleItalic :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleItalic :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleItalicSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleItalicSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleLineBackground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o)
- getStyleLineBackground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleLineBackgroundSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleLineBackgroundSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStylePangoUnderline :: (IsStyle o, MonadIO m) => Underline -> m (GValueConstruct o)
- getStylePangoUnderline :: (MonadIO m, IsStyle o) => o -> m Underline
- constructStyleScale :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o)
- getStyleScale :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleScaleSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleScaleSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleStrikethrough :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleStrikethrough :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleStrikethroughSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleStrikethroughSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleUnderlineColor :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o)
- getStyleUnderlineColor :: (MonadIO m, IsStyle o) => o -> m (Maybe Text)
- constructStyleUnderlineColorSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleUnderlineColorSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleUnderlineSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleUnderlineSet :: (MonadIO m, IsStyle o) => o -> m Bool
- constructStyleWeight :: (IsStyle o, MonadIO m) => Weight -> m (GValueConstruct o)
- getStyleWeight :: (MonadIO m, IsStyle o) => o -> m Weight
- constructStyleWeightSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleWeightSet :: (MonadIO m, IsStyle o) => o -> m Bool
Exported types
Memory-managed wrapper type.
Instances
Eq Style Source # | |
GObject Style Source # | |
Defined in GI.GtkSource.Objects.Style | |
ManagedPtrNewtype Style Source # | |
Defined in GI.GtkSource.Objects.Style toManagedPtr :: Style -> ManagedPtr Style | |
TypedObject Style Source # | |
Defined in GI.GtkSource.Objects.Style | |
HasParentTypes Style Source # | |
Defined in GI.GtkSource.Objects.Style | |
IsGValue (Maybe Style) Source # | Convert |
Defined in GI.GtkSource.Objects.Style gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Style -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Style) | |
type ParentTypes Style Source # | |
Defined in GI.GtkSource.Objects.Style type ParentTypes Style = '[Object] |
class (GObject o, IsDescendantOf Style o) => IsStyle o Source #
Instances
(GObject o, IsDescendantOf Style o) => IsStyle o Source # | |
Defined in GI.GtkSource.Objects.Style |
Methods
Click to display all available methods, including inherited ones
Methods
apply, bindProperty, bindPropertyFull, copy, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
apply
:: (HasCallStack, MonadIO m, IsStyle a, IsTextTag b) | |
=> Maybe 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.
Properties
background
No description available in the introspection data.
constructStyleBackground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “background
” property. This is rarely needed directly, but it is used by new
.
getStyleBackground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #
Get the value of the “background
” property.
When overloading is enabled, this is equivalent to
get
style #background
backgroundSet
No description available in the introspection data.
constructStyleBackgroundSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “background-set
” property. This is rarely needed directly, but it is used by new
.
getStyleBackgroundSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “background-set
” property.
When overloading is enabled, this is equivalent to
get
style #backgroundSet
bold
No description available in the introspection data.
constructStyleBold :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bold
” property. This is rarely needed directly, but it is used by new
.
getStyleBold :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “bold
” property.
When overloading is enabled, this is equivalent to
get
style #bold
boldSet
No description available in the introspection data.
constructStyleBoldSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bold-set
” property. This is rarely needed directly, but it is used by new
.
getStyleBoldSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “bold-set
” property.
When overloading is enabled, this is equivalent to
get
style #boldSet
foreground
No description available in the introspection data.
constructStyleForeground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “foreground
” property. This is rarely needed directly, but it is used by new
.
getStyleForeground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #
Get the value of the “foreground
” property.
When overloading is enabled, this is equivalent to
get
style #foreground
foregroundSet
No description available in the introspection data.
constructStyleForegroundSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “foreground-set
” property. This is rarely needed directly, but it is used by new
.
getStyleForegroundSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “foreground-set
” property.
When overloading is enabled, this is equivalent to
get
style #foregroundSet
italic
No description available in the introspection data.
constructStyleItalic :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “italic
” property. This is rarely needed directly, but it is used by new
.
getStyleItalic :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “italic
” property.
When overloading is enabled, this is equivalent to
get
style #italic
italicSet
No description available in the introspection data.
constructStyleItalicSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “italic-set
” property. This is rarely needed directly, but it is used by new
.
getStyleItalicSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “italic-set
” property.
When overloading is enabled, this is equivalent to
get
style #italicSet
lineBackground
No description available in the introspection data.
constructStyleLineBackground :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “line-background
” property. This is rarely needed directly, but it is used by new
.
getStyleLineBackground :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #
Get the value of the “line-background
” property.
When overloading is enabled, this is equivalent to
get
style #lineBackground
lineBackgroundSet
No description available in the introspection data.
constructStyleLineBackgroundSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “line-background-set
” property. This is rarely needed directly, but it is used by new
.
getStyleLineBackgroundSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “line-background-set
” property.
When overloading is enabled, this is equivalent to
get
style #lineBackgroundSet
pangoUnderline
No description available in the introspection data.
constructStylePangoUnderline :: (IsStyle o, MonadIO m) => Underline -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “pango-underline
” property. This is rarely needed directly, but it is used by new
.
getStylePangoUnderline :: (MonadIO m, IsStyle o) => o -> m Underline Source #
Get the value of the “pango-underline
” property.
When overloading is enabled, this is equivalent to
get
style #pangoUnderline
scale
No description available in the introspection data.
constructStyleScale :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “scale
” property. This is rarely needed directly, but it is used by new
.
getStyleScale :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #
Get the value of the “scale
” property.
When overloading is enabled, this is equivalent to
get
style #scale
scaleSet
No description available in the introspection data.
constructStyleScaleSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “scale-set
” property. This is rarely needed directly, but it is used by new
.
getStyleScaleSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “scale-set
” property.
When overloading is enabled, this is equivalent to
get
style #scaleSet
strikethrough
No description available in the introspection data.
constructStyleStrikethrough :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “strikethrough
” property. This is rarely needed directly, but it is used by new
.
getStyleStrikethrough :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “strikethrough
” property.
When overloading is enabled, this is equivalent to
get
style #strikethrough
strikethroughSet
No description available in the introspection data.
constructStyleStrikethroughSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “strikethrough-set
” property. This is rarely needed directly, but it is used by new
.
getStyleStrikethroughSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “strikethrough-set
” property.
When overloading is enabled, this is equivalent to
get
style #strikethroughSet
underlineColor
No description available in the introspection data.
constructStyleUnderlineColor :: (IsStyle o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “underline-color
” property. This is rarely needed directly, but it is used by new
.
getStyleUnderlineColor :: (MonadIO m, IsStyle o) => o -> m (Maybe Text) Source #
Get the value of the “underline-color
” property.
When overloading is enabled, this is equivalent to
get
style #underlineColor
underlineColorSet
No description available in the introspection data.
constructStyleUnderlineColorSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “underline-color-set
” property. This is rarely needed directly, but it is used by new
.
getStyleUnderlineColorSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “underline-color-set
” property.
When overloading is enabled, this is equivalent to
get
style #underlineColorSet
underlineSet
No description available in the introspection data.
constructStyleUnderlineSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “underline-set
” property. This is rarely needed directly, but it is used by new
.
getStyleUnderlineSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “underline-set
” property.
When overloading is enabled, this is equivalent to
get
style #underlineSet
weight
No description available in the introspection data.
constructStyleWeight :: (IsStyle o, MonadIO m) => Weight -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “weight
” property. This is rarely needed directly, but it is used by new
.
getStyleWeight :: (MonadIO m, IsStyle o) => o -> m Weight Source #
Get the value of the “weight
” property.
When overloading is enabled, this is equivalent to
get
style #weight
weightSet
No description available in the introspection data.
constructStyleWeightSet :: (IsStyle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “weight-set
” property. This is rarely needed directly, but it is used by new
.
getStyleWeightSet :: (MonadIO m, IsStyle o) => o -> m Bool Source #
Get the value of the “weight-set
” property.
When overloading is enabled, this is equivalent to
get
style #weightSet